Adding upstream version 0.3.5.2+svn20080509.
[debian/lxpanel.git] / src / plugins / netstatus / netstatus-dialog-ui.c
1 /*
2 * DO NOT EDIT THIS FILE - it is generated by Glade.
3 */
4
5 #ifdef HAVE_CONFIG_H
6 # include <config.h>
7 #endif
8
9 #include <sys/types.h>
10 #include <sys/stat.h>
11 #include <unistd.h>
12 #include <string.h>
13 #include <stdio.h>
14
15 #include <gdk/gdkkeysyms.h>
16 #include <gtk/gtk.h>
17
18 #include "netstatus-dialog.h"
19 #include "netstatus-dialog-ui.h"
20 #include "glade-support.h"
21
22 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
23 g_object_set_data_full (G_OBJECT (component), name, \
24 gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
25
26 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
27 g_object_set_data (G_OBJECT (component), name, widget)
28
29 GtkWidget*
30 create_network_status_dialog (void)
31 {
32 GtkWidget *network_status_dialog;
33 GtkWidget *dialog_vbox2;
34 GtkWidget *notebook1;
35 GtkWidget *vbox1;
36 GtkWidget *connection_frame;
37 GtkWidget *label3;
38 GtkWidget *hbox6;
39 GtkWidget *label43;
40 GtkWidget *connection_hbox;
41 GtkWidget *connection_table;
42 GtkWidget *label5;
43 GtkWidget *status_label;
44 GtkWidget *label16;
45 GtkWidget *name_combo;
46 GtkWidget *combo_entry1;
47 GtkWidget *activity_frame;
48 GtkWidget *label4;
49 GtkWidget *hbox8;
50 GtkWidget *label44;
51 GtkWidget *table2;
52 GtkWidget *received_label;
53 GtkWidget *sent_label;
54 GtkWidget *label11;
55 GtkWidget *label12;
56 GtkWidget *signal_strength_frame;
57 GtkWidget *label48;
58 GtkWidget *hbox14;
59 GtkWidget *label49;
60 GtkWidget *hbox15;
61 GtkWidget *signal_strength_bar;
62 GtkWidget *signal_strength_label;
63 GtkWidget *label1;
64 GtkWidget *vbox2;
65 GtkWidget *inet4_frame;
66 GtkWidget *label25;
67 GtkWidget *hbox11;
68 GtkWidget *label45;
69 GtkWidget *inet4_table;
70 GtkWidget *inet4_addr_title;
71 GtkWidget *inet4_dest_title;
72 GtkWidget *inet4_bcast_title;
73 GtkWidget *inet4_mask_title;
74 GtkWidget *inet4_addr_label;
75 GtkWidget *inet4_dest_label;
76 GtkWidget *inet4_bcast_label;
77 GtkWidget *inet4_mask_label;
78 GtkWidget *inet6_frame;
79 GtkWidget *label26;
80 GtkWidget *hbox12;
81 GtkWidget *label46;
82 GtkWidget *table5;
83 GtkWidget *label39;
84 GtkWidget *label40;
85 GtkWidget *inet6_addr_label;
86 GtkWidget *inet6_scope_label;
87 GtkWidget *dev_frame;
88 GtkWidget *dev_label;
89 GtkWidget *hbox13;
90 GtkWidget *label47;
91 GtkWidget *table6;
92 GtkWidget *dev_addr_title;
93 GtkWidget *dev_addr_label;
94 GtkWidget *dev_type_label;
95 GtkWidget *dev_type_title;
96 GtkWidget *label2;
97 GtkWidget *dialog_action_area2;
98 GtkWidget *helpbutton1;
99 GtkWidget *configure_button;
100 GtkWidget *alignment2;
101 GtkWidget *hbox5;
102 GtkWidget *image2;
103 GtkWidget *label42;
104 GtkWidget *close_button;
105
106 network_status_dialog = gtk_dialog_new ();
107 gtk_container_set_border_width (GTK_CONTAINER (network_status_dialog), 5);
108 gtk_window_set_position (GTK_WINDOW (network_status_dialog), GTK_WIN_POS_CENTER);
109 gtk_window_set_default_size (GTK_WINDOW (network_status_dialog), 300, -1);
110 gtk_window_set_resizable (GTK_WINDOW (network_status_dialog), FALSE);
111 gtk_window_set_type_hint (GTK_WINDOW (network_status_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
112 gtk_dialog_set_has_separator (GTK_DIALOG (network_status_dialog), FALSE);
113
114 dialog_vbox2 = GTK_DIALOG (network_status_dialog)->vbox;
115 gtk_widget_show (dialog_vbox2);
116
117 notebook1 = gtk_notebook_new ();
118 gtk_widget_show (notebook1);
119 gtk_box_pack_start (GTK_BOX (dialog_vbox2), notebook1, TRUE, TRUE, 0);
120 gtk_container_set_border_width (GTK_CONTAINER (notebook1), 5);
121
122 vbox1 = gtk_vbox_new (FALSE, 18);
123 gtk_widget_show (vbox1);
124 gtk_container_add (GTK_CONTAINER (notebook1), vbox1);
125 gtk_container_set_border_width (GTK_CONTAINER (vbox1), 12);
126
127 connection_frame = gtk_vbox_new (FALSE, 6);
128 gtk_widget_show (connection_frame);
129 gtk_box_pack_start (GTK_BOX (vbox1), connection_frame, FALSE, TRUE, 0);
130
131 label3 = gtk_label_new (_("<b>Connection</b>"));
132 gtk_widget_show (label3);
133 gtk_box_pack_start (GTK_BOX (connection_frame), label3, FALSE, FALSE, 0);
134 gtk_label_set_use_markup (GTK_LABEL (label3), TRUE);
135 gtk_misc_set_alignment (GTK_MISC (label3), 0, 0.5);
136
137 hbox6 = gtk_hbox_new (FALSE, 0);
138 gtk_widget_show (hbox6);
139 gtk_box_pack_start (GTK_BOX (connection_frame), hbox6, TRUE, TRUE, 0);
140
141 label43 = gtk_label_new (" ");
142 gtk_widget_show (label43);
143 gtk_box_pack_start (GTK_BOX (hbox6), label43, FALSE, FALSE, 0);
144
145 connection_hbox = gtk_hbox_new (FALSE, 12);
146 gtk_widget_show (connection_hbox);
147 gtk_box_pack_start (GTK_BOX (hbox6), connection_hbox, TRUE, TRUE, 0);
148
149 connection_table = gtk_table_new (2, 2, FALSE);
150 gtk_widget_show (connection_table);
151 gtk_box_pack_start (GTK_BOX (connection_hbox), connection_table, TRUE, TRUE, 0);
152 gtk_table_set_row_spacings (GTK_TABLE (connection_table), 6);
153 gtk_table_set_col_spacings (GTK_TABLE (connection_table), 12);
154
155 label5 = gtk_label_new (_("Status:"));
156 gtk_widget_show (label5);
157 gtk_table_attach (GTK_TABLE (connection_table), label5, 0, 1, 1, 2,
158 (GtkAttachOptions) (GTK_FILL),
159 (GtkAttachOptions) (0), 0, 0);
160 gtk_misc_set_alignment (GTK_MISC (label5), 0, 0.5);
161
162 status_label = gtk_label_new ("");
163 gtk_widget_show (status_label);
164 gtk_table_attach (GTK_TABLE (connection_table), status_label, 1, 2, 1, 2,
165 (GtkAttachOptions) (GTK_FILL),
166 (GtkAttachOptions) (0), 0, 0);
167 GTK_WIDGET_SET_FLAGS (status_label, GTK_CAN_FOCUS);
168 gtk_label_set_selectable (GTK_LABEL (status_label), TRUE);
169 gtk_misc_set_alignment (GTK_MISC (status_label), 0, 0.5);
170
171 label16 = gtk_label_new_with_mnemonic (_("_Name:"));
172 gtk_widget_show (label16);
173 gtk_table_attach (GTK_TABLE (connection_table), label16, 0, 1, 0, 1,
174 (GtkAttachOptions) (GTK_FILL),
175 (GtkAttachOptions) (0), 0, 0);
176 gtk_misc_set_alignment (GTK_MISC (label16), 0, 0.5);
177
178 name_combo = gtk_combo_new ();
179 g_object_set_data (G_OBJECT (GTK_COMBO (name_combo)->popwin),
180 "GladeParentKey", name_combo);
181 gtk_widget_show (name_combo);
182 gtk_table_attach (GTK_TABLE (connection_table), name_combo, 1, 2, 0, 1,
183 (GtkAttachOptions) (0),
184 (GtkAttachOptions) (0), 0, 0);
185 gtk_combo_set_case_sensitive (GTK_COMBO (name_combo), TRUE);
186
187 combo_entry1 = GTK_COMBO (name_combo)->entry;
188 gtk_widget_show (combo_entry1);
189
190 activity_frame = gtk_vbox_new (FALSE, 6);
191 gtk_widget_show (activity_frame);
192 gtk_box_pack_start (GTK_BOX (vbox1), activity_frame, FALSE, TRUE, 0);
193
194 label4 = gtk_label_new (_("<b>Activity</b>"));
195 gtk_widget_show (label4);
196 gtk_box_pack_start (GTK_BOX (activity_frame), label4, FALSE, FALSE, 0);
197 gtk_label_set_use_markup (GTK_LABEL (label4), TRUE);
198 gtk_misc_set_alignment (GTK_MISC (label4), 0, 0.5);
199
200 hbox8 = gtk_hbox_new (FALSE, 0);
201 gtk_widget_show (hbox8);
202 gtk_box_pack_start (GTK_BOX (activity_frame), hbox8, TRUE, TRUE, 0);
203
204 label44 = gtk_label_new (" ");
205 gtk_widget_show (label44);
206 gtk_box_pack_start (GTK_BOX (hbox8), label44, FALSE, FALSE, 0);
207
208 table2 = gtk_table_new (2, 2, FALSE);
209 gtk_widget_show (table2);
210 gtk_box_pack_start (GTK_BOX (hbox8), table2, TRUE, TRUE, 0);
211 gtk_table_set_row_spacings (GTK_TABLE (table2), 6);
212 gtk_table_set_col_spacings (GTK_TABLE (table2), 12);
213
214 received_label = gtk_label_new ("");
215 gtk_widget_show (received_label);
216 gtk_table_attach (GTK_TABLE (table2), received_label, 1, 2, 0, 1,
217 (GtkAttachOptions) (GTK_FILL),
218 (GtkAttachOptions) (0), 0, 0);
219 GTK_WIDGET_SET_FLAGS (received_label, GTK_CAN_FOCUS);
220 gtk_label_set_selectable (GTK_LABEL (received_label), TRUE);
221 gtk_misc_set_alignment (GTK_MISC (received_label), 0, 0.5);
222
223 sent_label = gtk_label_new ("");
224 gtk_widget_show (sent_label);
225 gtk_table_attach (GTK_TABLE (table2), sent_label, 1, 2, 1, 2,
226 (GtkAttachOptions) (GTK_FILL),
227 (GtkAttachOptions) (0), 0, 0);
228 GTK_WIDGET_SET_FLAGS (sent_label, GTK_CAN_FOCUS);
229 gtk_label_set_selectable (GTK_LABEL (sent_label), TRUE);
230 gtk_misc_set_alignment (GTK_MISC (sent_label), 0, 0.5);
231
232 label11 = gtk_label_new (_("Received:"));
233 gtk_widget_show (label11);
234 gtk_table_attach (GTK_TABLE (table2), label11, 0, 1, 0, 1,
235 (GtkAttachOptions) (GTK_FILL),
236 (GtkAttachOptions) (0), 0, 0);
237 gtk_misc_set_alignment (GTK_MISC (label11), 0, 0.5);
238
239 label12 = gtk_label_new (_("Sent:"));
240 gtk_widget_show (label12);
241 gtk_table_attach (GTK_TABLE (table2), label12, 0, 1, 1, 2,
242 (GtkAttachOptions) (GTK_FILL),
243 (GtkAttachOptions) (0), 0, 0);
244 gtk_misc_set_alignment (GTK_MISC (label12), 0, 0.5);
245
246 signal_strength_frame = gtk_vbox_new (FALSE, 6);
247 gtk_widget_show (signal_strength_frame);
248 gtk_box_pack_start (GTK_BOX (vbox1), signal_strength_frame, FALSE, TRUE, 0);
249
250 label48 = gtk_label_new (_("<b>Signal Strength</b>"));
251 gtk_widget_show (label48);
252 gtk_box_pack_start (GTK_BOX (signal_strength_frame), label48, FALSE, FALSE, 0);
253 gtk_label_set_use_markup (GTK_LABEL (label48), TRUE);
254 gtk_misc_set_alignment (GTK_MISC (label48), 0, 0.5);
255
256 hbox14 = gtk_hbox_new (FALSE, 0);
257 gtk_widget_show (hbox14);
258 gtk_box_pack_start (GTK_BOX (signal_strength_frame), hbox14, FALSE, TRUE, 0);
259
260 label49 = gtk_label_new (" ");
261 gtk_widget_show (label49);
262 gtk_box_pack_start (GTK_BOX (hbox14), label49, FALSE, FALSE, 0);
263
264 hbox15 = gtk_hbox_new (FALSE, 6);
265 gtk_widget_show (hbox15);
266 gtk_box_pack_start (GTK_BOX (hbox14), hbox15, TRUE, TRUE, 0);
267
268 signal_strength_bar = gtk_progress_bar_new ();
269 gtk_widget_show (signal_strength_bar);
270 gtk_box_pack_start (GTK_BOX (hbox15), signal_strength_bar, TRUE, TRUE, 0);
271
272 signal_strength_label = gtk_label_new (_("0%"));
273 gtk_widget_show (signal_strength_label);
274 gtk_box_pack_start (GTK_BOX (hbox15), signal_strength_label, FALSE, TRUE, 0);
275
276 label1 = gtk_label_new (_("General"));
277 gtk_widget_show (label1);
278 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label1);
279
280 vbox2 = gtk_vbox_new (FALSE, 18);
281 gtk_widget_show (vbox2);
282 gtk_container_add (GTK_CONTAINER (notebook1), vbox2);
283 gtk_container_set_border_width (GTK_CONTAINER (vbox2), 12);
284
285 inet4_frame = gtk_vbox_new (FALSE, 6);
286 gtk_widget_show (inet4_frame);
287 gtk_box_pack_start (GTK_BOX (vbox2), inet4_frame, FALSE, TRUE, 0);
288
289 label25 = gtk_label_new (_("<b>Internet Protocol (IPv4)</b>"));
290 gtk_widget_show (label25);
291 gtk_box_pack_start (GTK_BOX (inet4_frame), label25, FALSE, FALSE, 0);
292 gtk_label_set_use_markup (GTK_LABEL (label25), TRUE);
293 gtk_misc_set_alignment (GTK_MISC (label25), 0, 0.5);
294
295 hbox11 = gtk_hbox_new (FALSE, 0);
296 gtk_widget_show (hbox11);
297 gtk_box_pack_start (GTK_BOX (inet4_frame), hbox11, TRUE, TRUE, 0);
298
299 label45 = gtk_label_new (" ");
300 gtk_widget_show (label45);
301 gtk_box_pack_start (GTK_BOX (hbox11), label45, FALSE, FALSE, 0);
302
303 inet4_table = gtk_table_new (4, 2, FALSE);
304 gtk_widget_show (inet4_table);
305 gtk_box_pack_start (GTK_BOX (hbox11), inet4_table, TRUE, TRUE, 0);
306 gtk_table_set_row_spacings (GTK_TABLE (inet4_table), 6);
307 gtk_table_set_col_spacings (GTK_TABLE (inet4_table), 12);
308
309 inet4_addr_title = gtk_label_new (_("Address:"));
310 gtk_widget_show (inet4_addr_title);
311 gtk_table_attach (GTK_TABLE (inet4_table), inet4_addr_title, 0, 1, 0, 1,
312 (GtkAttachOptions) (GTK_FILL),
313 (GtkAttachOptions) (0), 0, 0);
314 gtk_misc_set_alignment (GTK_MISC (inet4_addr_title), 0, 0.5);
315
316 inet4_dest_title = gtk_label_new (_("Destination:"));
317 gtk_widget_show (inet4_dest_title);
318 gtk_table_attach (GTK_TABLE (inet4_table), inet4_dest_title, 0, 1, 1, 2,
319 (GtkAttachOptions) (GTK_FILL),
320 (GtkAttachOptions) (0), 0, 0);
321 gtk_misc_set_alignment (GTK_MISC (inet4_dest_title), 0, 0.5);
322
323 inet4_bcast_title = gtk_label_new (_("Broadcast:"));
324 gtk_widget_show (inet4_bcast_title);
325 gtk_table_attach (GTK_TABLE (inet4_table), inet4_bcast_title, 0, 1, 2, 3,
326 (GtkAttachOptions) (GTK_FILL),
327 (GtkAttachOptions) (0), 0, 0);
328 gtk_misc_set_alignment (GTK_MISC (inet4_bcast_title), 0, 0.5);
329
330 inet4_mask_title = gtk_label_new (_("Subnet Mask:"));
331 gtk_widget_show (inet4_mask_title);
332 gtk_table_attach (GTK_TABLE (inet4_table), inet4_mask_title, 0, 1, 3, 4,
333 (GtkAttachOptions) (GTK_FILL),
334 (GtkAttachOptions) (0), 0, 0);
335 gtk_misc_set_alignment (GTK_MISC (inet4_mask_title), 0, 0.5);
336
337 inet4_addr_label = gtk_label_new ("");
338 gtk_widget_show (inet4_addr_label);
339 gtk_table_attach (GTK_TABLE (inet4_table), inet4_addr_label, 1, 2, 0, 1,
340 (GtkAttachOptions) (GTK_FILL),
341 (GtkAttachOptions) (0), 0, 0);
342 GTK_WIDGET_SET_FLAGS (inet4_addr_label, GTK_CAN_FOCUS);
343 gtk_label_set_selectable (GTK_LABEL (inet4_addr_label), TRUE);
344 gtk_misc_set_alignment (GTK_MISC (inet4_addr_label), 0, 0.5);
345
346 inet4_dest_label = gtk_label_new ("");
347 gtk_widget_show (inet4_dest_label);
348 gtk_table_attach (GTK_TABLE (inet4_table), inet4_dest_label, 1, 2, 1, 2,
349 (GtkAttachOptions) (GTK_FILL),
350 (GtkAttachOptions) (0), 0, 0);
351 GTK_WIDGET_SET_FLAGS (inet4_dest_label, GTK_CAN_FOCUS);
352 gtk_label_set_selectable (GTK_LABEL (inet4_dest_label), TRUE);
353 gtk_misc_set_alignment (GTK_MISC (inet4_dest_label), 0, 0.5);
354
355 inet4_bcast_label = gtk_label_new ("");
356 gtk_widget_show (inet4_bcast_label);
357 gtk_table_attach (GTK_TABLE (inet4_table), inet4_bcast_label, 1, 2, 2, 3,
358 (GtkAttachOptions) (GTK_FILL),
359 (GtkAttachOptions) (0), 0, 0);
360 GTK_WIDGET_SET_FLAGS (inet4_bcast_label, GTK_CAN_FOCUS);
361 gtk_label_set_selectable (GTK_LABEL (inet4_bcast_label), TRUE);
362 gtk_misc_set_alignment (GTK_MISC (inet4_bcast_label), 0, 0.5);
363
364 inet4_mask_label = gtk_label_new ("");
365 gtk_widget_show (inet4_mask_label);
366 gtk_table_attach (GTK_TABLE (inet4_table), inet4_mask_label, 1, 2, 3, 4,
367 (GtkAttachOptions) (GTK_FILL),
368 (GtkAttachOptions) (0), 0, 0);
369 GTK_WIDGET_SET_FLAGS (inet4_mask_label, GTK_CAN_FOCUS);
370 gtk_label_set_selectable (GTK_LABEL (inet4_mask_label), TRUE);
371 gtk_misc_set_alignment (GTK_MISC (inet4_mask_label), 0, 0.5);
372
373 inet6_frame = gtk_vbox_new (FALSE, 6);
374 gtk_box_pack_start (GTK_BOX (vbox2), inet6_frame, FALSE, TRUE, 0);
375
376 label26 = gtk_label_new (_("<b>Internet Protocol (IPv6)</b>"));
377 gtk_widget_show (label26);
378 gtk_box_pack_start (GTK_BOX (inet6_frame), label26, FALSE, FALSE, 0);
379 gtk_label_set_use_markup (GTK_LABEL (label26), TRUE);
380 gtk_misc_set_alignment (GTK_MISC (label26), 0, 0.5);
381
382 hbox12 = gtk_hbox_new (FALSE, 0);
383 gtk_widget_show (hbox12);
384 gtk_box_pack_start (GTK_BOX (inet6_frame), hbox12, TRUE, TRUE, 0);
385
386 label46 = gtk_label_new (" ");
387 gtk_widget_show (label46);
388 gtk_box_pack_start (GTK_BOX (hbox12), label46, FALSE, FALSE, 0);
389
390 table5 = gtk_table_new (2, 2, FALSE);
391 gtk_widget_show (table5);
392 gtk_box_pack_start (GTK_BOX (hbox12), table5, TRUE, TRUE, 0);
393 gtk_table_set_row_spacings (GTK_TABLE (table5), 6);
394 gtk_table_set_col_spacings (GTK_TABLE (table5), 12);
395
396 label39 = gtk_label_new (_("Address:"));
397 gtk_widget_show (label39);
398 gtk_table_attach (GTK_TABLE (table5), label39, 0, 1, 0, 1,
399 (GtkAttachOptions) (GTK_FILL),
400 (GtkAttachOptions) (0), 0, 0);
401 gtk_misc_set_alignment (GTK_MISC (label39), 0, 0.5);
402
403 label40 = gtk_label_new (_("Scope:"));
404 gtk_widget_show (label40);
405 gtk_table_attach (GTK_TABLE (table5), label40, 0, 1, 1, 2,
406 (GtkAttachOptions) (GTK_FILL),
407 (GtkAttachOptions) (0), 0, 0);
408 gtk_misc_set_alignment (GTK_MISC (label40), 0, 0.5);
409
410 inet6_addr_label = gtk_label_new ("");
411 gtk_widget_show (inet6_addr_label);
412 gtk_table_attach (GTK_TABLE (table5), inet6_addr_label, 1, 2, 0, 1,
413 (GtkAttachOptions) (GTK_FILL),
414 (GtkAttachOptions) (0), 0, 0);
415 GTK_WIDGET_SET_FLAGS (inet6_addr_label, GTK_CAN_FOCUS);
416 gtk_label_set_selectable (GTK_LABEL (inet6_addr_label), TRUE);
417 gtk_misc_set_alignment (GTK_MISC (inet6_addr_label), 0, 0.5);
418
419 inet6_scope_label = gtk_label_new ("");
420 gtk_widget_show (inet6_scope_label);
421 gtk_table_attach (GTK_TABLE (table5), inet6_scope_label, 1, 2, 1, 2,
422 (GtkAttachOptions) (GTK_FILL),
423 (GtkAttachOptions) (0), 0, 0);
424 GTK_WIDGET_SET_FLAGS (inet6_scope_label, GTK_CAN_FOCUS);
425 gtk_label_set_selectable (GTK_LABEL (inet6_scope_label), TRUE);
426 gtk_misc_set_alignment (GTK_MISC (inet6_scope_label), 0, 0.5);
427
428 dev_frame = gtk_vbox_new (FALSE, 6);
429 gtk_widget_show (dev_frame);
430 gtk_box_pack_start (GTK_BOX (vbox2), dev_frame, FALSE, TRUE, 0);
431
432 dev_label = gtk_label_new (_("<b>Network Device</b>"));
433 gtk_widget_show (dev_label);
434 gtk_box_pack_start (GTK_BOX (dev_frame), dev_label, FALSE, FALSE, 0);
435 gtk_label_set_use_markup (GTK_LABEL (dev_label), TRUE);
436 gtk_misc_set_alignment (GTK_MISC (dev_label), 0, 0.5);
437
438 hbox13 = gtk_hbox_new (FALSE, 0);
439 gtk_widget_show (hbox13);
440 gtk_box_pack_start (GTK_BOX (dev_frame), hbox13, TRUE, TRUE, 0);
441
442 label47 = gtk_label_new (" ");
443 gtk_widget_show (label47);
444 gtk_box_pack_start (GTK_BOX (hbox13), label47, FALSE, FALSE, 0);
445
446 table6 = gtk_table_new (2, 2, FALSE);
447 gtk_widget_show (table6);
448 gtk_box_pack_start (GTK_BOX (hbox13), table6, TRUE, TRUE, 0);
449 gtk_table_set_row_spacings (GTK_TABLE (table6), 6);
450 gtk_table_set_col_spacings (GTK_TABLE (table6), 12);
451
452 dev_addr_title = gtk_label_new (_("Address:"));
453 gtk_widget_show (dev_addr_title);
454 gtk_table_attach (GTK_TABLE (table6), dev_addr_title, 0, 1, 1, 2,
455 (GtkAttachOptions) (GTK_FILL),
456 (GtkAttachOptions) (0), 0, 0);
457 gtk_misc_set_alignment (GTK_MISC (dev_addr_title), 0, 0.5);
458
459 dev_addr_label = gtk_label_new ("");
460 gtk_widget_show (dev_addr_label);
461 gtk_table_attach (GTK_TABLE (table6), dev_addr_label, 1, 2, 1, 2,
462 (GtkAttachOptions) (GTK_FILL),
463 (GtkAttachOptions) (0), 0, 0);
464 GTK_WIDGET_SET_FLAGS (dev_addr_label, GTK_CAN_FOCUS);
465 gtk_label_set_selectable (GTK_LABEL (dev_addr_label), TRUE);
466 gtk_misc_set_alignment (GTK_MISC (dev_addr_label), 0, 0.5);
467
468 dev_type_label = gtk_label_new ("");
469 gtk_widget_show (dev_type_label);
470 gtk_table_attach (GTK_TABLE (table6), dev_type_label, 1, 2, 0, 1,
471 (GtkAttachOptions) (GTK_FILL),
472 (GtkAttachOptions) (0), 0, 0);
473 GTK_WIDGET_SET_FLAGS (dev_type_label, GTK_CAN_FOCUS);
474 gtk_label_set_selectable (GTK_LABEL (dev_type_label), TRUE);
475 gtk_misc_set_alignment (GTK_MISC (dev_type_label), 0, 0.5);
476
477 dev_type_title = gtk_label_new (_("Type:"));
478 gtk_widget_show (dev_type_title);
479 gtk_table_attach (GTK_TABLE (table6), dev_type_title, 0, 1, 0, 1,
480 (GtkAttachOptions) (GTK_FILL),
481 (GtkAttachOptions) (0), 0, 0);
482 gtk_misc_set_alignment (GTK_MISC (dev_type_title), 0, 0.5);
483
484 label2 = gtk_label_new (_("Support"));
485 gtk_widget_show (label2);
486 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label2);
487
488 dialog_action_area2 = GTK_DIALOG (network_status_dialog)->action_area;
489 gtk_widget_show (dialog_action_area2);
490 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
491
492 helpbutton1 = gtk_button_new_from_stock ("gtk-help");
493 gtk_dialog_add_action_widget (GTK_DIALOG (network_status_dialog), helpbutton1, GTK_RESPONSE_HELP);
494 GTK_WIDGET_SET_FLAGS (helpbutton1, GTK_CAN_DEFAULT);
495
496 configure_button = gtk_button_new ();
497 gtk_widget_show (configure_button);
498 gtk_dialog_add_action_widget (GTK_DIALOG (network_status_dialog), configure_button, 0);
499 GTK_WIDGET_SET_FLAGS (configure_button, GTK_CAN_DEFAULT);
500
501 alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
502 gtk_widget_show (alignment2);
503 gtk_container_add (GTK_CONTAINER (configure_button), alignment2);
504
505 hbox5 = gtk_hbox_new (FALSE, 2);
506 gtk_widget_show (hbox5);
507 gtk_container_add (GTK_CONTAINER (alignment2), hbox5);
508
509 image2 = gtk_image_new_from_stock ("gtk-preferences", GTK_ICON_SIZE_BUTTON);
510 gtk_widget_show (image2);
511 gtk_box_pack_start (GTK_BOX (hbox5), image2, FALSE, FALSE, 0);
512
513 label42 = gtk_label_new_with_mnemonic (_("Con_figure"));
514 gtk_widget_show (label42);
515 gtk_box_pack_start (GTK_BOX (hbox5), label42, FALSE, FALSE, 0);
516
517 close_button = gtk_button_new_from_stock ("gtk-close");
518 gtk_widget_show (close_button);
519 gtk_dialog_add_action_widget (GTK_DIALOG (network_status_dialog), close_button, GTK_RESPONSE_CLOSE);
520 GTK_WIDGET_SET_FLAGS (close_button, GTK_CAN_DEFAULT);
521
522 gtk_label_set_mnemonic_widget (GTK_LABEL (label16), combo_entry1);
523
524 /* Store pointers to all widgets, for use by lookup_widget(). */
525 GLADE_HOOKUP_OBJECT_NO_REF (network_status_dialog, network_status_dialog, "network_status_dialog");
526 GLADE_HOOKUP_OBJECT_NO_REF (network_status_dialog, dialog_vbox2, "dialog_vbox2");
527 GLADE_HOOKUP_OBJECT (network_status_dialog, notebook1, "notebook1");
528 GLADE_HOOKUP_OBJECT (network_status_dialog, vbox1, "vbox1");
529 GLADE_HOOKUP_OBJECT (network_status_dialog, connection_frame, "connection_frame");
530 GLADE_HOOKUP_OBJECT (network_status_dialog, label3, "label3");
531 GLADE_HOOKUP_OBJECT (network_status_dialog, hbox6, "hbox6");
532 GLADE_HOOKUP_OBJECT (network_status_dialog, label43, "label43");
533 GLADE_HOOKUP_OBJECT (network_status_dialog, connection_hbox, "connection_hbox");
534 GLADE_HOOKUP_OBJECT (network_status_dialog, connection_table, "connection_table");
535 GLADE_HOOKUP_OBJECT (network_status_dialog, label5, "label5");
536 GLADE_HOOKUP_OBJECT (network_status_dialog, status_label, "status_label");
537 GLADE_HOOKUP_OBJECT (network_status_dialog, label16, "label16");
538 GLADE_HOOKUP_OBJECT (network_status_dialog, name_combo, "name_combo");
539 GLADE_HOOKUP_OBJECT (network_status_dialog, combo_entry1, "combo_entry1");
540 GLADE_HOOKUP_OBJECT (network_status_dialog, activity_frame, "activity_frame");
541 GLADE_HOOKUP_OBJECT (network_status_dialog, label4, "label4");
542 GLADE_HOOKUP_OBJECT (network_status_dialog, hbox8, "hbox8");
543 GLADE_HOOKUP_OBJECT (network_status_dialog, label44, "label44");
544 GLADE_HOOKUP_OBJECT (network_status_dialog, table2, "table2");
545 GLADE_HOOKUP_OBJECT (network_status_dialog, received_label, "received_label");
546 GLADE_HOOKUP_OBJECT (network_status_dialog, sent_label, "sent_label");
547 GLADE_HOOKUP_OBJECT (network_status_dialog, label11, "label11");
548 GLADE_HOOKUP_OBJECT (network_status_dialog, label12, "label12");
549 GLADE_HOOKUP_OBJECT (network_status_dialog, signal_strength_frame, "signal_strength_frame");
550 GLADE_HOOKUP_OBJECT (network_status_dialog, label48, "label48");
551 GLADE_HOOKUP_OBJECT (network_status_dialog, hbox14, "hbox14");
552 GLADE_HOOKUP_OBJECT (network_status_dialog, label49, "label49");
553 GLADE_HOOKUP_OBJECT (network_status_dialog, hbox15, "hbox15");
554 GLADE_HOOKUP_OBJECT (network_status_dialog, signal_strength_bar, "signal_strength_bar");
555 GLADE_HOOKUP_OBJECT (network_status_dialog, signal_strength_label, "signal_strength_label");
556 GLADE_HOOKUP_OBJECT (network_status_dialog, label1, "label1");
557 GLADE_HOOKUP_OBJECT (network_status_dialog, vbox2, "vbox2");
558 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_frame, "inet4_frame");
559 GLADE_HOOKUP_OBJECT (network_status_dialog, label25, "label25");
560 GLADE_HOOKUP_OBJECT (network_status_dialog, hbox11, "hbox11");
561 GLADE_HOOKUP_OBJECT (network_status_dialog, label45, "label45");
562 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_table, "inet4_table");
563 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_addr_title, "inet4_addr_title");
564 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_dest_title, "inet4_dest_title");
565 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_bcast_title, "inet4_bcast_title");
566 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_mask_title, "inet4_mask_title");
567 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_addr_label, "inet4_addr_label");
568 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_dest_label, "inet4_dest_label");
569 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_bcast_label, "inet4_bcast_label");
570 GLADE_HOOKUP_OBJECT (network_status_dialog, inet4_mask_label, "inet4_mask_label");
571 GLADE_HOOKUP_OBJECT (network_status_dialog, inet6_frame, "inet6_frame");
572 GLADE_HOOKUP_OBJECT (network_status_dialog, label26, "label26");
573 GLADE_HOOKUP_OBJECT (network_status_dialog, hbox12, "hbox12");
574 GLADE_HOOKUP_OBJECT (network_status_dialog, label46, "label46");
575 GLADE_HOOKUP_OBJECT (network_status_dialog, table5, "table5");
576 GLADE_HOOKUP_OBJECT (network_status_dialog, label39, "label39");
577 GLADE_HOOKUP_OBJECT (network_status_dialog, label40, "label40");
578 GLADE_HOOKUP_OBJECT (network_status_dialog, inet6_addr_label, "inet6_addr_label");
579 GLADE_HOOKUP_OBJECT (network_status_dialog, inet6_scope_label, "inet6_scope_label");
580 GLADE_HOOKUP_OBJECT (network_status_dialog, dev_frame, "dev_frame");
581 GLADE_HOOKUP_OBJECT (network_status_dialog, dev_label, "dev_label");
582 GLADE_HOOKUP_OBJECT (network_status_dialog, hbox13, "hbox13");
583 GLADE_HOOKUP_OBJECT (network_status_dialog, label47, "label47");
584 GLADE_HOOKUP_OBJECT (network_status_dialog, table6, "table6");
585 GLADE_HOOKUP_OBJECT (network_status_dialog, dev_addr_title, "dev_addr_title");
586 GLADE_HOOKUP_OBJECT (network_status_dialog, dev_addr_label, "dev_addr_label");
587 GLADE_HOOKUP_OBJECT (network_status_dialog, dev_type_label, "dev_type_label");
588 GLADE_HOOKUP_OBJECT (network_status_dialog, dev_type_title, "dev_type_title");
589 GLADE_HOOKUP_OBJECT (network_status_dialog, label2, "label2");
590 GLADE_HOOKUP_OBJECT_NO_REF (network_status_dialog, dialog_action_area2, "dialog_action_area2");
591 GLADE_HOOKUP_OBJECT (network_status_dialog, helpbutton1, "helpbutton1");
592 GLADE_HOOKUP_OBJECT (network_status_dialog, configure_button, "configure_button");
593 GLADE_HOOKUP_OBJECT (network_status_dialog, alignment2, "alignment2");
594 GLADE_HOOKUP_OBJECT (network_status_dialog, hbox5, "hbox5");
595 GLADE_HOOKUP_OBJECT (network_status_dialog, image2, "image2");
596 GLADE_HOOKUP_OBJECT (network_status_dialog, label42, "label42");
597 GLADE_HOOKUP_OBJECT (network_status_dialog, close_button, "close_button");
598
599 gtk_widget_grab_default (helpbutton1);
600 return network_status_dialog;
601 }
602