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