Adding upstream version 0.2.
[debian/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 *toolbar;
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 toolbar = gtk_toolbar_new ();
187 gtk_widget_show (toolbar);
188 gtk_container_add (GTK_CONTAINER (handlebox1), toolbar);
189 gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_BOTH);
190 gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar), FALSE);
191 tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar));
192
193 toolbutton1 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-go-back");
194 gtk_widget_show (toolbutton1);
195 gtk_container_add (GTK_CONTAINER (toolbar), toolbutton1);
196 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton1), tooltips, _("Back"), NULL);
197 gtk_tool_item_set_is_important (GTK_TOOL_ITEM (toolbutton1), TRUE);
198
199 toolbutton2 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-go-forward");
200 gtk_widget_show (toolbutton2);
201 gtk_container_add (GTK_CONTAINER (toolbar), toolbutton2);
202 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton2), tooltips, _("Forward"), NULL);
203
204 toolbutton3 = (GtkWidget*) gtk_tool_button_new_from_stock ("gtk-stop");
205 gtk_widget_show (toolbutton3);
206 gtk_container_add (GTK_CONTAINER (toolbar), toolbutton3);
207 gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (toolbutton3), tooltips, _("Stop"), NULL);
208 gtk_tool_item_set_is_important (GTK_TOOL_ITEM (toolbutton3), TRUE);
209
210 notebook2 = gtk_notebook_new ();
211 gtk_widget_show (notebook2);
212 gtk_box_pack_start (GTK_BOX (top_vbox), notebook2, TRUE, TRUE, 0);
213
214 scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
215 gtk_widget_show (scrolledwindow4);
216 gtk_container_add (GTK_CONTAINER (notebook2), scrolledwindow4);
217 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
218 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
219
220 icon_view = gtk_icon_view_new ();
221 gtk_widget_show (icon_view);
222 gtk_container_add (GTK_CONTAINER (scrolledwindow4), icon_view);
223
224 label12 = gtk_label_new (_("Tab1"));
225 gtk_widget_show (label12);
226 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 0), label12);
227
228 hbox2 = gtk_hbox_new (FALSE, 0);
229 gtk_widget_show (hbox2);
230 gtk_container_add (GTK_CONTAINER (notebook2), hbox2);
231
232 frame2 = gtk_frame_new (NULL);
233 gtk_widget_show (frame2);
234 gtk_box_pack_start (GTK_BOX (hbox2), frame2, TRUE, TRUE, 0);
235 gtk_container_set_border_width (GTK_CONTAINER (frame2), 4);
236
237 alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1);
238 gtk_widget_show (alignment2);
239 gtk_container_add (GTK_CONTAINER (frame2), alignment2);
240 gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 4, 4, 0);
241
242 vbox6 = gtk_vbox_new (FALSE, 4);
243 gtk_widget_show (vbox6);
244 gtk_container_add (GTK_CONTAINER (alignment2), vbox6);
245
246 radiobutton1 = gtk_radio_button_new_with_mnemonic (NULL, _("Radio Button"));
247 gtk_widget_show (radiobutton1);
248 gtk_box_pack_start (GTK_BOX (vbox6), radiobutton1, FALSE, FALSE, 0);
249 gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton1), radiobutton1_group);
250 radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton1));
251
252 radiobutton2 = gtk_radio_button_new_with_mnemonic (NULL, _("Radio Button"));
253 gtk_widget_show (radiobutton2);
254 gtk_box_pack_start (GTK_BOX (vbox6), radiobutton2, FALSE, FALSE, 0);
255 gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton2), radiobutton1_group);
256 radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton2));
257
258 hseparator1 = gtk_hseparator_new ();
259 gtk_widget_show (hseparator1);
260 gtk_box_pack_start (GTK_BOX (vbox6), hseparator1, FALSE, TRUE, 0);
261
262 checkbutton1 = gtk_check_button_new_with_mnemonic (_("Check Button"));
263 gtk_widget_show (checkbutton1);
264 gtk_box_pack_start (GTK_BOX (vbox6), checkbutton1, FALSE, FALSE, 0);
265
266 entry1 = gtk_entry_new ();
267 gtk_widget_show (entry1);
268 gtk_box_pack_start (GTK_BOX (vbox6), entry1, FALSE, FALSE, 0);
269 gtk_entry_set_invisible_char (GTK_ENTRY (entry1), 9679);
270
271 label16 = gtk_label_new (_("Demo"));
272 gtk_widget_show (label16);
273 gtk_frame_set_label_widget (GTK_FRAME (frame2), label16);
274 gtk_label_set_use_markup (GTK_LABEL (label16), TRUE);
275
276 vbox7 = gtk_vbox_new (FALSE, 0);
277 gtk_widget_show (vbox7);
278 gtk_box_pack_start (GTK_BOX (hbox2), vbox7, TRUE, TRUE, 0);
279 gtk_container_set_border_width (GTK_CONTAINER (vbox7), 4);
280
281 progressbar1 = gtk_progress_bar_new ();
282 gtk_widget_show (progressbar1);
283 gtk_box_pack_start (GTK_BOX (vbox7), progressbar1, FALSE, FALSE, 0);
284 gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progressbar1), 0.6);
285 gtk_progress_bar_set_text (GTK_PROGRESS_BAR (progressbar1), "60 %");
286
287 hscale1 = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, 0, 100, 10, 0, 0)));
288 gtk_widget_show (hscale1);
289 gtk_box_pack_start (GTK_BOX (vbox7), hscale1, FALSE, TRUE, 0);
290
291 hbox3 = gtk_hbox_new (FALSE, 0);
292 gtk_widget_show (hbox3);
293 gtk_box_pack_start (GTK_BOX (vbox7), hbox3, FALSE, TRUE, 0);
294
295 spinbutton1_adj = gtk_adjustment_new (1, 0, 100, 1, 10, 10);
296 spinbutton1 = gtk_spin_button_new (GTK_ADJUSTMENT (spinbutton1_adj), 1, 0);
297 gtk_widget_show (spinbutton1);
298 gtk_box_pack_start (GTK_BOX (hbox3), spinbutton1, TRUE, TRUE, 0);
299
300 button1 = gtk_button_new ();
301 gtk_widget_show (button1);
302 gtk_box_pack_start (GTK_BOX (hbox3), button1, FALSE, FALSE, 0);
303
304 alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
305 gtk_widget_show (alignment3);
306 gtk_container_add (GTK_CONTAINER (button1), alignment3);
307
308 hbox4 = gtk_hbox_new (FALSE, 2);
309 gtk_widget_show (hbox4);
310 gtk_container_add (GTK_CONTAINER (alignment3), hbox4);
311
312 image1 = gtk_image_new_from_stock ("gtk-find", GTK_ICON_SIZE_BUTTON);
313 gtk_widget_show (image1);
314 gtk_box_pack_start (GTK_BOX (hbox4), image1, FALSE, FALSE, 0);
315
316 label18 = gtk_label_new_with_mnemonic (_("button"));
317 gtk_widget_show (label18);
318 gtk_box_pack_start (GTK_BOX (hbox4), label18, FALSE, FALSE, 0);
319
320 combobox2 = gtk_combo_box_new_text ();
321 gtk_widget_show (combobox2);
322 gtk_box_pack_start (GTK_BOX (vbox7), combobox2, FALSE, TRUE, 0);
323 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 1"));
324 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 2"));
325 gtk_combo_box_append_text (GTK_COMBO_BOX (combobox2), _("Test Item 3"));
326
327 label13 = gtk_label_new (_("Tab2"));
328 gtk_widget_show (label13);
329 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 1), label13);
330
331 scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
332 gtk_widget_show (scrolledwindow5);
333 gtk_container_add (GTK_CONTAINER (notebook2), scrolledwindow5);
334 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
335 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);
336
337 text_view = gtk_text_view_new ();
338 gtk_widget_show (text_view);
339 gtk_container_add (GTK_CONTAINER (scrolledwindow5), text_view);
340 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);
341
342 label14 = gtk_label_new (_("Tab3"));
343 gtk_widget_show (label14);
344 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 2), label14);
345
346 scrolledwindow6 = gtk_scrolled_window_new (NULL, NULL);
347 gtk_widget_show (scrolledwindow6);
348 gtk_container_add (GTK_CONTAINER (notebook2), scrolledwindow6);
349 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
350 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_SHADOW_IN);
351
352 demo_treeview = gtk_tree_view_new ();
353 gtk_widget_show (demo_treeview);
354 gtk_container_add (GTK_CONTAINER (scrolledwindow6), demo_treeview);
355 gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (demo_treeview), TRUE);
356
357 label17 = gtk_label_new (_("Tab4"));
358 gtk_widget_show (label17);
359 gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook2), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook2), 3), label17);
360
361 statusbar1 = gtk_statusbar_new ();
362 gtk_widget_show (statusbar1);
363 gtk_box_pack_start (GTK_BOX (top_vbox), statusbar1, FALSE, FALSE, 0);
364
365 g_signal_connect ((gpointer) top_vbox, "destroy",
366 G_CALLBACK (gtk_main_quit),
367 NULL);
368
369 /* Store pointers to all widgets, for use by lookup_widget(). */
370
371 /*
372 GLADE_HOOKUP_OBJECT_NO_REF (demo_window, demo_window, "demo_window");
373 GLADE_HOOKUP_OBJECT (demo_window, top_vbox, "top_vbox");
374 GLADE_HOOKUP_OBJECT (demo_window, menubar1, "menubar1");
375 GLADE_HOOKUP_OBJECT (demo_window, menuitem1, "menuitem1");
376 GLADE_HOOKUP_OBJECT (demo_window, menuitem1_menu, "menuitem1_menu");
377 GLADE_HOOKUP_OBJECT (demo_window, new1, "new1");
378 GLADE_HOOKUP_OBJECT (demo_window, open1, "open1");
379 GLADE_HOOKUP_OBJECT (demo_window, save1, "save1");
380 GLADE_HOOKUP_OBJECT (demo_window, save_as1, "save_as1");
381 GLADE_HOOKUP_OBJECT (demo_window, separatormenuitem1, "separatormenuitem1");
382 GLADE_HOOKUP_OBJECT (demo_window, quit1, "quit1");
383 GLADE_HOOKUP_OBJECT (demo_window, menuitem2, "menuitem2");
384 GLADE_HOOKUP_OBJECT (demo_window, menuitem2_menu, "menuitem2_menu");
385 GLADE_HOOKUP_OBJECT (demo_window, cut1, "cut1");
386 GLADE_HOOKUP_OBJECT (demo_window, copy1, "copy1");
387 GLADE_HOOKUP_OBJECT (demo_window, paste1, "paste1");
388 GLADE_HOOKUP_OBJECT (demo_window, delete1, "delete1");
389 GLADE_HOOKUP_OBJECT (demo_window, menuitem4, "menuitem4");
390 GLADE_HOOKUP_OBJECT (demo_window, menuitem4_menu, "menuitem4_menu");
391 GLADE_HOOKUP_OBJECT (demo_window, about1, "about1");
392 GLADE_HOOKUP_OBJECT (demo_window, handlebox1, "handlebox1");
393 */
394 GLADE_HOOKUP_OBJECT (demo_window, toolbar, "toolbar");
395 /*
396 GLADE_HOOKUP_OBJECT (demo_window, toolbutton1, "toolbutton1");
397 GLADE_HOOKUP_OBJECT (demo_window, toolbutton2, "toolbutton2");
398 GLADE_HOOKUP_OBJECT (demo_window, toolbutton3, "toolbutton3");
399 GLADE_HOOKUP_OBJECT (demo_window, notebook2, "notebook2");
400 GLADE_HOOKUP_OBJECT (demo_window, scrolledwindow4, "scrolledwindow4");
401 */
402 GLADE_HOOKUP_OBJECT (demo_window, icon_view, "icon_view");
403 /*
404 GLADE_HOOKUP_OBJECT (demo_window, label12, "label12");
405 GLADE_HOOKUP_OBJECT (demo_window, hbox2, "hbox2");
406 GLADE_HOOKUP_OBJECT (demo_window, frame2, "frame2");
407 GLADE_HOOKUP_OBJECT (demo_window, alignment2, "alignment2");
408 GLADE_HOOKUP_OBJECT (demo_window, vbox6, "vbox6");
409 GLADE_HOOKUP_OBJECT (demo_window, radiobutton1, "radiobutton1");
410 GLADE_HOOKUP_OBJECT (demo_window, radiobutton2, "radiobutton2");
411 GLADE_HOOKUP_OBJECT (demo_window, hseparator1, "hseparator1");
412 GLADE_HOOKUP_OBJECT (demo_window, checkbutton1, "checkbutton1");
413 GLADE_HOOKUP_OBJECT (demo_window, entry1, "entry1");
414 GLADE_HOOKUP_OBJECT (demo_window, label16, "label16");
415 GLADE_HOOKUP_OBJECT (demo_window, vbox7, "vbox7");
416 GLADE_HOOKUP_OBJECT (demo_window, progressbar1, "progressbar1");
417 GLADE_HOOKUP_OBJECT (demo_window, hscale1, "hscale1");
418 GLADE_HOOKUP_OBJECT (demo_window, hbox3, "hbox3");
419 GLADE_HOOKUP_OBJECT (demo_window, spinbutton1, "spinbutton1");
420 GLADE_HOOKUP_OBJECT (demo_window, button1, "button1");
421 GLADE_HOOKUP_OBJECT (demo_window, alignment3, "alignment3");
422 GLADE_HOOKUP_OBJECT (demo_window, hbox4, "hbox4");
423 GLADE_HOOKUP_OBJECT (demo_window, image1, "image1");
424 GLADE_HOOKUP_OBJECT (demo_window, label18, "label18");
425 GLADE_HOOKUP_OBJECT (demo_window, combobox2, "combobox2");
426 GLADE_HOOKUP_OBJECT (demo_window, label13, "label13");
427 GLADE_HOOKUP_OBJECT (demo_window, scrolledwindow5, "scrolledwindow5");
428 GLADE_HOOKUP_OBJECT (demo_window, text_view, "text_view");
429 GLADE_HOOKUP_OBJECT (demo_window, label14, "label14");
430 GLADE_HOOKUP_OBJECT (demo_window, scrolledwindow6, "scrolledwindow6");
431 */
432 GLADE_HOOKUP_OBJECT (demo_window, demo_treeview, "demo_treeview");
433 /*
434 GLADE_HOOKUP_OBJECT (demo_window, label17, "label17");
435 GLADE_HOOKUP_OBJECT (demo_window, statusbar1, "statusbar1");
436 GLADE_HOOKUP_OBJECT_NO_REF (demo_window, tooltips, "tooltips");
437
438 gtk_window_add_accel_group (GTK_WINDOW (demo_window), accel_group);
439 */
440 return demo_window;
441 }
442