Add a desktop-independent gtk+ theme switcher for LXDE.
[lxde/lxappearance.git] / src / main-dlg-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 "main-dlg.h"
19 #include "main-dlg-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_dlg (void)
31 {
32 GtkWidget *dlg;
33 GtkWidget *dialog_vbox1;
34 GtkWidget *hbox1;
35 GtkWidget *notebook1;
36 GtkWidget *vbox4;
37 GtkWidget *label8;
38 GtkWidget *scrolledwindow1;
39 GtkWidget *gtk_theme_view;
40 GtkWidget *label2;
41 GtkWidget *vbox3;
42 GtkWidget *label7;
43 GtkWidget *scrolledwindow2;
44 GtkWidget *icon_theme_view;
45 GtkWidget *label3;
46 GtkWidget *vbox2;
47 GtkWidget *label6;
48 GtkWidget *scrolledwindow3;
49 GtkWidget *font_view;
50 GtkWidget *table1;
51 GtkWidget *label9;
52 GtkWidget *comboboxentry1;
53 GtkWidget *label10;
54 GtkWidget *combobox1;
55 GtkWidget *label4;
56 GtkWidget *empty_notebook_page;
57 GtkWidget *label5;
58 GtkWidget *vbox1;
59 GtkWidget *label15;
60 GtkWidget *frame1;
61 GtkWidget *alignment1;
62 GtkWidget *vbox5;
63 GtkWidget *menubar1;
64 GtkWidget *menuitem1;
65 GtkWidget *menuitem1_menu;
66 GtkWidget *new1;
67 GtkWidget *open1;
68 GtkWidget *save1;
69 GtkWidget *save_as1;
70 GtkWidget *separatormenuitem1;
71 GtkWidget *quit1;
72 GtkWidget *menuitem2;
73 GtkWidget *menuitem2_menu;
74 GtkWidget *cut1;
75 GtkWidget *copy1;
76 GtkWidget *paste1;
77 GtkWidget *delete1;
78 GtkWidget *menuitem4;
79 GtkWidget *menuitem4_menu;
80 GtkWidget *about1;
81 GtkWidget *toolbar1;
82 GtkIconSize tmp_toolbar_icon_size;
83 GtkWidget *toolbutton1;
84 GtkWidget *toolbutton2;
85 GtkWidget *toolbutton3;
86 GtkWidget *notebook2;
87 GtkWidget *scrolledwindow4;
88 GtkWidget *iconview1;
89 GtkWidget *label12;
90 GtkWidget *hbox2;
91 GtkWidget *frame2;
92 GtkWidget *alignment2;
93 GtkWidget *vbox6;
94 GtkWidget *radiobutton1;
95 GSList *radiobutton1_group = NULL;
96 GtkWidget *radiobutton2;
97 GSList *radiobutton2_group = NULL;
98 GtkWidget *hseparator1;
99 GtkWidget *checkbutton1;
100 GtkWidget *entry1;
101 GtkWidget *label16;
102 GtkWidget *vbox7;
103 GtkWidget *progressbar1;
104 GtkWidget *hscale1;
105 GtkWidget *hbox3;
106 GtkObject *spinbutton1_adj;
107 GtkWidget *spinbutton1;
108 GtkWidget *button1;
109 GtkWidget *combobox2;
110 GtkWidget *label13;
111 GtkWidget *label14;
112 GtkWidget *statusbar1;
113 GtkWidget *dialog_action_area1;
114 GtkWidget *apply;
115 GtkWidget *closebutton1;
116 GtkAccelGroup *accel_group;
117 GtkTooltips *tooltips;
118
119 tooltips = gtk_tooltips_new ();
120
121 accel_group = gtk_accel_group_new ();
122
123 dlg = gtk_dialog_new ();
124 gtk_window_set_title (GTK_WINDOW (dlg), _("Appearance Settings"));
125 gtk_window_set_type_hint (GTK_WINDOW (dlg), GDK_WINDOW_TYPE_HINT_DIALOG);
126
127 dialog_vbox1 = GTK_DIALOG (dlg)->vbox;
128 gtk_widget_show (dialog_vbox1);
129
130 hbox1 = gtk_hbox_new (FALSE, 0);
131 gtk_widget_show (hbox1);
132 gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox1, TRUE, TRUE, 0);
133
134 notebook1 = gtk_notebook_new ();
135 gtk_widget_show (notebook1);
136 gtk_box_pack_start (GTK_BOX (hbox1), notebook1, FALSE, TRUE, 0);
137
138 vbox4 = gtk_vbox_new (FALSE, 0);
139 gtk_widget_show (vbox4);
140 gtk_container_add (GTK_CONTAINER (notebook1), vbox4);
141
142 label8 = gtk_label_new (_("Available Window Themes"));
143 gtk_widget_show (label8);
144 gtk_box_pack_start (GTK_BOX (vbox4), label8, FALSE, FALSE, 0);
145
146 scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
147 gtk_widget_show (scrolledwindow1);
148 gtk_box_pack_start (GTK_BOX (vbox4), scrolledwindow1, TRUE, TRUE, 0);
149 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
150
151 gtk_theme_view = gtk_tree_view_new ();
152 gtk_widget_show (gtk_theme_view);
153 gtk_container_add (GTK_CONTAINER (scrolledwindow1), gtk_theme_view);
154
155 label2 = gtk_label_new (_("Window"));
156 gtk_widget_show (label2);
157 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), label2);
158
159 vbox3 = gtk_vbox_new (FALSE, 0);
160 gtk_widget_show (vbox3);
161 gtk_container_add (GTK_CONTAINER (notebook1), vbox3);
162
163 label7 = gtk_label_new (_("Available Icon Themes"));
164 gtk_widget_show (label7);
165 gtk_box_pack_start (GTK_BOX (vbox3), label7, FALSE, FALSE, 0);
166
167 scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
168 gtk_widget_show (scrolledwindow2);
169 gtk_box_pack_start (GTK_BOX (vbox3), scrolledwindow2, TRUE, TRUE, 0);
170 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
171 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_SHADOW_IN);
172
173 icon_theme_view = gtk_tree_view_new ();
174 gtk_widget_show (icon_theme_view);
175 gtk_container_add (GTK_CONTAINER (scrolledwindow2), icon_theme_view);
176
177 label3 = gtk_label_new (_("Icon"));
178 gtk_widget_show (label3);
179 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), label3);
180
181 vbox2 = gtk_vbox_new (FALSE, 0);
182 gtk_widget_show (vbox2);
183 gtk_container_add (GTK_CONTAINER (notebook1), vbox2);
184
185 label6 = gtk_label_new (_("Available Fonts"));
186 gtk_widget_show (label6);
187 gtk_box_pack_start (GTK_BOX (vbox2), label6, FALSE, FALSE, 0);
188
189 scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
190 gtk_widget_show (scrolledwindow3);
191 gtk_box_pack_start (GTK_BOX (vbox2), scrolledwindow3, TRUE, TRUE, 0);
192 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
193 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_SHADOW_IN);
194
195 font_view = gtk_tree_view_new ();
196 gtk_widget_show (font_view);
197 gtk_container_add (GTK_CONTAINER (scrolledwindow3), font_view);
198
199 table1 = gtk_table_new (2, 2, FALSE);
200 gtk_widget_show (table1);
201 gtk_box_pack_start (GTK_BOX (vbox2), table1, FALSE, TRUE, 0);
202
203 label9 = gtk_label_new (_("Font Size:"));
204 gtk_widget_show (label9);
205 gtk_table_attach (GTK_TABLE (table1), label9, 0, 1, 0, 1,
206 (GtkAttachOptions) (GTK_FILL),
207 (GtkAttachOptions) (0), 0, 0);
208
209 comboboxentry1 = gtk_combo_box_entry_new_text ();
210 gtk_widget_show (comboboxentry1);
211 gtk_table_attach (GTK_TABLE (table1), comboboxentry1, 1, 2, 0, 1,
212 (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
213 (GtkAttachOptions) (GTK_FILL), 0, 0);
214 gtk_widget_set_size_request (comboboxentry1, 48, -1);
215
216 label10 = gtk_label_new (_("Style:"));
217 gtk_widget_show (label10);
218 gtk_table_attach (GTK_TABLE (table1), label10, 0, 1, 1, 2,
219 (GtkAttachOptions) (GTK_FILL),
220 (GtkAttachOptions) (0), 0, 0);
221 gtk_misc_set_alignment (GTK_MISC (label10), 0, 0.5);
222
223 combobox1 = gtk_combo_box_new_text ();
224 gtk_widget_show (combobox1);
225 gtk_table_attach (GTK_TABLE (table1), combobox1, 1, 2, 1, 2,
226 (GtkAttachOptions) (GTK_FILL),
227 (GtkAttachOptions) (GTK_FILL), 0, 0);
228
229 label4 = gtk_label_new (_("Font"));
230 gtk_widget_show (label4);
231 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), label4);
232
233 empty_notebook_page = gtk_vbox_new (FALSE, 0);
234 gtk_widget_show (empty_notebook_page);
235 gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page);
236
237 label5 = gtk_label_new (_("Other"));
238 gtk_widget_show (label5);
239 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 3), label5);
240
241 vbox1 = gtk_vbox_new (FALSE, 0);
242 gtk_widget_show (vbox1);
243 gtk_box_pack_start (GTK_BOX (hbox1), vbox1, TRUE, TRUE, 0);
244
245 label15 = gtk_label_new (_("<b>Preview</b>"));
246 gtk_widget_show (label15);
247 gtk_box_pack_start (GTK_BOX (vbox1), label15, FALSE, FALSE, 0);
248 gtk_label_set_use_markup (GTK_LABEL (label15), TRUE);
249
250 frame1 = gtk_frame_new (NULL);
251 gtk_widget_show (frame1);
252 gtk_box_pack_start (GTK_BOX (vbox1), frame1, TRUE, TRUE, 0);
253 gtk_container_set_border_width (GTK_CONTAINER (frame1), 6);
254
255 alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
256 gtk_widget_show (alignment1);
257 gtk_container_add (GTK_CONTAINER (frame1), alignment1);
258 gtk_alignment_set_padding (GTK_ALIGNMENT (alignment1), 0, 0, 4, 4);
259
260 vbox5 = gtk_vbox_new (FALSE, 0);
261 gtk_widget_show (vbox5);
262 gtk_container_add (GTK_CONTAINER (alignment1), vbox5);
263
264 menubar1 = gtk_menu_bar_new ();
265 gtk_widget_show (menubar1);
266 gtk_box_pack_start (GTK_BOX (vbox5), menubar1, FALSE, FALSE, 0);
267
268 menuitem1 = gtk_menu_item_new_with_mnemonic (_("_File"));
269 gtk_widget_show (menuitem1);
270 gtk_container_add (GTK_CONTAINER (menubar1), menuitem1);
271
272 menuitem1_menu = gtk_menu_new ();
273 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem1), menuitem1_menu);
274
275 new1 = gtk_image_menu_item_new_from_stock ("gtk-new", accel_group);
276 gtk_widget_show (new1);
277 gtk_container_add (GTK_CONTAINER (menuitem1_menu), new1);
278
279 open1 = gtk_image_menu_item_new_from_stock ("gtk-open", accel_group);
280 gtk_widget_show (open1);
281 gtk_container_add (GTK_CONTAINER (menuitem1_menu), open1);
282
283 save1 = gtk_image_menu_item_new_from_stock ("gtk-save", accel_group);
284 gtk_widget_show (save1);
285 gtk_container_add (GTK_CONTAINER (menuitem1_menu), save1);
286
287 save_as1 = gtk_image_menu_item_new_from_stock ("gtk-save-as", accel_group);
288 gtk_widget_show (save_as1);
289 gtk_container_add (GTK_CONTAINER (menuitem1_menu), save_as1);
290
291 separatormenuitem1 = gtk_separator_menu_item_new ();
292 gtk_widget_show (separatormenuitem1);
293 gtk_container_add (GTK_CONTAINER (menuitem1_menu), separatormenuitem1);
294 gtk_widget_set_sensitive (separatormenuitem1, FALSE);
295
296 quit1 = gtk_image_menu_item_new_from_stock ("gtk-quit", accel_group);
297 gtk_widget_show (quit1);
298 gtk_container_add (GTK_CONTAINER (menuitem1_menu), quit1);
299
300 menuitem2 = gtk_menu_item_new_with_mnemonic (_("_Edit"));
301 gtk_widget_show (menuitem2);
302 gtk_container_add (GTK_CONTAINER (menubar1), menuitem2);
303
304 menuitem2_menu = gtk_menu_new ();
305 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem2), menuitem2_menu);
306
307 cut1 = gtk_image_menu_item_new_from_stock ("gtk-cut", accel_group);
308 gtk_widget_show (cut1);
309 gtk_container_add (GTK_CONTAINER (menuitem2_menu), cut1);
310
311 copy1 = gtk_image_menu_item_new_from_stock ("gtk-copy", accel_group);
312 gtk_widget_show (copy1);
313 gtk_container_add (GTK_CONTAINER (menuitem2_menu), copy1);
314
315 paste1 = gtk_image_menu_item_new_from_stock ("gtk-paste", accel_group);
316 gtk_widget_show (paste1);
317 gtk_container_add (GTK_CONTAINER (menuitem2_menu), paste1);
318
319 delete1 = gtk_image_menu_item_new_from_stock ("gtk-delete", accel_group);
320 gtk_widget_show (delete1);
321 gtk_container_add (GTK_CONTAINER (menuitem2_menu), delete1);
322
323 menuitem4 = gtk_menu_item_new_with_mnemonic (_("_Help"));
324 gtk_widget_show (menuitem4);
325 gtk_container_add (GTK_CONTAINER (menubar1), menuitem4);
326
327 menuitem4_menu = gtk_menu_new ();
328 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem4), menuitem4_menu);
329
330 about1 = gtk_image_menu_item_new_from_stock ("gtk-about", accel_group);
331 gtk_widget_show (about1);
332 gtk_container_add (GTK_CONTAINER (menuitem4_menu), about1);
333
334 toolbar1 = gtk_toolbar_new ();
335 gtk_widget_show (toolbar1);
336 gtk_box_pack_start (GTK_BOX (vbox5), toolbar1, FALSE, FALSE, 0);
337 gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH);
338 gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar1), FALSE);
339 tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1));
340
341 toolbutton1 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-go-back");
342 gtk_widget_show (toolbutton1);
343 gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton1);
344 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton1), tooltips, _("Back"), NULL);
345
346 toolbutton2 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-go-forward");
347 gtk_widget_show (toolbutton2);
348 gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton2);
349 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton2), tooltips, _("Forward"), NULL);
350
351 toolbutton3 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-stop");
352 gtk_widget_show (toolbutton3);
353 gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton3);
354 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton3), tooltips, _("Stop"), NULL);
355
356 notebook2 = gtk_notebook_new ();
357 gtk_widget_show (notebook2);
358 gtk_box_pack_start (GTK_BOX (vbox5), notebook2, TRUE, TRUE, 0);
359
360 scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
361 gtk_widget_show (scrolledwindow4);
362 gtk_container_add (GTK_CONTAINER (notebook2), scrolledwindow4);
363 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
364 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
365
366 iconview1 = gtk_icon_view_new ();
367 gtk_widget_show (iconview1);
368 gtk_container_add (GTK_CONTAINER (scrolledwindow4), iconview1);
369
370 label12 = gtk_label_new (_("Tab1"));
371 gtk_widget_show (label12);
372 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 0), label12);
373
374 hbox2 = gtk_hbox_new (FALSE, 0);
375 gtk_widget_show (hbox2);
376 gtk_container_add (GTK_CONTAINER (notebook2), hbox2);
377
378 frame2 = gtk_frame_new (NULL);
379 gtk_widget_show (frame2);
380 gtk_box_pack_start (GTK_BOX (hbox2), frame2, TRUE, TRUE, 0);
381 gtk_container_set_border_width (GTK_CONTAINER (frame2), 4);
382
383 alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1);
384 gtk_widget_show (alignment2);
385 gtk_container_add (GTK_CONTAINER (frame2), alignment2);
386 gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 4, 4, 0);
387
388 vbox6 = gtk_vbox_new (FALSE, 4);
389 gtk_widget_show (vbox6);
390 gtk_container_add (GTK_CONTAINER (alignment2), vbox6);
391
392 radiobutton1 = gtk_radio_button_new_with_mnemonic (NULL, _("Radio Button"));
393 gtk_widget_show (radiobutton1);
394 gtk_box_pack_start (GTK_BOX (vbox6), radiobutton1, FALSE, FALSE, 0);
395 gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton1), radiobutton1_group);
396 radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton1));
397
398 radiobutton2 = gtk_radio_button_new_with_mnemonic (NULL, _("Radio Button"));
399 gtk_widget_show (radiobutton2);
400 gtk_box_pack_start (GTK_BOX (vbox6), radiobutton2, FALSE, FALSE, 0);
401 gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton2), radiobutton2_group);
402 radiobutton2_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton2));
403
404 hseparator1 = gtk_hseparator_new ();
405 gtk_widget_show (hseparator1);
406 gtk_box_pack_start (GTK_BOX (vbox6), hseparator1, FALSE, TRUE, 0);
407
408 checkbutton1 = gtk_check_button_new_with_mnemonic (_("Check Button"));
409 gtk_widget_show (checkbutton1);
410 gtk_box_pack_start (GTK_BOX (vbox6), checkbutton1, FALSE, FALSE, 0);
411
412 entry1 = gtk_entry_new ();
413 gtk_widget_show (entry1);
414 gtk_box_pack_start (GTK_BOX (vbox6), entry1, FALSE, FALSE, 0);
415 gtk_entry_set_invisible_char (GTK_ENTRY (entry1), 9679);
416
417 label16 = gtk_label_new (_("Demo"));
418 gtk_widget_show (label16);
419 gtk_frame_set_label_widget (GTK_FRAME (frame2), label16);
420 gtk_label_set_use_markup (GTK_LABEL (label16), TRUE);
421
422 vbox7 = gtk_vbox_new (FALSE, 0);
423 gtk_widget_show (vbox7);
424 gtk_box_pack_start (GTK_BOX (hbox2), vbox7, TRUE, TRUE, 0);
425 gtk_container_set_border_width (GTK_CONTAINER (vbox7), 4);
426
427 progressbar1 = gtk_progress_bar_new ();
428 gtk_widget_show (progressbar1);
429 gtk_box_pack_start (GTK_BOX (vbox7), progressbar1, FALSE, FALSE, 0);
430 gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progressbar1), 0.6);
431 gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progressbar1), "60 %");
432
433 hscale1 = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 0, 0, 0, 0)));
434 gtk_widget_show (hscale1);
435 gtk_box_pack_start (GTK_BOX (vbox7), hscale1, FALSE, TRUE, 0);
436
437 hbox3 = gtk_hbox_new (FALSE, 0);
438 gtk_widget_show (hbox3);
439 gtk_box_pack_start (GTK_BOX (vbox7), hbox3, FALSE, TRUE, 0);
440
441 spinbutton1_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
442 spinbutton1 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton1_adj), 1, 0);
443 gtk_widget_show (spinbutton1);
444 gtk_box_pack_start (GTK_BOX (hbox3), spinbutton1, TRUE, TRUE, 0);
445
446 button1 = gtk_button_new_with_mnemonic (_("button1"));
447 gtk_widget_show (button1);
448 gtk_box_pack_start (GTK_BOX (hbox3), button1, FALSE, FALSE, 0);
449
450 combobox2 = gtk_combo_box_new_text ();
451 gtk_widget_show (combobox2);
452 gtk_box_pack_start (GTK_BOX (vbox7), combobox2, FALSE, TRUE, 0);
453 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 1"));
454 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 2"));
455 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 3"));
456
457 label13 = gtk_label_new (_("Tab2"));
458 gtk_widget_show (label13);
459 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 1), label13);
460
461 empty_notebook_page = gtk_vbox_new (FALSE, 0);
462 gtk_widget_show (empty_notebook_page);
463 gtk_container_add (GTK_CONTAINER (notebook2), empty_notebook_page);
464
465 label14 = gtk_label_new (_("Tab3"));
466 gtk_widget_show (label14);
467 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 2), label14);
468
469 statusbar1 = gtk_statusbar_new ();
470 gtk_widget_show (statusbar1);
471 gtk_box_pack_start (GTK_BOX (vbox5), statusbar1, FALSE, FALSE, 0);
472
473 dialog_action_area1 = GTK_DIALOG (dlg)->action_area;
474 gtk_widget_show (dialog_action_area1);
475 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
476
477 apply = gtk_button_new_from_stock ("gtk-apply");
478 gtk_widget_show (apply);
479 gtk_dialog_add_action_widget (GTK_DIALOG (dlg), apply, GTK_RESPONSE_APPLY);
480 GTK_WIDGET_SET_FLAGS (apply, GTK_CAN_DEFAULT);
481
482 closebutton1 = gtk_button_new_from_stock ("gtk-close");
483 gtk_widget_show (closebutton1);
484 gtk_dialog_add_action_widget (GTK_DIALOG (dlg), closebutton1, GTK_RESPONSE_CLOSE);
485 GTK_WIDGET_SET_FLAGS (closebutton1, GTK_CAN_DEFAULT);
486
487 g_signal_connect ((gpointer) dlg, "delete_event",
488 G_CALLBACK (gtk_main_quit),
489 NULL);
490 g_signal_connect ((gpointer) apply, "clicked",
491 G_CALLBACK (on_apply_clicked),
492 NULL);
493 g_signal_connect ((gpointer) closebutton1, "clicked",
494 G_CALLBACK (gtk_main_quit),
495 NULL);
496
497 /* Store pointers to all widgets, for use by lookup_widget(). */
498 GLADE_HOOKUP_OBJECT_NO_REF (dlg, dlg, "dlg");
499 GLADE_HOOKUP_OBJECT_NO_REF (dlg, dialog_vbox1, "dialog_vbox1");
500 GLADE_HOOKUP_OBJECT (dlg, hbox1, "hbox1");
501 GLADE_HOOKUP_OBJECT (dlg, notebook1, "notebook1");
502 GLADE_HOOKUP_OBJECT (dlg, vbox4, "vbox4");
503 GLADE_HOOKUP_OBJECT (dlg, label8, "label8");
504 GLADE_HOOKUP_OBJECT (dlg, scrolledwindow1, "scrolledwindow1");
505 GLADE_HOOKUP_OBJECT (dlg, gtk_theme_view, "gtk_theme_view");
506 GLADE_HOOKUP_OBJECT (dlg, label2, "label2");
507 GLADE_HOOKUP_OBJECT (dlg, vbox3, "vbox3");
508 GLADE_HOOKUP_OBJECT (dlg, label7, "label7");
509 GLADE_HOOKUP_OBJECT (dlg, scrolledwindow2, "scrolledwindow2");
510 GLADE_HOOKUP_OBJECT (dlg, icon_theme_view, "icon_theme_view");
511 GLADE_HOOKUP_OBJECT (dlg, label3, "label3");
512 GLADE_HOOKUP_OBJECT (dlg, vbox2, "vbox2");
513 GLADE_HOOKUP_OBJECT (dlg, label6, "label6");
514 GLADE_HOOKUP_OBJECT (dlg, scrolledwindow3, "scrolledwindow3");
515 GLADE_HOOKUP_OBJECT (dlg, font_view, "font_view");
516 GLADE_HOOKUP_OBJECT (dlg, table1, "table1");
517 GLADE_HOOKUP_OBJECT (dlg, label9, "label9");
518 GLADE_HOOKUP_OBJECT (dlg, comboboxentry1, "comboboxentry1");
519 GLADE_HOOKUP_OBJECT (dlg, label10, "label10");
520 GLADE_HOOKUP_OBJECT (dlg, combobox1, "combobox1");
521 GLADE_HOOKUP_OBJECT (dlg, label4, "label4");
522 GLADE_HOOKUP_OBJECT (dlg, label5, "label5");
523 GLADE_HOOKUP_OBJECT (dlg, vbox1, "vbox1");
524 GLADE_HOOKUP_OBJECT (dlg, label15, "label15");
525 GLADE_HOOKUP_OBJECT (dlg, frame1, "frame1");
526 GLADE_HOOKUP_OBJECT (dlg, alignment1, "alignment1");
527 GLADE_HOOKUP_OBJECT (dlg, vbox5, "vbox5");
528 GLADE_HOOKUP_OBJECT (dlg, menubar1, "menubar1");
529 GLADE_HOOKUP_OBJECT (dlg, menuitem1, "menuitem1");
530 GLADE_HOOKUP_OBJECT (dlg, menuitem1_menu, "menuitem1_menu");
531 GLADE_HOOKUP_OBJECT (dlg, new1, "new1");
532 GLADE_HOOKUP_OBJECT (dlg, open1, "open1");
533 GLADE_HOOKUP_OBJECT (dlg, save1, "save1");
534 GLADE_HOOKUP_OBJECT (dlg, save_as1, "save_as1");
535 GLADE_HOOKUP_OBJECT (dlg, separatormenuitem1, "separatormenuitem1");
536 GLADE_HOOKUP_OBJECT (dlg, quit1, "quit1");
537 GLADE_HOOKUP_OBJECT (dlg, menuitem2, "menuitem2");
538 GLADE_HOOKUP_OBJECT (dlg, menuitem2_menu, "menuitem2_menu");
539 GLADE_HOOKUP_OBJECT (dlg, cut1, "cut1");
540 GLADE_HOOKUP_OBJECT (dlg, copy1, "copy1");
541 GLADE_HOOKUP_OBJECT (dlg, paste1, "paste1");
542 GLADE_HOOKUP_OBJECT (dlg, delete1, "delete1");
543 GLADE_HOOKUP_OBJECT (dlg, menuitem4, "menuitem4");
544 GLADE_HOOKUP_OBJECT (dlg, menuitem4_menu, "menuitem4_menu");
545 GLADE_HOOKUP_OBJECT (dlg, about1, "about1");
546 GLADE_HOOKUP_OBJECT (dlg, toolbar1, "toolbar1");
547 GLADE_HOOKUP_OBJECT (dlg, toolbutton1, "toolbutton1");
548 GLADE_HOOKUP_OBJECT (dlg, toolbutton2, "toolbutton2");
549 GLADE_HOOKUP_OBJECT (dlg, toolbutton3, "toolbutton3");
550 GLADE_HOOKUP_OBJECT (dlg, notebook2, "notebook2");
551 GLADE_HOOKUP_OBJECT (dlg, scrolledwindow4, "scrolledwindow4");
552 GLADE_HOOKUP_OBJECT (dlg, iconview1, "iconview1");
553 GLADE_HOOKUP_OBJECT (dlg, label12, "label12");
554 GLADE_HOOKUP_OBJECT (dlg, hbox2, "hbox2");
555 GLADE_HOOKUP_OBJECT (dlg, frame2, "frame2");
556 GLADE_HOOKUP_OBJECT (dlg, alignment2, "alignment2");
557 GLADE_HOOKUP_OBJECT (dlg, vbox6, "vbox6");
558 GLADE_HOOKUP_OBJECT (dlg, radiobutton1, "radiobutton1");
559 GLADE_HOOKUP_OBJECT (dlg, radiobutton2, "radiobutton2");
560 GLADE_HOOKUP_OBJECT (dlg, hseparator1, "hseparator1");
561 GLADE_HOOKUP_OBJECT (dlg, checkbutton1, "checkbutton1");
562 GLADE_HOOKUP_OBJECT (dlg, entry1, "entry1");
563 GLADE_HOOKUP_OBJECT (dlg, label16, "label16");
564 GLADE_HOOKUP_OBJECT (dlg, vbox7, "vbox7");
565 GLADE_HOOKUP_OBJECT (dlg, progressbar1, "progressbar1");
566 GLADE_HOOKUP_OBJECT (dlg, hscale1, "hscale1");
567 GLADE_HOOKUP_OBJECT (dlg, hbox3, "hbox3");
568 GLADE_HOOKUP_OBJECT (dlg, spinbutton1, "spinbutton1");
569 GLADE_HOOKUP_OBJECT (dlg, button1, "button1");
570 GLADE_HOOKUP_OBJECT (dlg, combobox2, "combobox2");
571 GLADE_HOOKUP_OBJECT (dlg, label13, "label13");
572 GLADE_HOOKUP_OBJECT (dlg, label14, "label14");
573 GLADE_HOOKUP_OBJECT (dlg, statusbar1, "statusbar1");
574 GLADE_HOOKUP_OBJECT_NO_REF (dlg, dialog_action_area1, "dialog_action_area1");
575 GLADE_HOOKUP_OBJECT (dlg, apply, "apply");
576 GLADE_HOOKUP_OBJECT (dlg, closebutton1, "closebutton1");
577 GLADE_HOOKUP_OBJECT_NO_REF (dlg, tooltips, "tooltips");
578
579 gtk_window_add_accel_group (GTK_WINDOW (dlg), accel_group);
580
581 return dlg;
582 }
583