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