2 * DO NOT EDIT THIS FILE - it is generated by Glade.
18 #include "callbacks.h"
19 #include "interface.h"
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)
26 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
27 g_object_set_data (G_OBJECT (component), name, widget)
29 static GnomeUIInfo file1_menu_uiinfo[] =
32 GNOME_APP_UI_ITEM, N_("_Connect"),
33 N_("Connect to Director"),
34 (gpointer) on_connect_activate, NULL, NULL,
35 GNOME_APP_PIXMAP_NONE, NULL,
36 0, (GdkModifierType) 0, NULL
39 GNOME_APP_UI_ITEM, N_("_Disconnect"),
40 N_("Disconnect from Director"),
41 (gpointer) on_disconnect_activate, NULL, NULL,
42 GNOME_APP_PIXMAP_NONE, NULL,
43 0, (GdkModifierType) 0, NULL
45 GNOMEUIINFO_SEPARATOR,
47 GNOME_APP_UI_ITEM, N_("gtk-quit"),
49 (gpointer) on_exit_activate, NULL, NULL,
50 GNOME_APP_PIXMAP_NONE, NULL,
51 0, (GdkModifierType) 0, NULL
56 static GnomeUIInfo edit1_menu_uiinfo[] =
59 GNOME_APP_UI_ITEM, N_("gtk-cut"),
61 (gpointer) on_cut1_activate, NULL, NULL,
62 GNOME_APP_PIXMAP_NONE, NULL,
63 0, (GdkModifierType) 0, NULL
66 GNOME_APP_UI_ITEM, N_("gtk-copy"),
68 (gpointer) on_copy1_activate, NULL, NULL,
69 GNOME_APP_PIXMAP_NONE, NULL,
70 0, (GdkModifierType) 0, NULL
73 GNOME_APP_UI_ITEM, N_("gtk-paste"),
75 (gpointer) on_paste1_activate, NULL, NULL,
76 GNOME_APP_PIXMAP_NONE, NULL,
77 0, (GdkModifierType) 0, NULL
80 GNOME_APP_UI_ITEM, N_("gtk-clear"),
82 (gpointer) on_clear1_activate, NULL, NULL,
83 GNOME_APP_PIXMAP_NONE, NULL,
84 0, (GdkModifierType) 0, NULL
86 GNOMEUIINFO_SEPARATOR,
90 static GnomeUIInfo item1_menu_uiinfo[] =
93 GNOME_APP_UI_ITEM, N_("_Display Messages"),
95 (gpointer) on_msgs_activate, NULL, NULL,
96 GNOME_APP_PIXMAP_NONE, NULL,
97 0, (GdkModifierType) 0, NULL
102 static GnomeUIInfo settings1_menu_uiinfo[] =
105 GNOME_APP_UI_ITEM, N_("gtk-preferences"),
107 (gpointer) on_preferences1_activate, NULL, NULL,
108 GNOME_APP_PIXMAP_NONE, NULL,
109 0, (GdkModifierType) 0, NULL
114 static GnomeUIInfo help1_menu_uiinfo[] =
117 GNOME_APP_UI_ITEM, N_("gnome-stock-about"),
119 (gpointer) on_about_activate, NULL, NULL,
120 GNOME_APP_PIXMAP_NONE, NULL,
121 0, (GdkModifierType) 0, NULL
126 static GnomeUIInfo menubar1_uiinfo[] =
129 GNOME_APP_UI_SUBTREE, N_("_File"),
131 file1_menu_uiinfo, NULL, NULL,
132 GNOME_APP_PIXMAP_NONE, NULL,
133 0, (GdkModifierType) 0, NULL
136 GNOME_APP_UI_SUBTREE, N_("_Edit"),
138 edit1_menu_uiinfo, NULL, NULL,
139 GNOME_APP_PIXMAP_NONE, NULL,
140 0, (GdkModifierType) 0, NULL
143 GNOME_APP_UI_SUBTREE, N_("_View"),
144 N_("Display Messages"),
145 item1_menu_uiinfo, NULL, NULL,
146 GNOME_APP_PIXMAP_NONE, NULL,
147 0, (GdkModifierType) 0, NULL
150 GNOME_APP_UI_SUBTREE, N_("_Settings"),
152 settings1_menu_uiinfo, NULL, NULL,
153 GNOME_APP_PIXMAP_NONE, NULL,
154 0, (GdkModifierType) 0, NULL
157 GNOME_APP_UI_SUBTREE, N_("_Help"),
159 help1_menu_uiinfo, NULL, NULL,
160 GNOME_APP_PIXMAP_NONE, NULL,
161 0, (GdkModifierType) 0, NULL
171 GtkWidget *handlebox1;
173 GtkWidget *handlebox2;
175 GtkWidget *tmp_toolbar_icon;
176 GtkWidget *connect_button1;
177 GtkWidget *run_button1;
178 GtkWidget *msgs_button;
179 GtkWidget *restore_button;
180 GtkWidget *label_button;
192 GtkTooltips *tooltips;
194 tooltips = gtk_tooltips_new ();
196 app1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
197 gtk_window_set_title (GTK_WINDOW (app1), _("Bacula Console"));
198 gtk_window_set_position (GTK_WINDOW (app1), GTK_WIN_POS_CENTER);
200 vbox6 = gtk_vbox_new (FALSE, 0);
201 gtk_widget_show (vbox6);
202 gtk_container_add (GTK_CONTAINER (app1), vbox6);
204 handlebox1 = gtk_handle_box_new ();
205 gtk_widget_show (handlebox1);
206 gtk_box_pack_start (GTK_BOX (vbox6), handlebox1, FALSE, TRUE, 0);
207 gtk_container_set_border_width (GTK_CONTAINER (handlebox1), 1);
209 menubar1 = gtk_menu_bar_new ();
210 gtk_widget_show (menubar1);
211 gtk_container_add (GTK_CONTAINER (handlebox1), menubar1);
212 gnome_app_fill_menu (GTK_MENU_SHELL (menubar1), menubar1_uiinfo,
215 handlebox2 = gtk_handle_box_new ();
216 gtk_widget_show (handlebox2);
217 gtk_box_pack_start (GTK_BOX (vbox6), handlebox2, FALSE, TRUE, 0);
218 gtk_container_set_border_width (GTK_CONTAINER (handlebox2), 1);
220 toolbar2 = gtk_toolbar_new ();
221 gtk_widget_show (toolbar2);
222 gtk_container_add (GTK_CONTAINER (handlebox2), toolbar2);
223 gtk_container_set_border_width (GTK_CONTAINER (toolbar2), 1);
224 gtk_toolbar_set_style (GTK_TOOLBAR (toolbar2), GTK_TOOLBAR_BOTH);
226 tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-new", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar2)));
227 connect_button1 = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar2),
228 GTK_TOOLBAR_CHILD_BUTTON,
231 _("Connect to Director"), NULL,
232 tmp_toolbar_icon, NULL, NULL);
233 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar2)->children)->data))->label), TRUE);
234 gtk_widget_show (connect_button1);
236 tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-execute", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar2)));
237 run_button1 = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar2),
238 GTK_TOOLBAR_CHILD_BUTTON,
241 _("Run a Job"), NULL,
242 tmp_toolbar_icon, NULL, NULL);
243 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar2)->children)->data))->label), TRUE);
244 gtk_widget_show (run_button1);
246 tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-find", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar2)));
247 msgs_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar2),
248 GTK_TOOLBAR_CHILD_BUTTON,
251 _("Display Messages"), NULL,
252 tmp_toolbar_icon, NULL, NULL);
253 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar2)->children)->data))->label), TRUE);
254 gtk_widget_show (msgs_button);
256 tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-revert-to-saved", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar2)));
257 restore_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar2),
258 GTK_TOOLBAR_CHILD_BUTTON,
262 tmp_toolbar_icon, NULL, NULL);
263 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar2)->children)->data))->label), TRUE);
264 gtk_widget_show (restore_button);
266 tmp_toolbar_icon = gtk_image_new_from_stock ("gtk-save-as", gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar2)));
267 label_button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar2),
268 GTK_TOOLBAR_CHILD_BUTTON,
272 tmp_toolbar_icon, NULL, NULL);
273 gtk_label_set_use_underline (GTK_LABEL (((GtkToolbarChild*) (g_list_last (GTK_TOOLBAR (toolbar2)->children)->data))->label), TRUE);
274 gtk_widget_show (label_button);
276 vbox7 = gtk_vbox_new (FALSE, 0);
277 gtk_widget_show (vbox7);
278 gtk_box_pack_start (GTK_BOX (vbox6), vbox7, TRUE, TRUE, 0);
280 scroll1 = gtk_scrolled_window_new (NULL, NULL);
281 gtk_widget_show (scroll1);
282 gtk_box_pack_start (GTK_BOX (vbox7), scroll1, TRUE, TRUE, 0);
283 GTK_WIDGET_UNSET_FLAGS (scroll1, GTK_CAN_FOCUS);
284 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
285 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll1), GTK_SHADOW_IN);
287 text1 = gtk_text_view_new ();
288 gtk_widget_show (text1);
289 gtk_container_add (GTK_CONTAINER (scroll1), text1);
290 GTK_WIDGET_UNSET_FLAGS (text1, GTK_CAN_FOCUS);
291 gtk_text_view_set_editable (GTK_TEXT_VIEW (text1), FALSE);
292 gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (text1), GTK_WRAP_WORD);
294 hbox18 = gtk_hbox_new (FALSE, 0);
295 gtk_widget_show (hbox18);
296 gtk_box_pack_start (GTK_BOX (vbox7), hbox18, FALSE, TRUE, 0);
298 label38 = gtk_label_new (_(" Command: "));
299 gtk_widget_show (label38);
300 gtk_box_pack_start (GTK_BOX (hbox18), label38, FALSE, TRUE, 0);
302 entry1 = gtk_entry_new ();
303 gtk_widget_show (entry1);
304 gtk_box_pack_start (GTK_BOX (hbox18), entry1, TRUE, TRUE, 0);
305 GTK_WIDGET_SET_FLAGS (entry1, GTK_CAN_DEFAULT);
306 gtk_tooltips_set_tip (tooltips, entry1, _("Enter Commands Here"), NULL);
307 gtk_entry_set_max_length (GTK_ENTRY (entry1), 150);
309 hbox19 = gtk_hbox_new (FALSE, 0);
310 gtk_widget_show (hbox19);
311 gtk_box_pack_start (GTK_BOX (vbox7), hbox19, FALSE, FALSE, 0);
313 frame1 = gtk_frame_new (NULL);
314 gtk_widget_show (frame1);
315 gtk_box_pack_start (GTK_BOX (hbox19), frame1, FALSE, TRUE, 0);
317 label39 = gtk_label_new (_(" Status: "));
318 gtk_widget_show (label39);
319 gtk_container_add (GTK_CONTAINER (frame1), label39);
321 frame2 = gtk_frame_new (NULL);
322 gtk_widget_show (frame2);
323 gtk_box_pack_start (GTK_BOX (hbox19), frame2, TRUE, TRUE, 0);
325 status1 = gtk_label_new ("");
326 gtk_widget_show (status1);
327 gtk_container_add (GTK_CONTAINER (frame2), status1);
328 gtk_label_set_justify (GTK_LABEL (status1), GTK_JUSTIFY_LEFT);
329 gtk_misc_set_alignment (GTK_MISC (status1), 0, 0.5);
331 g_signal_connect ((gpointer) app1, "delete_event",
332 G_CALLBACK (on_app1_delete_event),
334 g_signal_connect ((gpointer) connect_button1, "clicked",
335 G_CALLBACK (on_connect_button_clicked),
337 g_signal_connect ((gpointer) run_button1, "clicked",
338 G_CALLBACK (on_run_button_clicked),
340 g_signal_connect ((gpointer) msgs_button, "clicked",
341 G_CALLBACK (on_msgs_button_clicked),
343 g_signal_connect ((gpointer) restore_button, "clicked",
344 G_CALLBACK (on_restore_button_clicked),
346 g_signal_connect ((gpointer) label_button, "clicked",
347 G_CALLBACK (on_label_button_clicked),
349 g_signal_connect ((gpointer) entry1, "key_press_event",
350 G_CALLBACK (on_entry1_key_press_event),
352 g_signal_connect ((gpointer) entry1, "key_release_event",
353 G_CALLBACK (on_entry1_key_release_event),
356 /* Store pointers to all widgets, for use by lookup_widget(). */
357 GLADE_HOOKUP_OBJECT_NO_REF (app1, app1, "app1");
358 GLADE_HOOKUP_OBJECT (app1, vbox6, "vbox6");
359 GLADE_HOOKUP_OBJECT (app1, handlebox1, "handlebox1");
360 GLADE_HOOKUP_OBJECT (app1, menubar1, "menubar1");
361 GLADE_HOOKUP_OBJECT (app1, menubar1_uiinfo[0].widget, "file1");
362 GLADE_HOOKUP_OBJECT (app1, file1_menu_uiinfo[0].widget, "connect1");
363 GLADE_HOOKUP_OBJECT (app1, file1_menu_uiinfo[1].widget, "disconnect1");
364 GLADE_HOOKUP_OBJECT (app1, file1_menu_uiinfo[2].widget, "menuitem4");
365 GLADE_HOOKUP_OBJECT (app1, file1_menu_uiinfo[3].widget, "exit1");
366 GLADE_HOOKUP_OBJECT (app1, menubar1_uiinfo[1].widget, "edit1");
367 GLADE_HOOKUP_OBJECT (app1, edit1_menu_uiinfo[0].widget, "cut1");
368 GLADE_HOOKUP_OBJECT (app1, edit1_menu_uiinfo[1].widget, "copy1");
369 GLADE_HOOKUP_OBJECT (app1, edit1_menu_uiinfo[2].widget, "paste1");
370 GLADE_HOOKUP_OBJECT (app1, edit1_menu_uiinfo[3].widget, "clear1");
371 GLADE_HOOKUP_OBJECT (app1, edit1_menu_uiinfo[4].widget, "separator1");
372 GLADE_HOOKUP_OBJECT (app1, menubar1_uiinfo[2].widget, "item1");
373 GLADE_HOOKUP_OBJECT (app1, item1_menu_uiinfo[0].widget, "msgs");
374 GLADE_HOOKUP_OBJECT (app1, menubar1_uiinfo[3].widget, "settings1");
375 GLADE_HOOKUP_OBJECT (app1, settings1_menu_uiinfo[0].widget, "preferences1");
376 GLADE_HOOKUP_OBJECT (app1, menubar1_uiinfo[4].widget, "help1");
377 GLADE_HOOKUP_OBJECT (app1, help1_menu_uiinfo[0].widget, "about1");
378 GLADE_HOOKUP_OBJECT (app1, handlebox2, "handlebox2");
379 GLADE_HOOKUP_OBJECT (app1, toolbar2, "toolbar2");
380 GLADE_HOOKUP_OBJECT (app1, connect_button1, "connect_button1");
381 GLADE_HOOKUP_OBJECT (app1, run_button1, "run_button1");
382 GLADE_HOOKUP_OBJECT (app1, msgs_button, "msgs_button");
383 GLADE_HOOKUP_OBJECT (app1, restore_button, "restore_button");
384 GLADE_HOOKUP_OBJECT (app1, label_button, "label_button");
385 GLADE_HOOKUP_OBJECT (app1, vbox7, "vbox7");
386 GLADE_HOOKUP_OBJECT (app1, scroll1, "scroll1");
387 GLADE_HOOKUP_OBJECT (app1, text1, "text1");
388 GLADE_HOOKUP_OBJECT (app1, hbox18, "hbox18");
389 GLADE_HOOKUP_OBJECT (app1, label38, "label38");
390 GLADE_HOOKUP_OBJECT (app1, entry1, "entry1");
391 GLADE_HOOKUP_OBJECT (app1, hbox19, "hbox19");
392 GLADE_HOOKUP_OBJECT (app1, frame1, "frame1");
393 GLADE_HOOKUP_OBJECT (app1, label39, "label39");
394 GLADE_HOOKUP_OBJECT (app1, frame2, "frame2");
395 GLADE_HOOKUP_OBJECT (app1, status1, "status1");
396 GLADE_HOOKUP_OBJECT_NO_REF (app1, tooltips, "tooltips");
398 gtk_widget_grab_focus (entry1);
399 gtk_widget_grab_default (entry1);
407 GtkWidget *dialog_vbox5;
410 GtkWidget *about_head;
411 GtkWidget *hseparator1;
412 GtkWidget *copyright;
415 GtkWidget *dialog_action_area5;
418 GtkWidget *about_button;
420 about1 = gtk_dialog_new ();
421 gtk_window_set_title (GTK_WINDOW (about1), _("About Bacula Console"));
422 gtk_window_set_modal (GTK_WINDOW (about1), TRUE);
424 dialog_vbox5 = GTK_DIALOG (about1)->vbox;
425 gtk_widget_show (dialog_vbox5);
427 vbox8 = gtk_vbox_new (FALSE, 0);
428 gtk_widget_show (vbox8);
429 gtk_box_pack_start (GTK_BOX (dialog_vbox5), vbox8, TRUE, TRUE, 0);
431 vbox9 = gtk_vbox_new (FALSE, 0);
432 gtk_widget_show (vbox9);
433 gtk_box_pack_start (GTK_BOX (vbox8), vbox9, TRUE, TRUE, 0);
435 about_head = gtk_label_new (_("Bacula Console 1.32c (24 Oct 03)\n"));
436 gtk_widget_show (about_head);
437 gtk_box_pack_start (GTK_BOX (vbox9), about_head, FALSE, FALSE, 0);
439 hseparator1 = gtk_hseparator_new ();
440 gtk_widget_show (hseparator1);
441 gtk_box_pack_start (GTK_BOX (vbox9), hseparator1, FALSE, FALSE, 0);
443 copyright = gtk_label_new (_("Copyright (c) 1999 - 2002, Kern Sibbald and John Walker"));
444 gtk_widget_show (copyright);
445 gtk_box_pack_start (GTK_BOX (vbox9), copyright, TRUE, FALSE, 0);
446 gtk_label_set_justify (GTK_LABEL (copyright), GTK_JUSTIFY_LEFT);
447 gtk_misc_set_alignment (GTK_MISC (copyright), 0.1, 0.5);
449 authors = gtk_label_new (_("Authors: Kern Sibbald and John Walker"));
450 gtk_widget_show (authors);
451 gtk_box_pack_start (GTK_BOX (vbox9), authors, TRUE, FALSE, 0);
452 gtk_label_set_justify (GTK_LABEL (authors), GTK_JUSTIFY_LEFT);
453 gtk_misc_set_alignment (GTK_MISC (authors), 0.0400001, 0.5);
455 theme = gtk_label_new (_("It comes by night and sucks the essence from your computers"));
456 gtk_widget_show (theme);
457 gtk_box_pack_start (GTK_BOX (vbox9), theme, TRUE, FALSE, 0);
458 gtk_label_set_justify (GTK_LABEL (theme), GTK_JUSTIFY_LEFT);
459 gtk_misc_set_alignment (GTK_MISC (theme), 0.15, 0.5);
461 dialog_action_area5 = GTK_DIALOG (about1)->action_area;
462 gtk_widget_show (dialog_action_area5);
463 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area5), GTK_BUTTONBOX_END);
465 hbox20 = gtk_hbox_new (FALSE, 0);
466 gtk_widget_show (hbox20);
467 gtk_container_add (GTK_CONTAINER (dialog_action_area5), hbox20);
469 label44 = gtk_label_new ("");
470 gtk_widget_show (label44);
471 gtk_box_pack_start (GTK_BOX (hbox20), label44, TRUE, FALSE, 0);
473 about_button = gtk_button_new_from_stock ("gtk-ok");
474 gtk_widget_show (about_button);
475 gtk_box_pack_start (GTK_BOX (hbox20), about_button, FALSE, FALSE, 0);
476 gtk_container_set_border_width (GTK_CONTAINER (about_button), 1);
477 GTK_WIDGET_SET_FLAGS (about_button, GTK_CAN_DEFAULT);
479 g_signal_connect ((gpointer) about_button, "clicked",
480 G_CALLBACK (on_about_button_clicked),
483 /* Store pointers to all widgets, for use by lookup_widget(). */
484 GLADE_HOOKUP_OBJECT_NO_REF (about1, about1, "about1");
485 GLADE_HOOKUP_OBJECT_NO_REF (about1, dialog_vbox5, "dialog_vbox5");
486 GLADE_HOOKUP_OBJECT (about1, vbox8, "vbox8");
487 GLADE_HOOKUP_OBJECT (about1, vbox9, "vbox9");
488 GLADE_HOOKUP_OBJECT (about1, about_head, "about_head");
489 GLADE_HOOKUP_OBJECT (about1, hseparator1, "hseparator1");
490 GLADE_HOOKUP_OBJECT (about1, copyright, "copyright");
491 GLADE_HOOKUP_OBJECT (about1, authors, "authors");
492 GLADE_HOOKUP_OBJECT (about1, theme, "theme");
493 GLADE_HOOKUP_OBJECT_NO_REF (about1, dialog_action_area5, "dialog_action_area5");
494 GLADE_HOOKUP_OBJECT (about1, hbox20, "hbox20");
495 GLADE_HOOKUP_OBJECT (about1, label44, "label44");
496 GLADE_HOOKUP_OBJECT (about1, about_button, "about_button");
502 create_SelectDirectorDialog (void)
504 GtkWidget *SelectDirectorDialog;
505 GtkWidget *dialog_vbox6;
510 GList *combo1_items = NULL;
511 GtkWidget *dirselect;
512 GtkWidget *dialog_action_area2;
518 SelectDirectorDialog = gtk_dialog_new ();
519 gtk_window_set_title (GTK_WINDOW (SelectDirectorDialog), _("Select Director"));
520 gtk_window_set_modal (GTK_WINDOW (SelectDirectorDialog), TRUE);
522 dialog_vbox6 = GTK_DIALOG (SelectDirectorDialog)->vbox;
523 gtk_widget_show (dialog_vbox6);
525 vbox10 = gtk_vbox_new (FALSE, 0);
526 gtk_widget_show (vbox10);
527 gtk_box_pack_start (GTK_BOX (dialog_vbox6), vbox10, TRUE, TRUE, 0);
529 label48 = gtk_label_new ("");
530 gtk_widget_show (label48);
531 gtk_box_pack_start (GTK_BOX (vbox10), label48, FALSE, FALSE, 0);
532 gtk_misc_set_alignment (GTK_MISC (label48), 0.48, 0.46);
534 label47 = gtk_label_new (_("Select Director"));
535 gtk_widget_show (label47);
536 gtk_box_pack_start (GTK_BOX (vbox10), label47, FALSE, FALSE, 0);
538 combo1 = gtk_combo_new ();
539 g_object_set_data (G_OBJECT (GTK_COMBO (combo1)->popwin),
540 "GladeParentKey", combo1);
541 gtk_widget_show (combo1);
542 gtk_box_pack_start (GTK_BOX (vbox10), combo1, FALSE, FALSE, 0);
543 gtk_container_set_border_width (GTK_CONTAINER (combo1), 6);
544 combo1_items = g_list_append (combo1_items, (gpointer) "");
545 gtk_combo_set_popdown_strings (GTK_COMBO (combo1), combo1_items);
546 g_list_free (combo1_items);
548 dirselect = GTK_COMBO (combo1)->entry;
549 gtk_widget_show (dirselect);
551 dialog_action_area2 = GTK_DIALOG (SelectDirectorDialog)->action_area;
552 gtk_widget_show (dialog_action_area2);
553 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
555 hbox21 = gtk_hbox_new (FALSE, 0);
556 gtk_widget_show (hbox21);
557 gtk_container_add (GTK_CONTAINER (dialog_action_area2), hbox21);
559 button11 = gtk_button_new_from_stock ("gtk-ok");
560 gtk_widget_show (button11);
561 gtk_box_pack_start (GTK_BOX (hbox21), button11, FALSE, FALSE, 0);
563 label46 = gtk_label_new (_(" "));
564 gtk_widget_show (label46);
565 gtk_box_pack_start (GTK_BOX (hbox21), label46, FALSE, FALSE, 0);
566 gtk_misc_set_padding (GTK_MISC (label46), 2, 0);
568 button13 = gtk_button_new_from_stock ("gtk-cancel");
569 gtk_widget_show (button13);
570 gtk_box_pack_start (GTK_BOX (hbox21), button13, FALSE, FALSE, 0);
572 g_signal_connect ((gpointer) button11, "clicked",
573 G_CALLBACK (on_select_director_OK_clicked),
575 g_signal_connect ((gpointer) button13, "clicked",
576 G_CALLBACK (on_select_director_cancel_clicked),
579 /* Store pointers to all widgets, for use by lookup_widget(). */
580 GLADE_HOOKUP_OBJECT_NO_REF (SelectDirectorDialog, SelectDirectorDialog, "SelectDirectorDialog");
581 GLADE_HOOKUP_OBJECT_NO_REF (SelectDirectorDialog, dialog_vbox6, "dialog_vbox6");
582 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, vbox10, "vbox10");
583 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, label48, "label48");
584 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, label47, "label47");
585 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, combo1, "combo1");
586 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, dirselect, "dirselect");
587 GLADE_HOOKUP_OBJECT_NO_REF (SelectDirectorDialog, dialog_action_area2, "dialog_action_area2");
588 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, hbox21, "hbox21");
589 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, button11, "button11");
590 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, label46, "label46");
591 GLADE_HOOKUP_OBJECT (SelectDirectorDialog, button13, "button13");
593 return SelectDirectorDialog;
597 create_RunDialog (void)
599 GtkWidget *RunDialog;
600 GtkWidget *dialog_vbox7;
604 GtkWidget *alignment1;
608 GtkWidget *combo_job;
609 GList *combo_job_items = NULL;
610 GtkWidget *entry_job;
612 GtkWidget *combo_type;
613 GList *combo_type_items = NULL;
614 GtkWidget *entry_type;
618 GtkWidget *combo_client;
619 GList *combo_client_items = NULL;
620 GtkWidget *entry_client;
624 GtkWidget *combo_fileset;
625 GList *combo_fileset_items = NULL;
626 GtkWidget *entry_fileset;
627 GtkWidget *view_fileset_button;
631 GtkWidget *combo_level;
632 GList *combo_level_items = NULL;
633 GtkWidget *entry_level;
637 GtkWidget *combo_pool;
638 GList *combo_pool_items = NULL;
639 GtkWidget *entry_pool;
643 GtkWidget *combo_storage;
644 GList *combo_storage_items = NULL;
645 GtkWidget *entry_storage;
649 GtkWidget *combo_messages;
650 GList *combo_messages_items = NULL;
651 GtkWidget *entry_messages;
655 GtkWidget *entry_where;
659 GtkWidget *entry_when;
662 GtkWidget *dialog_action_area6;
663 GtkWidget *hbuttonbox1;
665 GtkWidget *run_cancel;
667 RunDialog = gtk_dialog_new ();
668 gtk_window_set_title (GTK_WINDOW (RunDialog), _("Run a Job"));
670 dialog_vbox7 = GTK_DIALOG (RunDialog)->vbox;
671 gtk_widget_show (dialog_vbox7);
673 vbox11 = gtk_vbox_new (FALSE, 0);
674 gtk_widget_show (vbox11);
675 gtk_box_pack_start (GTK_BOX (dialog_vbox7), vbox11, TRUE, TRUE, 0);
677 vbox12 = gtk_vbox_new (FALSE, 0);
678 gtk_widget_show (vbox12);
679 gtk_box_pack_start (GTK_BOX (vbox11), vbox12, TRUE, TRUE, 0);
681 label62 = gtk_label_new (_("Run a Job"));
682 gtk_widget_show (label62);
683 gtk_box_pack_start (GTK_BOX (vbox12), label62, FALSE, FALSE, 2);
684 gtk_misc_set_padding (GTK_MISC (label62), 0, 9);
686 alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
687 gtk_widget_show (alignment1);
688 gtk_box_pack_start (GTK_BOX (vbox12), alignment1, FALSE, FALSE, 2);
690 hbox28 = gtk_hbox_new (FALSE, 0);
691 gtk_widget_show (hbox28);
692 gtk_container_add (GTK_CONTAINER (alignment1), hbox28);
694 hbox29 = gtk_hbox_new (FALSE, 0);
695 gtk_widget_show (hbox29);
696 gtk_box_pack_start (GTK_BOX (hbox28), hbox29, TRUE, TRUE, 0);
698 label63 = gtk_label_new (_("Job:"));
699 gtk_widget_show (label63);
700 gtk_box_pack_start (GTK_BOX (hbox29), label63, FALSE, FALSE, 0);
701 gtk_widget_set_size_request (label63, 66, 16);
702 gtk_label_set_justify (GTK_LABEL (label63), GTK_JUSTIFY_RIGHT);
704 combo_job = gtk_combo_new ();
705 g_object_set_data (G_OBJECT (GTK_COMBO (combo_job)->popwin),
706 "GladeParentKey", combo_job);
707 gtk_widget_show (combo_job);
708 gtk_box_pack_start (GTK_BOX (hbox29), combo_job, TRUE, TRUE, 1);
709 gtk_combo_set_value_in_list (GTK_COMBO (combo_job), TRUE, FALSE);
710 combo_job_items = g_list_append (combo_job_items, (gpointer) "");
711 gtk_combo_set_popdown_strings (GTK_COMBO (combo_job), combo_job_items);
712 g_list_free (combo_job_items);
714 entry_job = GTK_COMBO (combo_job)->entry;
715 gtk_widget_show (entry_job);
716 gtk_editable_set_editable (GTK_EDITABLE (entry_job), FALSE);
718 label64 = gtk_label_new (_(" Type:"));
719 gtk_widget_show (label64);
720 gtk_box_pack_start (GTK_BOX (hbox29), label64, FALSE, FALSE, 0);
722 combo_type = gtk_combo_new ();
723 g_object_set_data (G_OBJECT (GTK_COMBO (combo_type)->popwin),
724 "GladeParentKey", combo_type);
725 gtk_widget_show (combo_type);
726 gtk_box_pack_start (GTK_BOX (hbox29), combo_type, FALSE, FALSE, 0);
727 gtk_widget_set_size_request (combo_type, 141, 24);
728 gtk_combo_set_value_in_list (GTK_COMBO (combo_type), TRUE, FALSE);
729 combo_type_items = g_list_append (combo_type_items, (gpointer) "");
730 gtk_combo_set_popdown_strings (GTK_COMBO (combo_type), combo_type_items);
731 g_list_free (combo_type_items);
733 entry_type = GTK_COMBO (combo_type)->entry;
734 gtk_widget_show (entry_type);
735 gtk_editable_set_editable (GTK_EDITABLE (entry_type), FALSE);
737 label114 = gtk_label_new (_(" "));
738 gtk_widget_show (label114);
739 gtk_box_pack_start (GTK_BOX (hbox28), label114, FALSE, FALSE, 30);
740 gtk_label_set_justify (GTK_LABEL (label114), GTK_JUSTIFY_LEFT);
742 hbox30 = gtk_hbox_new (FALSE, 0);
743 gtk_widget_show (hbox30);
744 gtk_box_pack_start (GTK_BOX (vbox12), hbox30, TRUE, TRUE, 0);
746 label66 = gtk_label_new (_("Client:"));
747 gtk_widget_show (label66);
748 gtk_box_pack_start (GTK_BOX (hbox30), label66, FALSE, FALSE, 0);
749 gtk_widget_set_size_request (label66, 65, 16);
750 gtk_label_set_justify (GTK_LABEL (label66), GTK_JUSTIFY_RIGHT);
752 combo_client = gtk_combo_new ();
753 g_object_set_data (G_OBJECT (GTK_COMBO (combo_client)->popwin),
754 "GladeParentKey", combo_client);
755 gtk_widget_show (combo_client);
756 gtk_box_pack_start (GTK_BOX (hbox30), combo_client, TRUE, TRUE, 1);
757 gtk_combo_set_value_in_list (GTK_COMBO (combo_client), TRUE, FALSE);
758 combo_client_items = g_list_append (combo_client_items, (gpointer) "");
759 gtk_combo_set_popdown_strings (GTK_COMBO (combo_client), combo_client_items);
760 g_list_free (combo_client_items);
762 entry_client = GTK_COMBO (combo_client)->entry;
763 gtk_widget_show (entry_client);
764 gtk_editable_set_editable (GTK_EDITABLE (entry_client), FALSE);
766 label67 = gtk_label_new (_(" "));
767 gtk_widget_show (label67);
768 gtk_box_pack_start (GTK_BOX (hbox30), label67, FALSE, FALSE, 123);
770 hbox31 = gtk_hbox_new (FALSE, 0);
771 gtk_widget_show (hbox31);
772 gtk_box_pack_start (GTK_BOX (vbox12), hbox31, TRUE, TRUE, 2);
774 label68 = gtk_label_new (_("FileSet: "));
775 gtk_widget_show (label68);
776 gtk_box_pack_start (GTK_BOX (hbox31), label68, FALSE, FALSE, 0);
777 gtk_widget_set_size_request (label68, 66, 16);
778 gtk_label_set_justify (GTK_LABEL (label68), GTK_JUSTIFY_RIGHT);
780 combo_fileset = gtk_combo_new ();
781 g_object_set_data (G_OBJECT (GTK_COMBO (combo_fileset)->popwin),
782 "GladeParentKey", combo_fileset);
783 gtk_widget_show (combo_fileset);
784 gtk_box_pack_start (GTK_BOX (hbox31), combo_fileset, TRUE, TRUE, 0);
785 gtk_combo_set_value_in_list (GTK_COMBO (combo_fileset), TRUE, FALSE);
786 combo_fileset_items = g_list_append (combo_fileset_items, (gpointer) "");
787 gtk_combo_set_popdown_strings (GTK_COMBO (combo_fileset), combo_fileset_items);
788 g_list_free (combo_fileset_items);
790 entry_fileset = GTK_COMBO (combo_fileset)->entry;
791 gtk_widget_show (entry_fileset);
792 gtk_editable_set_editable (GTK_EDITABLE (entry_fileset), FALSE);
794 view_fileset_button = gtk_button_new_with_mnemonic (_(" View FileSet "));
795 gtk_widget_show (view_fileset_button);
796 gtk_box_pack_start (GTK_BOX (hbox31), view_fileset_button, FALSE, TRUE, 10);
797 gtk_widget_set_size_request (view_fileset_button, 93, 26);
799 label69 = gtk_label_new (_(" "));
800 gtk_widget_show (label69);
801 gtk_box_pack_start (GTK_BOX (hbox31), label69, FALSE, FALSE, 65);
803 hbox32 = gtk_hbox_new (FALSE, 0);
804 gtk_widget_show (hbox32);
805 gtk_box_pack_start (GTK_BOX (vbox12), hbox32, TRUE, TRUE, 2);
807 label70 = gtk_label_new (_("Level:"));
808 gtk_widget_show (label70);
809 gtk_box_pack_start (GTK_BOX (hbox32), label70, FALSE, FALSE, 0);
810 gtk_widget_set_size_request (label70, 66, 16);
811 gtk_label_set_justify (GTK_LABEL (label70), GTK_JUSTIFY_RIGHT);
813 combo_level = gtk_combo_new ();
814 g_object_set_data (G_OBJECT (GTK_COMBO (combo_level)->popwin),
815 "GladeParentKey", combo_level);
816 gtk_widget_show (combo_level);
817 gtk_box_pack_start (GTK_BOX (hbox32), combo_level, TRUE, TRUE, 0);
818 gtk_combo_set_value_in_list (GTK_COMBO (combo_level), TRUE, FALSE);
819 combo_level_items = g_list_append (combo_level_items, (gpointer) "");
820 combo_level_items = g_list_append (combo_level_items, (gpointer) "");
821 gtk_combo_set_popdown_strings (GTK_COMBO (combo_level), combo_level_items);
822 g_list_free (combo_level_items);
824 entry_level = GTK_COMBO (combo_level)->entry;
825 gtk_widget_show (entry_level);
826 gtk_editable_set_editable (GTK_EDITABLE (entry_level), FALSE);
828 label71 = gtk_label_new (_(" "));
829 gtk_widget_show (label71);
830 gtk_box_pack_start (GTK_BOX (hbox32), label71, FALSE, FALSE, 100);
832 hbox33 = gtk_hbox_new (FALSE, 0);
833 gtk_widget_show (hbox33);
834 gtk_box_pack_start (GTK_BOX (vbox12), hbox33, TRUE, TRUE, 2);
836 label72 = gtk_label_new (_("Pool:"));
837 gtk_widget_show (label72);
838 gtk_box_pack_start (GTK_BOX (hbox33), label72, FALSE, FALSE, 0);
839 gtk_widget_set_size_request (label72, 66, 16);
841 combo_pool = gtk_combo_new ();
842 g_object_set_data (G_OBJECT (GTK_COMBO (combo_pool)->popwin),
843 "GladeParentKey", combo_pool);
844 gtk_widget_show (combo_pool);
845 gtk_box_pack_start (GTK_BOX (hbox33), combo_pool, TRUE, TRUE, 0);
846 gtk_combo_set_value_in_list (GTK_COMBO (combo_pool), TRUE, FALSE);
847 combo_pool_items = g_list_append (combo_pool_items, (gpointer) "");
848 combo_pool_items = g_list_append (combo_pool_items, (gpointer) "");
849 gtk_combo_set_popdown_strings (GTK_COMBO (combo_pool), combo_pool_items);
850 g_list_free (combo_pool_items);
852 entry_pool = GTK_COMBO (combo_pool)->entry;
853 gtk_widget_show (entry_pool);
854 gtk_editable_set_editable (GTK_EDITABLE (entry_pool), FALSE);
856 label73 = gtk_label_new (_(" "));
857 gtk_widget_show (label73);
858 gtk_box_pack_start (GTK_BOX (hbox33), label73, FALSE, FALSE, 120);
860 hbox39 = gtk_hbox_new (FALSE, 0);
861 gtk_widget_show (hbox39);
862 gtk_box_pack_start (GTK_BOX (vbox12), hbox39, TRUE, TRUE, 0);
864 label96 = gtk_label_new (_("Storage:"));
865 gtk_widget_show (label96);
866 gtk_box_pack_start (GTK_BOX (hbox39), label96, FALSE, FALSE, 0);
867 gtk_widget_set_size_request (label96, 66, 16);
869 combo_storage = gtk_combo_new ();
870 g_object_set_data (G_OBJECT (GTK_COMBO (combo_storage)->popwin),
871 "GladeParentKey", combo_storage);
872 gtk_widget_show (combo_storage);
873 gtk_box_pack_start (GTK_BOX (hbox39), combo_storage, TRUE, TRUE, 0);
874 gtk_combo_set_value_in_list (GTK_COMBO (combo_storage), TRUE, FALSE);
875 combo_storage_items = g_list_append (combo_storage_items, (gpointer) "");
876 combo_storage_items = g_list_append (combo_storage_items, (gpointer) "");
877 gtk_combo_set_popdown_strings (GTK_COMBO (combo_storage), combo_storage_items);
878 g_list_free (combo_storage_items);
880 entry_storage = GTK_COMBO (combo_storage)->entry;
881 gtk_widget_show (entry_storage);
882 gtk_editable_set_editable (GTK_EDITABLE (entry_storage), FALSE);
884 label97 = gtk_label_new (_(" "));
885 gtk_widget_show (label97);
886 gtk_box_pack_start (GTK_BOX (hbox39), label97, FALSE, FALSE, 120);
888 hbox40 = gtk_hbox_new (FALSE, 0);
889 gtk_widget_show (hbox40);
890 gtk_box_pack_start (GTK_BOX (vbox12), hbox40, TRUE, TRUE, 0);
892 label98 = gtk_label_new (_("Messages:"));
893 gtk_widget_show (label98);
894 gtk_box_pack_start (GTK_BOX (hbox40), label98, FALSE, FALSE, 0);
895 gtk_widget_set_size_request (label98, 66, 16);
897 combo_messages = gtk_combo_new ();
898 g_object_set_data (G_OBJECT (GTK_COMBO (combo_messages)->popwin),
899 "GladeParentKey", combo_messages);
900 gtk_widget_show (combo_messages);
901 gtk_box_pack_start (GTK_BOX (hbox40), combo_messages, TRUE, TRUE, 0);
902 gtk_combo_set_value_in_list (GTK_COMBO (combo_messages), TRUE, FALSE);
903 combo_messages_items = g_list_append (combo_messages_items, (gpointer) "");
904 gtk_combo_set_popdown_strings (GTK_COMBO (combo_messages), combo_messages_items);
905 g_list_free (combo_messages_items);
907 entry_messages = GTK_COMBO (combo_messages)->entry;
908 gtk_widget_show (entry_messages);
909 gtk_editable_set_editable (GTK_EDITABLE (entry_messages), FALSE);
911 label99 = gtk_label_new (_(" "));
912 gtk_widget_show (label99);
913 gtk_box_pack_start (GTK_BOX (hbox40), label99, FALSE, FALSE, 120);
915 hbox34 = gtk_hbox_new (FALSE, 0);
916 gtk_widget_show (hbox34);
917 gtk_box_pack_start (GTK_BOX (vbox12), hbox34, TRUE, TRUE, 2);
919 label77 = gtk_label_new (_("Where: "));
920 gtk_widget_show (label77);
921 gtk_box_pack_start (GTK_BOX (hbox34), label77, FALSE, FALSE, 0);
922 gtk_widget_set_size_request (label77, 66, 16);
924 entry_where = gtk_entry_new ();
925 gtk_widget_show (entry_where);
926 gtk_box_pack_start (GTK_BOX (hbox34), entry_where, TRUE, TRUE, 0);
928 label78 = gtk_label_new (_(" "));
929 gtk_widget_show (label78);
930 gtk_box_pack_start (GTK_BOX (hbox34), label78, FALSE, FALSE, 120);
932 hbox41 = gtk_hbox_new (FALSE, 0);
933 gtk_widget_show (hbox41);
934 gtk_box_pack_start (GTK_BOX (vbox11), hbox41, TRUE, TRUE, 0);
936 label100 = gtk_label_new (_("When:"));
937 gtk_widget_show (label100);
938 gtk_box_pack_start (GTK_BOX (hbox41), label100, FALSE, FALSE, 0);
939 gtk_widget_set_size_request (label100, 66, 16);
941 entry_when = gtk_entry_new ();
942 gtk_widget_show (entry_when);
943 gtk_box_pack_start (GTK_BOX (hbox41), entry_when, TRUE, TRUE, 0);
945 label101 = gtk_label_new (_(" "));
946 gtk_widget_show (label101);
947 gtk_box_pack_start (GTK_BOX (hbox41), label101, FALSE, FALSE, 120);
949 label84 = gtk_label_new (_(" "));
950 gtk_widget_show (label84);
951 gtk_box_pack_start (GTK_BOX (vbox11), label84, FALSE, FALSE, 0);
953 dialog_action_area6 = GTK_DIALOG (RunDialog)->action_area;
954 gtk_widget_show (dialog_action_area6);
955 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END);
957 hbuttonbox1 = gtk_hbutton_box_new ();
958 gtk_widget_show (hbuttonbox1);
959 gtk_container_add (GTK_CONTAINER (dialog_action_area6), hbuttonbox1);
960 gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END);
961 gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 8);
963 run_ok = gtk_button_new_from_stock ("gtk-ok");
964 gtk_widget_show (run_ok);
965 gtk_container_add (GTK_CONTAINER (hbuttonbox1), run_ok);
966 GTK_WIDGET_SET_FLAGS (run_ok, GTK_CAN_DEFAULT);
968 run_cancel = gtk_button_new_from_stock ("gtk-cancel");
969 gtk_widget_show (run_cancel);
970 gtk_container_add (GTK_CONTAINER (hbuttonbox1), run_cancel);
971 GTK_WIDGET_SET_FLAGS (run_cancel, GTK_CAN_DEFAULT);
973 g_signal_connect ((gpointer) entry_job, "changed",
974 G_CALLBACK (on_entry_job_changed),
976 g_signal_connect ((gpointer) view_fileset_button, "clicked",
977 G_CALLBACK (on_view_fileset_clicked),
979 g_signal_connect ((gpointer) run_ok, "clicked",
980 G_CALLBACK (on_run_ok_clicked),
982 g_signal_connect ((gpointer) run_cancel, "clicked",
983 G_CALLBACK (on_run_cancel_clicked),
986 /* Store pointers to all widgets, for use by lookup_widget(). */
987 GLADE_HOOKUP_OBJECT_NO_REF (RunDialog, RunDialog, "RunDialog");
988 GLADE_HOOKUP_OBJECT_NO_REF (RunDialog, dialog_vbox7, "dialog_vbox7");
989 GLADE_HOOKUP_OBJECT (RunDialog, vbox11, "vbox11");
990 GLADE_HOOKUP_OBJECT (RunDialog, vbox12, "vbox12");
991 GLADE_HOOKUP_OBJECT (RunDialog, label62, "label62");
992 GLADE_HOOKUP_OBJECT (RunDialog, alignment1, "alignment1");
993 GLADE_HOOKUP_OBJECT (RunDialog, hbox28, "hbox28");
994 GLADE_HOOKUP_OBJECT (RunDialog, hbox29, "hbox29");
995 GLADE_HOOKUP_OBJECT (RunDialog, label63, "label63");
996 GLADE_HOOKUP_OBJECT (RunDialog, combo_job, "combo_job");
997 GLADE_HOOKUP_OBJECT (RunDialog, entry_job, "entry_job");
998 GLADE_HOOKUP_OBJECT (RunDialog, label64, "label64");
999 GLADE_HOOKUP_OBJECT (RunDialog, combo_type, "combo_type");
1000 GLADE_HOOKUP_OBJECT (RunDialog, entry_type, "entry_type");
1001 GLADE_HOOKUP_OBJECT (RunDialog, label114, "label114");
1002 GLADE_HOOKUP_OBJECT (RunDialog, hbox30, "hbox30");
1003 GLADE_HOOKUP_OBJECT (RunDialog, label66, "label66");
1004 GLADE_HOOKUP_OBJECT (RunDialog, combo_client, "combo_client");
1005 GLADE_HOOKUP_OBJECT (RunDialog, entry_client, "entry_client");
1006 GLADE_HOOKUP_OBJECT (RunDialog, label67, "label67");
1007 GLADE_HOOKUP_OBJECT (RunDialog, hbox31, "hbox31");
1008 GLADE_HOOKUP_OBJECT (RunDialog, label68, "label68");
1009 GLADE_HOOKUP_OBJECT (RunDialog, combo_fileset, "combo_fileset");
1010 GLADE_HOOKUP_OBJECT (RunDialog, entry_fileset, "entry_fileset");
1011 GLADE_HOOKUP_OBJECT (RunDialog, view_fileset_button, "view_fileset_button");
1012 GLADE_HOOKUP_OBJECT (RunDialog, label69, "label69");
1013 GLADE_HOOKUP_OBJECT (RunDialog, hbox32, "hbox32");
1014 GLADE_HOOKUP_OBJECT (RunDialog, label70, "label70");
1015 GLADE_HOOKUP_OBJECT (RunDialog, combo_level, "combo_level");
1016 GLADE_HOOKUP_OBJECT (RunDialog, entry_level, "entry_level");
1017 GLADE_HOOKUP_OBJECT (RunDialog, label71, "label71");
1018 GLADE_HOOKUP_OBJECT (RunDialog, hbox33, "hbox33");
1019 GLADE_HOOKUP_OBJECT (RunDialog, label72, "label72");
1020 GLADE_HOOKUP_OBJECT (RunDialog, combo_pool, "combo_pool");
1021 GLADE_HOOKUP_OBJECT (RunDialog, entry_pool, "entry_pool");
1022 GLADE_HOOKUP_OBJECT (RunDialog, label73, "label73");
1023 GLADE_HOOKUP_OBJECT (RunDialog, hbox39, "hbox39");
1024 GLADE_HOOKUP_OBJECT (RunDialog, label96, "label96");
1025 GLADE_HOOKUP_OBJECT (RunDialog, combo_storage, "combo_storage");
1026 GLADE_HOOKUP_OBJECT (RunDialog, entry_storage, "entry_storage");
1027 GLADE_HOOKUP_OBJECT (RunDialog, label97, "label97");
1028 GLADE_HOOKUP_OBJECT (RunDialog, hbox40, "hbox40");
1029 GLADE_HOOKUP_OBJECT (RunDialog, label98, "label98");
1030 GLADE_HOOKUP_OBJECT (RunDialog, combo_messages, "combo_messages");
1031 GLADE_HOOKUP_OBJECT (RunDialog, entry_messages, "entry_messages");
1032 GLADE_HOOKUP_OBJECT (RunDialog, label99, "label99");
1033 GLADE_HOOKUP_OBJECT (RunDialog, hbox34, "hbox34");
1034 GLADE_HOOKUP_OBJECT (RunDialog, label77, "label77");
1035 GLADE_HOOKUP_OBJECT (RunDialog, entry_where, "entry_where");
1036 GLADE_HOOKUP_OBJECT (RunDialog, label78, "label78");
1037 GLADE_HOOKUP_OBJECT (RunDialog, hbox41, "hbox41");
1038 GLADE_HOOKUP_OBJECT (RunDialog, label100, "label100");
1039 GLADE_HOOKUP_OBJECT (RunDialog, entry_when, "entry_when");
1040 GLADE_HOOKUP_OBJECT (RunDialog, label101, "label101");
1041 GLADE_HOOKUP_OBJECT (RunDialog, label84, "label84");
1042 GLADE_HOOKUP_OBJECT_NO_REF (RunDialog, dialog_action_area6, "dialog_action_area6");
1043 GLADE_HOOKUP_OBJECT (RunDialog, hbuttonbox1, "hbuttonbox1");
1044 GLADE_HOOKUP_OBJECT (RunDialog, run_ok, "run_ok");
1045 GLADE_HOOKUP_OBJECT (RunDialog, run_cancel, "run_cancel");
1051 create_restore_files (void)
1053 GtkWidget *restore_files;
1055 GtkWidget *scrolledwindow4;
1061 GtkWidget *label105;
1062 GtkWidget *restore_file;
1063 GtkTooltips *tooltips;
1065 tooltips = gtk_tooltips_new ();
1067 restore_files = gtk_window_new (GTK_WINDOW_TOPLEVEL);
1068 gtk_window_set_title (GTK_WINDOW (restore_files), _("Restore File Selection"));
1069 gtk_window_set_modal (GTK_WINDOW (restore_files), TRUE);
1071 vbox13 = gtk_vbox_new (FALSE, 0);
1072 gtk_widget_show (vbox13);
1073 gtk_container_add (GTK_CONTAINER (restore_files), vbox13);
1075 scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
1076 gtk_widget_show (scrolledwindow4);
1077 gtk_box_pack_start (GTK_BOX (vbox13), scrolledwindow4, TRUE, TRUE, 0);
1078 GTK_WIDGET_UNSET_FLAGS (scrolledwindow4, GTK_CAN_FOCUS);
1079 gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
1081 ctree2 = gtk_tree_view_new ();
1082 gtk_widget_show (ctree2);
1083 gtk_container_add (GTK_CONTAINER (scrolledwindow4), ctree2);
1085 hbox38 = gtk_hbox_new (FALSE, 0);
1086 gtk_widget_show (hbox38);
1087 gtk_box_pack_start (GTK_BOX (vbox13), hbox38, FALSE, TRUE, 0);
1089 label88 = gtk_label_new (_(" cwd:"));
1090 gtk_widget_show (label88);
1091 gtk_box_pack_start (GTK_BOX (hbox38), label88, FALSE, TRUE, 0);
1093 entry25 = gtk_entry_new ();
1094 gtk_widget_show (entry25);
1095 gtk_box_pack_start (GTK_BOX (hbox38), entry25, TRUE, TRUE, 0);
1096 GTK_WIDGET_SET_FLAGS (entry25, GTK_CAN_DEFAULT);
1097 gtk_tooltips_set_tip (tooltips, entry25, _("Enter Commands Here"), NULL);
1099 hbox44 = gtk_hbox_new (FALSE, 0);
1100 gtk_widget_show (hbox44);
1101 gtk_box_pack_start (GTK_BOX (vbox13), hbox44, FALSE, TRUE, 0);
1103 label105 = gtk_label_new (_(" "));
1104 gtk_widget_show (label105);
1105 gtk_box_pack_start (GTK_BOX (hbox44), label105, TRUE, FALSE, 0);
1106 gtk_label_set_justify (GTK_LABEL (label105), GTK_JUSTIFY_FILL);
1107 gtk_misc_set_padding (GTK_MISC (label105), 59, 0);
1109 restore_file = gtk_button_new_from_stock ("gtk-ok");
1110 gtk_widget_show (restore_file);
1111 gtk_box_pack_start (GTK_BOX (hbox44), restore_file, TRUE, FALSE, 0);
1112 gtk_container_set_border_width (GTK_CONTAINER (restore_file), 9);
1114 g_signal_connect ((gpointer) entry25, "key_press_event",
1115 G_CALLBACK (on_entry1_key_press_event),
1117 g_signal_connect ((gpointer) entry25, "key_release_event",
1118 G_CALLBACK (on_entry1_key_release_event),
1120 g_signal_connect ((gpointer) restore_file, "clicked",
1121 G_CALLBACK (on_restore_file_clicked),
1124 /* Store pointers to all widgets, for use by lookup_widget(). */
1125 GLADE_HOOKUP_OBJECT_NO_REF (restore_files, restore_files, "restore_files");
1126 GLADE_HOOKUP_OBJECT (restore_files, vbox13, "vbox13");
1127 GLADE_HOOKUP_OBJECT (restore_files, scrolledwindow4, "scrolledwindow4");
1128 GLADE_HOOKUP_OBJECT (restore_files, ctree2, "ctree2");
1129 GLADE_HOOKUP_OBJECT (restore_files, hbox38, "hbox38");
1130 GLADE_HOOKUP_OBJECT (restore_files, label88, "label88");
1131 GLADE_HOOKUP_OBJECT (restore_files, entry25, "entry25");
1132 GLADE_HOOKUP_OBJECT (restore_files, hbox44, "hbox44");
1133 GLADE_HOOKUP_OBJECT (restore_files, label105, "label105");
1134 GLADE_HOOKUP_OBJECT (restore_files, restore_file, "restore_file");
1135 GLADE_HOOKUP_OBJECT_NO_REF (restore_files, tooltips, "tooltips");
1137 gtk_widget_grab_focus (entry25);
1138 gtk_widget_grab_default (entry25);
1139 return restore_files;
1143 create_restore_dialog (void)
1145 GtkWidget *restore_dialog;
1146 GtkWidget *dialog_vbox8;
1150 GtkWidget *label102;
1152 GtkWidget *label103;
1153 GtkWidget *rb_most_recent;
1154 GSList *rb_most_recent_group = NULL;
1156 GSList *rb_jobs_group = NULL;
1158 GSList *rb_file_group = NULL;
1159 GtkWidget *label104;
1160 GtkWidget *label106;
1162 GtkWidget *apply_button;
1163 GtkWidget *dialog_action_area7;
1164 GtkWidget *hbuttonbox2;
1165 GtkWidget *restore_ok;
1166 GtkWidget *restore_cancel;
1168 restore_dialog = gtk_dialog_new ();
1169 gtk_window_set_title (GTK_WINDOW (restore_dialog), _("Restore Files"));
1170 gtk_window_set_modal (GTK_WINDOW (restore_dialog), TRUE);
1172 dialog_vbox8 = GTK_DIALOG (restore_dialog)->vbox;
1173 gtk_widget_show (dialog_vbox8);
1175 hbox42 = gtk_hbox_new (FALSE, 0);
1176 gtk_widget_show (hbox42);
1177 gtk_box_pack_start (GTK_BOX (dialog_vbox8), hbox42, TRUE, TRUE, 0);
1179 frame3 = gtk_frame_new (NULL);
1180 gtk_widget_show (frame3);
1181 gtk_box_pack_start (GTK_BOX (hbox42), frame3, TRUE, TRUE, 0);
1182 gtk_container_set_border_width (GTK_CONTAINER (frame3), 8);
1184 hbox43 = gtk_hbox_new (FALSE, 0);
1185 gtk_widget_show (hbox43);
1186 gtk_container_add (GTK_CONTAINER (frame3), hbox43);
1188 label102 = gtk_label_new (_(" "));
1189 gtk_widget_show (label102);
1190 gtk_box_pack_end (GTK_BOX (hbox43), label102, FALSE, FALSE, 0);
1192 vbox15 = gtk_vbox_new (FALSE, 0);
1193 gtk_widget_show (vbox15);
1194 gtk_box_pack_start (GTK_BOX (hbox43), vbox15, TRUE, TRUE, 0);
1196 label103 = gtk_label_new ("");
1197 gtk_widget_show (label103);
1198 gtk_box_pack_start (GTK_BOX (vbox15), label103, FALSE, FALSE, 0);
1199 gtk_misc_set_padding (GTK_MISC (label103), 0, 2);
1201 rb_most_recent = gtk_radio_button_new_with_mnemonic (NULL, _("Select most recent backup"));
1202 gtk_widget_show (rb_most_recent);
1203 gtk_box_pack_start (GTK_BOX (vbox15), rb_most_recent, FALSE, FALSE, 0);
1204 gtk_container_set_border_width (GTK_CONTAINER (rb_most_recent), 3);
1205 gtk_radio_button_set_group (GTK_RADIO_BUTTON (rb_most_recent), rb_most_recent_group);
1206 rb_most_recent_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (rb_most_recent));
1207 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (rb_most_recent), TRUE);
1209 rb_jobs = gtk_radio_button_new_with_mnemonic (NULL, _("Select list of Jobs"));
1210 gtk_widget_show (rb_jobs);
1211 gtk_box_pack_start (GTK_BOX (vbox15), rb_jobs, FALSE, FALSE, 0);
1212 gtk_container_set_border_width (GTK_CONTAINER (rb_jobs), 5);
1213 gtk_radio_button_set_group (GTK_RADIO_BUTTON (rb_jobs), rb_jobs_group);
1214 rb_jobs_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (rb_jobs));
1216 rb_file = gtk_radio_button_new_with_mnemonic (NULL, _("Find a specific file"));
1217 gtk_widget_show (rb_file);
1218 gtk_box_pack_start (GTK_BOX (vbox15), rb_file, FALSE, FALSE, 0);
1219 gtk_container_set_border_width (GTK_CONTAINER (rb_file), 4);
1220 gtk_radio_button_set_group (GTK_RADIO_BUTTON (rb_file), rb_file_group);
1221 rb_file_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (rb_file));
1223 label104 = gtk_label_new ("");
1224 gtk_widget_show (label104);
1225 gtk_box_pack_start (GTK_BOX (vbox15), label104, FALSE, FALSE, 0);
1227 label106 = gtk_label_new (_("Select by:"));
1228 gtk_widget_show (label106);
1229 gtk_frame_set_label_widget (GTK_FRAME (frame3), label106);
1230 gtk_label_set_justify (GTK_LABEL (label106), GTK_JUSTIFY_LEFT);
1232 vbox14 = gtk_vbox_new (FALSE, 0);
1233 gtk_widget_show (vbox14);
1234 gtk_box_pack_start (GTK_BOX (hbox42), vbox14, FALSE, FALSE, 0);
1236 apply_button = gtk_button_new_from_stock ("gtk-apply");
1237 gtk_widget_show (apply_button);
1238 gtk_box_pack_start (GTK_BOX (vbox14), apply_button, FALSE, FALSE, 0);
1239 gtk_container_set_border_width (GTK_CONTAINER (apply_button), 50);
1241 dialog_action_area7 = GTK_DIALOG (restore_dialog)->action_area;
1242 gtk_widget_show (dialog_action_area7);
1243 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area7), GTK_BUTTONBOX_END);
1245 hbuttonbox2 = gtk_hbutton_box_new ();
1246 gtk_widget_show (hbuttonbox2);
1247 gtk_container_add (GTK_CONTAINER (dialog_action_area7), hbuttonbox2);
1248 gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox2), GTK_BUTTONBOX_END);
1249 gtk_box_set_spacing (GTK_BOX (hbuttonbox2), 8);
1251 restore_ok = gtk_button_new_from_stock ("gtk-ok");
1252 gtk_widget_show (restore_ok);
1253 gtk_container_add (GTK_CONTAINER (hbuttonbox2), restore_ok);
1254 GTK_WIDGET_SET_FLAGS (restore_ok, GTK_CAN_DEFAULT);
1256 restore_cancel = gtk_button_new_from_stock ("gtk-cancel");
1257 gtk_widget_show (restore_cancel);
1258 gtk_container_add (GTK_CONTAINER (hbuttonbox2), restore_cancel);
1259 GTK_WIDGET_SET_FLAGS (restore_cancel, GTK_CAN_DEFAULT);
1261 g_signal_connect ((gpointer) apply_button, "clicked",
1262 G_CALLBACK (on_apply_button_clicked),
1264 g_signal_connect ((gpointer) restore_ok, "clicked",
1265 G_CALLBACK (on_restore_ok_clicked),
1267 g_signal_connect ((gpointer) restore_cancel, "clicked",
1268 G_CALLBACK (on_restore_cancel_clicked),
1271 /* Store pointers to all widgets, for use by lookup_widget(). */
1272 GLADE_HOOKUP_OBJECT_NO_REF (restore_dialog, restore_dialog, "restore_dialog");
1273 GLADE_HOOKUP_OBJECT_NO_REF (restore_dialog, dialog_vbox8, "dialog_vbox8");
1274 GLADE_HOOKUP_OBJECT (restore_dialog, hbox42, "hbox42");
1275 GLADE_HOOKUP_OBJECT (restore_dialog, frame3, "frame3");
1276 GLADE_HOOKUP_OBJECT (restore_dialog, hbox43, "hbox43");
1277 GLADE_HOOKUP_OBJECT (restore_dialog, label102, "label102");
1278 GLADE_HOOKUP_OBJECT (restore_dialog, vbox15, "vbox15");
1279 GLADE_HOOKUP_OBJECT (restore_dialog, label103, "label103");
1280 GLADE_HOOKUP_OBJECT (restore_dialog, rb_most_recent, "rb_most_recent");
1281 GLADE_HOOKUP_OBJECT (restore_dialog, rb_jobs, "rb_jobs");
1282 GLADE_HOOKUP_OBJECT (restore_dialog, rb_file, "rb_file");
1283 GLADE_HOOKUP_OBJECT (restore_dialog, label104, "label104");
1284 GLADE_HOOKUP_OBJECT (restore_dialog, label106, "label106");
1285 GLADE_HOOKUP_OBJECT (restore_dialog, vbox14, "vbox14");
1286 GLADE_HOOKUP_OBJECT (restore_dialog, apply_button, "apply_button");
1287 GLADE_HOOKUP_OBJECT_NO_REF (restore_dialog, dialog_action_area7, "dialog_action_area7");
1288 GLADE_HOOKUP_OBJECT (restore_dialog, hbuttonbox2, "hbuttonbox2");
1289 GLADE_HOOKUP_OBJECT (restore_dialog, restore_ok, "restore_ok");
1290 GLADE_HOOKUP_OBJECT (restore_dialog, restore_cancel, "restore_cancel");
1292 return restore_dialog;
1296 create_label_dialog (void)
1298 GtkWidget *label_dialog;
1299 GtkWidget *dialog_vbox9;
1301 GtkWidget *label106;
1303 GtkWidget *label107;
1304 GtkWidget *label_combo_storage;
1305 GList *label_combo_storage_items = NULL;
1308 GtkWidget *label109;
1309 GtkWidget *label_combo_pool;
1310 GList *label_combo_pool_items = NULL;
1313 GtkWidget *label111;
1314 GtkWidget *label_entry_volume;
1317 GtkObject *label_slot_adj;
1318 GtkWidget *label_slot;
1319 GtkWidget *label113;
1320 GtkWidget *dialog_action_area8;
1321 GtkWidget *hbuttonbox3;
1322 GtkWidget *label_ok;
1323 GtkWidget *label_cancel;
1325 label_dialog = gtk_dialog_new ();
1326 gtk_window_set_title (GTK_WINDOW (label_dialog), _("Label a Volume"));
1327 gtk_window_set_modal (GTK_WINDOW (label_dialog), TRUE);
1329 dialog_vbox9 = GTK_DIALOG (label_dialog)->vbox;
1330 gtk_widget_show (dialog_vbox9);
1332 vbox16 = gtk_vbox_new (FALSE, 0);
1333 gtk_widget_show (vbox16);
1334 gtk_box_pack_start (GTK_BOX (dialog_vbox9), vbox16, FALSE, TRUE, 0);
1336 label106 = gtk_label_new (_("Label a Volume"));
1337 gtk_widget_show (label106);
1338 gtk_box_pack_start (GTK_BOX (vbox16), label106, FALSE, FALSE, 0);
1339 gtk_misc_set_padding (GTK_MISC (label106), 0, 9);
1341 hbox45 = gtk_hbox_new (FALSE, 0);
1342 gtk_widget_show (hbox45);
1343 gtk_box_pack_start (GTK_BOX (vbox16), hbox45, FALSE, TRUE, 0);
1344 gtk_container_set_border_width (GTK_CONTAINER (hbox45), 5);
1346 label107 = gtk_label_new (_("Storage:"));
1347 gtk_widget_show (label107);
1348 gtk_box_pack_start (GTK_BOX (hbox45), label107, TRUE, TRUE, 0);
1349 gtk_misc_set_alignment (GTK_MISC (label107), 0.15, 0.5);
1351 label_combo_storage = gtk_combo_new ();
1352 g_object_set_data (G_OBJECT (GTK_COMBO (label_combo_storage)->popwin),
1353 "GladeParentKey", label_combo_storage);
1354 gtk_widget_show (label_combo_storage);
1355 gtk_box_pack_start (GTK_BOX (hbox45), label_combo_storage, TRUE, TRUE, 15);
1356 gtk_combo_set_value_in_list (GTK_COMBO (label_combo_storage), TRUE, FALSE);
1357 label_combo_storage_items = g_list_append (label_combo_storage_items, (gpointer) "");
1358 label_combo_storage_items = g_list_append (label_combo_storage_items, (gpointer) "");
1359 gtk_combo_set_popdown_strings (GTK_COMBO (label_combo_storage), label_combo_storage_items);
1360 g_list_free (label_combo_storage_items);
1362 entry26 = GTK_COMBO (label_combo_storage)->entry;
1363 gtk_widget_show (entry26);
1364 gtk_editable_set_editable (GTK_EDITABLE (entry26), FALSE);
1366 hbox46 = gtk_hbox_new (FALSE, 0);
1367 gtk_widget_show (hbox46);
1368 gtk_box_pack_start (GTK_BOX (vbox16), hbox46, FALSE, TRUE, 0);
1369 gtk_container_set_border_width (GTK_CONTAINER (hbox46), 5);
1371 label109 = gtk_label_new (_("Pool:"));
1372 gtk_widget_show (label109);
1373 gtk_box_pack_start (GTK_BOX (hbox46), label109, TRUE, TRUE, 0);
1374 gtk_label_set_justify (GTK_LABEL (label109), GTK_JUSTIFY_LEFT);
1375 gtk_misc_set_alignment (GTK_MISC (label109), 0.12, 0.5);
1377 label_combo_pool = gtk_combo_new ();
1378 g_object_set_data (G_OBJECT (GTK_COMBO (label_combo_pool)->popwin),
1379 "GladeParentKey", label_combo_pool);
1380 gtk_widget_show (label_combo_pool);
1381 gtk_box_pack_start (GTK_BOX (hbox46), label_combo_pool, TRUE, TRUE, 14);
1382 gtk_combo_set_value_in_list (GTK_COMBO (label_combo_pool), TRUE, FALSE);
1383 label_combo_pool_items = g_list_append (label_combo_pool_items, (gpointer) "");
1384 label_combo_pool_items = g_list_append (label_combo_pool_items, (gpointer) "");
1385 gtk_combo_set_popdown_strings (GTK_COMBO (label_combo_pool), label_combo_pool_items);
1386 g_list_free (label_combo_pool_items);
1388 entry27 = GTK_COMBO (label_combo_pool)->entry;
1389 gtk_widget_show (entry27);
1390 gtk_editable_set_editable (GTK_EDITABLE (entry27), FALSE);
1392 hbox47 = gtk_hbox_new (FALSE, 0);
1393 gtk_widget_show (hbox47);
1394 gtk_box_pack_start (GTK_BOX (vbox16), hbox47, FALSE, TRUE, 0);
1395 gtk_container_set_border_width (GTK_CONTAINER (hbox47), 5);
1397 label111 = gtk_label_new (_("Volume Name:"));
1398 gtk_widget_show (label111);
1399 gtk_box_pack_start (GTK_BOX (hbox47), label111, TRUE, TRUE, 0);
1400 gtk_label_set_justify (GTK_LABEL (label111), GTK_JUSTIFY_LEFT);
1401 gtk_misc_set_alignment (GTK_MISC (label111), 0.17, 0.5);
1403 label_entry_volume = gtk_entry_new ();
1404 gtk_widget_show (label_entry_volume);
1405 gtk_box_pack_start (GTK_BOX (hbox47), label_entry_volume, TRUE, TRUE, 0);
1407 hbox48 = gtk_hbox_new (FALSE, 0);
1408 gtk_widget_show (hbox48);
1409 gtk_box_pack_start (GTK_BOX (vbox16), hbox48, TRUE, TRUE, 0);
1410 gtk_container_set_border_width (GTK_CONTAINER (hbox48), 5);
1412 slot1 = gtk_label_new (_("Slot:"));
1413 gtk_widget_show (slot1);
1414 gtk_box_pack_start (GTK_BOX (hbox48), slot1, FALSE, TRUE, 0);
1415 gtk_label_set_justify (GTK_LABEL (slot1), GTK_JUSTIFY_LEFT);
1416 gtk_misc_set_alignment (GTK_MISC (slot1), 0.09, 0.5);
1418 label_slot_adj = gtk_adjustment_new (0, 0, 10000, 1, 10, 10);
1419 label_slot = gtk_spin_button_new (GTK_ADJUSTMENT (label_slot_adj), 1, 0);
1420 gtk_widget_show (label_slot);
1421 gtk_box_pack_start (GTK_BOX (hbox48), label_slot, TRUE, TRUE, 0);
1422 gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (label_slot), TRUE);
1424 label113 = gtk_label_new (_(" "));
1425 gtk_widget_show (label113);
1426 gtk_box_pack_start (GTK_BOX (vbox16), label113, FALSE, FALSE, 0);
1428 dialog_action_area8 = GTK_DIALOG (label_dialog)->action_area;
1429 gtk_widget_show (dialog_action_area8);
1430 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area8), GTK_BUTTONBOX_END);
1432 hbuttonbox3 = gtk_hbutton_box_new ();
1433 gtk_widget_show (hbuttonbox3);
1434 gtk_container_add (GTK_CONTAINER (dialog_action_area8), hbuttonbox3);
1435 gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox3), GTK_BUTTONBOX_END);
1436 gtk_box_set_spacing (GTK_BOX (hbuttonbox3), 8);
1438 label_ok = gtk_button_new_from_stock ("gtk-ok");
1439 gtk_widget_show (label_ok);
1440 gtk_container_add (GTK_CONTAINER (hbuttonbox3), label_ok);
1441 GTK_WIDGET_SET_FLAGS (label_ok, GTK_CAN_DEFAULT);
1443 label_cancel = gtk_button_new_from_stock ("gtk-cancel");
1444 gtk_widget_show (label_cancel);
1445 gtk_container_add (GTK_CONTAINER (hbuttonbox3), label_cancel);
1446 GTK_WIDGET_SET_FLAGS (label_cancel, GTK_CAN_DEFAULT);
1448 g_signal_connect ((gpointer) label_ok, "clicked",
1449 G_CALLBACK (on_label_ok_clicked),
1451 g_signal_connect ((gpointer) label_cancel, "clicked",
1452 G_CALLBACK (on_label_cancel_clicked),
1455 /* Store pointers to all widgets, for use by lookup_widget(). */
1456 GLADE_HOOKUP_OBJECT_NO_REF (label_dialog, label_dialog, "label_dialog");
1457 GLADE_HOOKUP_OBJECT_NO_REF (label_dialog, dialog_vbox9, "dialog_vbox9");
1458 GLADE_HOOKUP_OBJECT (label_dialog, vbox16, "vbox16");
1459 GLADE_HOOKUP_OBJECT (label_dialog, label106, "label106");
1460 GLADE_HOOKUP_OBJECT (label_dialog, hbox45, "hbox45");
1461 GLADE_HOOKUP_OBJECT (label_dialog, label107, "label107");
1462 GLADE_HOOKUP_OBJECT (label_dialog, label_combo_storage, "label_combo_storage");
1463 GLADE_HOOKUP_OBJECT (label_dialog, entry26, "entry26");
1464 GLADE_HOOKUP_OBJECT (label_dialog, hbox46, "hbox46");
1465 GLADE_HOOKUP_OBJECT (label_dialog, label109, "label109");
1466 GLADE_HOOKUP_OBJECT (label_dialog, label_combo_pool, "label_combo_pool");
1467 GLADE_HOOKUP_OBJECT (label_dialog, entry27, "entry27");
1468 GLADE_HOOKUP_OBJECT (label_dialog, hbox47, "hbox47");
1469 GLADE_HOOKUP_OBJECT (label_dialog, label111, "label111");
1470 GLADE_HOOKUP_OBJECT (label_dialog, label_entry_volume, "label_entry_volume");
1471 GLADE_HOOKUP_OBJECT (label_dialog, hbox48, "hbox48");
1472 GLADE_HOOKUP_OBJECT (label_dialog, slot1, "slot1");
1473 GLADE_HOOKUP_OBJECT (label_dialog, label_slot, "label_slot");
1474 GLADE_HOOKUP_OBJECT (label_dialog, label113, "label113");
1475 GLADE_HOOKUP_OBJECT_NO_REF (label_dialog, dialog_action_area8, "dialog_action_area8");
1476 GLADE_HOOKUP_OBJECT (label_dialog, hbuttonbox3, "hbuttonbox3");
1477 GLADE_HOOKUP_OBJECT (label_dialog, label_ok, "label_ok");
1478 GLADE_HOOKUP_OBJECT (label_dialog, label_cancel, "label_cancel");
1480 return label_dialog;