Update translation.
[lxde/lxappearance.git] / src / demo-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 "demo.h"
19 #include "demo-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_demo_window (void)
31 {
32 GtkWidget *demo_window;
33 GtkWidget *top_vbox;
34 GtkWidget *menubar1;
35 GtkWidget *menuitem1;
36 GtkWidget *menuitem1_menu;
37 GtkWidget *new1;
38 GtkWidget *open1;
39 GtkWidget *save1;
40 GtkWidget *save_as1;
41 GtkWidget *separatormenuitem1;
42 GtkWidget *quit1;
43 GtkWidget *menuitem2;
44 GtkWidget *menuitem2_menu;
45 GtkWidget *cut1;
46 GtkWidget *copy1;
47 GtkWidget *paste1;
48 GtkWidget *delete1;
49 GtkWidget *menuitem4;
50 GtkWidget *menuitem4_menu;
51 GtkWidget *about1;
52 GtkWidget *handlebox1;
53 GtkWidget *toolbar1;
54 GtkIconSize tmp_toolbar_icon_size;
55 GtkWidget *toolbutton1;
56 GtkWidget *toolbutton2;
57 GtkWidget *toolbutton3;
58 GtkWidget *notebook2;
59 GtkWidget *scrolledwindow4;
60 GtkWidget *icon_view;
61 GtkWidget *label12;
62 GtkWidget *hbox2;
63 GtkWidget *frame2;
64 GtkWidget *alignment2;
65 GtkWidget *vbox6;
66 GtkWidget *radiobutton1;
67 GSList *radiobutton1_group = NULL;
68 GtkWidget *radiobutton2;
69 GtkWidget *hseparator1;
70 GtkWidget *checkbutton1;
71 GtkWidget *entry1;
72 GtkWidget *label16;
73 GtkWidget *vbox7;
74 GtkWidget *progressbar1;
75 GtkWidget *hscale1;
76 GtkWidget *hbox3;
77 GtkObject *spinbutton1_adj;
78 GtkWidget *spinbutton1;
79 GtkWidget *button1;
80 GtkWidget *alignment3;
81 GtkWidget *hbox4;
82 GtkWidget *image1;
83 GtkWidget *label18;
84 GtkWidget *combobox2;
85 GtkWidget *label13;
86 GtkWidget *scrolledwindow5;
87 GtkWidget *text_view;
88 GtkWidget *label14;
89 GtkWidget *scrolledwindow6;
90 GtkWidget *demo_treeview;
91 GtkWidget *label17;
92 GtkWidget *statusbar1;
93 GtkAccelGroup *accel_group;
94 GtkTooltips *tooltips;
95
96 tooltips = gtk_tooltips_new ();
97
98 accel_group = gtk_accel_group_new ();
99 /*
100 demo_window = gtk_window_new (GTK_WINDOW_POPUP);
101 gtk_widget_set_events (demo_window, GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
102 gtk_window_set_decorated (GTK_WINDOW (demo_window), FALSE);
103 */
104 top_vbox = gtk_vbox_new (FALSE, 0);
105 gtk_widget_show (top_vbox);
106 demo_window = top_vbox;
107
108 /*
109 gtk_container_add (GTK_CONTAINER (demo_window), top_vbox);
110 */
111
112 menubar1 = gtk_menu_bar_new ();
113 gtk_widget_show (menubar1);
114 gtk_box_pack_start (GTK_BOX (top_vbox), menubar1, FALSE, FALSE, 0);
115
116 menuitem1 = gtk_menu_item_new_with_mnemonic (_("_File"));
117 gtk_widget_show (menuitem1);
118 gtk_container_add (GTK_CONTAINER (menubar1), menuitem1);
119
120 menuitem1_menu = gtk_menu_new ();
121 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem1), menuitem1_menu);
122
123 new1 = gtk_image_menu_item_new_from_stock ("gtk-new", accel_group);
124 gtk_widget_show (new1);
125 gtk_container_add (GTK_CONTAINER (menuitem1_menu), new1);
126
127 open1 = gtk_image_menu_item_new_from_stock ("gtk-open", accel_group);
128 gtk_widget_show (open1);
129 gtk_container_add (GTK_CONTAINER (menuitem1_menu), open1);
130
131 save1 = gtk_image_menu_item_new_from_stock ("gtk-save", accel_group);
132 gtk_widget_show (save1);
133 gtk_container_add (GTK_CONTAINER (menuitem1_menu), save1);
134
135 save_as1 = gtk_image_menu_item_new_from_stock ("gtk-save-as", accel_group);
136 gtk_widget_show (save_as1);
137 gtk_container_add (GTK_CONTAINER (menuitem1_menu), save_as1);
138
139 separatormenuitem1 = gtk_separator_menu_item_new ();
140 gtk_widget_show (separatormenuitem1);
141 gtk_container_add (GTK_CONTAINER (menuitem1_menu), separatormenuitem1);
142 gtk_widget_set_sensitive (separatormenuitem1, FALSE);
143
144 quit1 = gtk_image_menu_item_new_from_stock ("gtk-quit", accel_group);
145 gtk_widget_show (quit1);
146 gtk_container_add (GTK_CONTAINER (menuitem1_menu), quit1);
147
148 menuitem2 = gtk_menu_item_new_with_mnemonic (_("_Edit"));
149 gtk_widget_show (menuitem2);
150 gtk_container_add (GTK_CONTAINER (menubar1), menuitem2);
151
152 menuitem2_menu = gtk_menu_new ();
153 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem2), menuitem2_menu);
154
155 cut1 = gtk_image_menu_item_new_from_stock ("gtk-cut", accel_group);
156 gtk_widget_show (cut1);
157 gtk_container_add (GTK_CONTAINER (menuitem2_menu), cut1);
158
159 copy1 = gtk_image_menu_item_new_from_stock ("gtk-copy", accel_group);
160 gtk_widget_show (copy1);
161 gtk_container_add (GTK_CONTAINER (menuitem2_menu), copy1);
162
163 paste1 = gtk_image_menu_item_new_from_stock ("gtk-paste", accel_group);
164 gtk_widget_show (paste1);
165 gtk_container_add (GTK_CONTAINER (menuitem2_menu), paste1);
166
167 delete1 = gtk_image_menu_item_new_from_stock ("gtk-delete", accel_group);
168 gtk_widget_show (delete1);
169 gtk_container_add (GTK_CONTAINER (menuitem2_menu), delete1);
170
171 menuitem4 = gtk_menu_item_new_with_mnemonic (_("_Help"));
172 gtk_widget_show (menuitem4);
173 gtk_container_add (GTK_CONTAINER (menubar1), menuitem4);
174
175 menuitem4_menu = gtk_menu_new ();
176 gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem4), menuitem4_menu);
177
178 about1 = gtk_image_menu_item_new_from_stock ("gtk-about", accel_group);
179 gtk_widget_show (about1);
180 gtk_container_add (GTK_CONTAINER (menuitem4_menu), about1);
181
182 handlebox1 = gtk_handle_box_new ();
183 gtk_widget_show (handlebox1);
184 gtk_box_pack_start (GTK_BOX (top_vbox), handlebox1, FALSE, FALSE, 0);
185
186 toolbar1 = gtk_toolbar_new ();
187 gtk_widget_show (toolbar1);
188 gtk_container_add (GTK_CONTAINER (handlebox1), toolbar1);
189 gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH);
190 gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar1), FALSE);
191 tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1));
192
193 toolbutton1 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-go-back");
194 gtk_widget_show (toolbutton1);
195 gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton1);
196 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton1), tooltips, _("Back"), NULL);
197
198 toolbutton2 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-go-forward");
199 gtk_widget_show (toolbutton2);
200 gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton2);
201 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton2), tooltips, _("Forward"), NULL);
202
203 toolbutton3 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-stop");
204 gtk_widget_show (toolbutton3);
205 gtk_container_add (GTK_CONTAINER (toolbar1), toolbutton3);
206 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton3), tooltips, _("Stop"), NULL);
207
208 notebook2 = gtk_notebook_new ();
209 gtk_widget_show (notebook2);
210 gtk_box_pack_start (GTK_BOX (top_vbox), notebook2, TRUE, TRUE, 0);
211
212 scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
213 gtk_widget_show (scrolledwindow4);
214 gtk_container_add (GTK_CONTAINER (notebook2), scrolledwindow4);
215 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
216 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
217
218 icon_view = gtk_icon_view_new ();
219 gtk_widget_show (icon_view);
220 gtk_container_add (GTK_CONTAINER (scrolledwindow4), icon_view);
221
222 label12 = gtk_label_new (_("Tab1"));
223 gtk_widget_show (label12);
224 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 0), label12);
225
226 hbox2 = gtk_hbox_new (FALSE, 0);
227 gtk_widget_show (hbox2);
228 gtk_container_add (GTK_CONTAINER (notebook2), hbox2);
229
230 frame2 = gtk_frame_new (NULL);
231 gtk_widget_show (frame2);
232 gtk_box_pack_start (GTK_BOX (hbox2), frame2, TRUE, TRUE, 0);
233 gtk_container_set_border_width (GTK_CONTAINER (frame2), 4);
234
235 alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1);
236 gtk_widget_show (alignment2);
237 gtk_container_add (GTK_CONTAINER (frame2), alignment2);
238 gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 4, 4, 0);
239
240 vbox6 = gtk_vbox_new (FALSE, 4);
241 gtk_widget_show (vbox6);
242 gtk_container_add (GTK_CONTAINER (alignment2), vbox6);
243
244 radiobutton1 = gtk_radio_button_new_with_mnemonic (NULL, _("Radio Button"));
245 gtk_widget_show (radiobutton1);
246 gtk_box_pack_start (GTK_BOX (vbox6), radiobutton1, FALSE, FALSE, 0);
247 gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton1), radiobutton1_group);
248 radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton1));
249
250 radiobutton2 = gtk_radio_button_new_with_mnemonic (NULL, _("Radio Button"));
251 gtk_widget_show (radiobutton2);
252 gtk_box_pack_start (GTK_BOX (vbox6), radiobutton2, FALSE, FALSE, 0);
253 gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton2), radiobutton1_group);
254 radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton2));
255
256 hseparator1 = gtk_hseparator_new ();
257 gtk_widget_show (hseparator1);
258 gtk_box_pack_start (GTK_BOX (vbox6), hseparator1, FALSE, TRUE, 0);
259
260 checkbutton1 = gtk_check_button_new_with_mnemonic (_("Check Button"));
261 gtk_widget_show (checkbutton1);
262 gtk_box_pack_start (GTK_BOX (vbox6), checkbutton1, FALSE, FALSE, 0);
263
264 entry1 = gtk_entry_new ();
265 gtk_widget_show (entry1);
266 gtk_box_pack_start (GTK_BOX (vbox6), entry1, FALSE, FALSE, 0);
267 gtk_entry_set_invisible_char (GTK_ENTRY (entry1), 9679);
268
269 label16 = gtk_label_new (_("Demo"));
270 gtk_widget_show (label16);
271 gtk_frame_set_label_widget (GTK_FRAME (frame2), label16);
272 gtk_label_set_use_markup (GTK_LABEL (label16), TRUE);
273
274 vbox7 = gtk_vbox_new (FALSE, 0);
275 gtk_widget_show (vbox7);
276 gtk_box_pack_start (GTK_BOX (hbox2), vbox7, TRUE, TRUE, 0);
277 gtk_container_set_border_width (GTK_CONTAINER (vbox7), 4);
278
279 progressbar1 = gtk_progress_bar_new ();
280 gtk_widget_show (progressbar1);
281 gtk_box_pack_start (GTK_BOX (vbox7), progressbar1, FALSE, FALSE, 0);
282 gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progressbar1), 0.6);
283 gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progressbar1), "60 %");
284
285 hscale1 = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 10, 0, 0)));
286 gtk_widget_show (hscale1);
287 gtk_box_pack_start (GTK_BOX (vbox7), hscale1, FALSE, TRUE, 0);
288
289 hbox3 = gtk_hbox_new (FALSE, 0);
290 gtk_widget_show (hbox3);
291 gtk_box_pack_start (GTK_BOX (vbox7), hbox3, FALSE, TRUE, 0);
292
293 spinbutton1_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
294 spinbutton1 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton1_adj), 1, 0);
295 gtk_widget_show (spinbutton1);
296 gtk_box_pack_start (GTK_BOX (hbox3), spinbutton1, TRUE, TRUE, 0);
297
298 button1 = gtk_button_new ();
299 gtk_widget_show (button1);
300 gtk_box_pack_start (GTK_BOX (hbox3), button1, FALSE, FALSE, 0);
301
302 alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
303 gtk_widget_show (alignment3);
304 gtk_container_add (GTK_CONTAINER (button1), alignment3);
305
306 hbox4 = gtk_hbox_new (FALSE, 2);
307 gtk_widget_show (hbox4);
308 gtk_container_add (GTK_CONTAINER (alignment3), hbox4);
309
310 image1 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_BUTTON);
311 gtk_widget_show (image1);
312 gtk_box_pack_start (GTK_BOX (hbox4), image1, FALSE, FALSE, 0);
313
314 label18 = gtk_label_new_with_mnemonic (_("button"));
315 gtk_widget_show (label18);
316 gtk_box_pack_start (GTK_BOX (hbox4), label18, FALSE, FALSE, 0);
317
318 combobox2 = gtk_combo_box_new_text ();
319 gtk_widget_show (combobox2);
320 gtk_box_pack_start (GTK_BOX (vbox7), combobox2, FALSE, TRUE, 0);
321 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 1"));
322 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 2"));
323 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 3"));
324
325 label13 = gtk_label_new (_("Tab2"));
326 gtk_widget_show (label13);
327 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 1), label13);
328
329 scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
330 gtk_widget_show (scrolledwindow5);
331 gtk_container_add (GTK_CONTAINER (notebook2), scrolledwindow5);
332 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
333 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);
334
335 text_view = gtk_text_view_new ();
336 gtk_widget_show (text_view);
337 gtk_container_add (GTK_CONTAINER (scrolledwindow5), text_view);
338 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);
339
340 label14 = gtk_label_new (_("Tab3"));
341 gtk_widget_show (label14);
342 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 2), label14);
343
344 scrolledwindow6 = gtk_scrolled_window_new (NULL, NULL);
345 gtk_widget_show (scrolledwindow6);
346 gtk_container_add (GTK_CONTAINER (notebook2), scrolledwindow6);
347 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
348 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_SHADOW_IN);
349
350 demo_treeview = gtk_tree_view_new ();
351 gtk_widget_show (demo_treeview);
352 gtk_container_add (GTK_CONTAINER (scrolledwindow6), demo_treeview);
353 gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (demo_treeview), TRUE);
354
355 label17 = gtk_label_new (_("Tab4"));
356 gtk_widget_show (label17);
357 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 3), label17);
358
359 statusbar1 = gtk_statusbar_new ();
360 gtk_widget_show (statusbar1);
361 gtk_box_pack_start (GTK_BOX (top_vbox), statusbar1, FALSE, FALSE, 0);
362
363 g_signal_connect ((gpointer) top_vbox, "destroy",
364 G_CALLBACK (gtk_main_quit),
365 NULL);
366
367 /* Store pointers to all widgets, for use by lookup_widget(). */
368
369 /*
370 GLADE_HOOKUP_OBJECT_NO_REF (demo_window, demo_window, "demo_window");
371 GLADE_HOOKUP_OBJECT (demo_window, top_vbox, "top_vbox");
372 GLADE_HOOKUP_OBJECT (demo_window, menubar1, "menubar1");
373 GLADE_HOOKUP_OBJECT (demo_window, menuitem1, "menuitem1");
374 GLADE_HOOKUP_OBJECT (demo_window, menuitem1_menu, "menuitem1_menu");
375 GLADE_HOOKUP_OBJECT (demo_window, new1, "new1");
376 GLADE_HOOKUP_OBJECT (demo_window, open1, "open1");
377 GLADE_HOOKUP_OBJECT (demo_window, save1, "save1");
378 GLADE_HOOKUP_OBJECT (demo_window, save_as1, "save_as1");
379 GLADE_HOOKUP_OBJECT (demo_window, separatormenuitem1, "separatormenuitem1");
380 GLADE_HOOKUP_OBJECT (demo_window, quit1, "quit1");
381 GLADE_HOOKUP_OBJECT (demo_window, menuitem2, "menuitem2");
382 GLADE_HOOKUP_OBJECT (demo_window, menuitem2_menu, "menuitem2_menu");
383 GLADE_HOOKUP_OBJECT (demo_window, cut1, "cut1");
384 GLADE_HOOKUP_OBJECT (demo_window, copy1, "copy1");
385 GLADE_HOOKUP_OBJECT (demo_window, paste1, "paste1");
386 GLADE_HOOKUP_OBJECT (demo_window, delete1, "delete1");
387 GLADE_HOOKUP_OBJECT (demo_window, menuitem4, "menuitem4");
388 GLADE_HOOKUP_OBJECT (demo_window, menuitem4_menu, "menuitem4_menu");
389 GLADE_HOOKUP_OBJECT (demo_window, about1, "about1");
390 GLADE_HOOKUP_OBJECT (demo_window, handlebox1, "handlebox1");
391 GLADE_HOOKUP_OBJECT (demo_window, toolbar1, "toolbar1");
392 GLADE_HOOKUP_OBJECT (demo_window, toolbutton1, "toolbutton1");
393 GLADE_HOOKUP_OBJECT (demo_window, toolbutton2, "toolbutton2");
394 GLADE_HOOKUP_OBJECT (demo_window, toolbutton3, "toolbutton3");
395 GLADE_HOOKUP_OBJECT (demo_window, notebook2, "notebook2");
396 GLADE_HOOKUP_OBJECT (demo_window, scrolledwindow4, "scrolledwindow4");
397 */
398 GLADE_HOOKUP_OBJECT (demo_window, icon_view, "icon_view");
399 /*
400 GLADE_HOOKUP_OBJECT (demo_window, label12, "label12");
401 GLADE_HOOKUP_OBJECT (demo_window, hbox2, "hbox2");
402 GLADE_HOOKUP_OBJECT (demo_window, frame2, "frame2");
403 GLADE_HOOKUP_OBJECT (demo_window, alignment2, "alignment2");
404 GLADE_HOOKUP_OBJECT (demo_window, vbox6, "vbox6");
405 GLADE_HOOKUP_OBJECT (demo_window, radiobutton1, "radiobutton1");
406 GLADE_HOOKUP_OBJECT (demo_window, radiobutton2, "radiobutton2");
407 GLADE_HOOKUP_OBJECT (demo_window, hseparator1, "hseparator1");
408 GLADE_HOOKUP_OBJECT (demo_window, checkbutton1, "checkbutton1");
409 GLADE_HOOKUP_OBJECT (demo_window, entry1, "entry1");
410 GLADE_HOOKUP_OBJECT (demo_window, label16, "label16");
411 GLADE_HOOKUP_OBJECT (demo_window, vbox7, "vbox7");
412 GLADE_HOOKUP_OBJECT (demo_window, progressbar1, "progressbar1");
413 GLADE_HOOKUP_OBJECT (demo_window, hscale1, "hscale1");
414 GLADE_HOOKUP_OBJECT (demo_window, hbox3, "hbox3");
415 GLADE_HOOKUP_OBJECT (demo_window, spinbutton1, "spinbutton1");
416 GLADE_HOOKUP_OBJECT (demo_window, button1, "button1");
417 GLADE_HOOKUP_OBJECT (demo_window, alignment3, "alignment3");
418 GLADE_HOOKUP_OBJECT (demo_window, hbox4, "hbox4");
419 GLADE_HOOKUP_OBJECT (demo_window, image1, "image1");
420 GLADE_HOOKUP_OBJECT (demo_window, label18, "label18");
421 GLADE_HOOKUP_OBJECT (demo_window, combobox2, "combobox2");
422 GLADE_HOOKUP_OBJECT (demo_window, label13, "label13");
423 GLADE_HOOKUP_OBJECT (demo_window, scrolledwindow5, "scrolledwindow5");
424 GLADE_HOOKUP_OBJECT (demo_window, text_view, "text_view");
425 GLADE_HOOKUP_OBJECT (demo_window, label14, "label14");
426 GLADE_HOOKUP_OBJECT (demo_window, scrolledwindow6, "scrolledwindow6");
427 */
428 GLADE_HOOKUP_OBJECT (demo_window, demo_treeview, "demo_treeview");
429 /*
430 GLADE_HOOKUP_OBJECT (demo_window, label17, "label17");
431 GLADE_HOOKUP_OBJECT (demo_window, statusbar1, "statusbar1");
432 GLADE_HOOKUP_OBJECT_NO_REF (demo_window, tooltips, "tooltips");
433
434 gtk_window_add_accel_group (GTK_WINDOW (demo_window), accel_group);
435 */
436 return demo_window;
437 }
438