2 * DO NOT EDIT THIS FILE - it is generated by Glade.
16 #include "diainsertindex_callbacks.h"
17 #include "diainsertindex_interface.h"
21 create_DiaInsertIndex (void)
23 GtkWidget *DiaInsertIndex;
24 GtkWidget *dialog_vbox1;
28 GtkWidget *combo_entry1;
29 GtkWidget *dialog_action_area1;
31 GtkWidget *button_cancel;
33 DiaInsertIndex = gnome_dialog_new (_("Insert Index"), NULL);
34 gtk_object_set_data (GTK_OBJECT (DiaInsertIndex), "DiaInsertIndex", DiaInsertIndex);
35 gtk_container_set_border_width (GTK_CONTAINER (DiaInsertIndex), 2);
36 GTK_WINDOW (DiaInsertIndex)->type = GTK_WINDOW_DIALOG;
37 gtk_window_set_policy (GTK_WINDOW (DiaInsertIndex), TRUE, TRUE, FALSE);
39 dialog_vbox1 = GNOME_DIALOG (DiaInsertIndex)->vbox;
40 gtk_object_set_data (GTK_OBJECT (DiaInsertIndex), "dialog_vbox1", dialog_vbox1);
41 gtk_widget_show (dialog_vbox1);
43 hbox1 = gtk_hbox_new (FALSE, 2);
44 gtk_widget_ref (hbox1);
45 gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "hbox1", hbox1,
46 (GtkDestroyNotify) gtk_widget_unref);
47 gtk_widget_show (hbox1);
48 gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox1, TRUE, TRUE, 0);
49 gtk_container_set_border_width (GTK_CONTAINER (hbox1), 2);
51 label = gtk_label_new (_("Keyword"));
52 gtk_widget_ref (label);
53 gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "label", label,
54 (GtkDestroyNotify) gtk_widget_unref);
55 gtk_widget_show (label);
56 gtk_box_pack_start (GTK_BOX (hbox1), label, FALSE, FALSE, 0);
57 gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT);
59 keyword = gnome_entry_new ("diainsertindex_keyword");
60 gtk_widget_ref (keyword);
61 gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "keyword", keyword,
62 (GtkDestroyNotify) gtk_widget_unref);
63 gtk_widget_show (keyword);
64 gtk_box_pack_start (GTK_BOX (hbox1), keyword, TRUE, TRUE, 0);
65 gtk_container_set_border_width (GTK_CONTAINER (keyword), 2);
67 combo_entry1 = gnome_entry_gtk_entry (GNOME_ENTRY (keyword));
68 gtk_widget_ref (combo_entry1);
69 gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "combo_entry1", combo_entry1,
70 (GtkDestroyNotify) gtk_widget_unref);
71 gtk_widget_show (combo_entry1);
72 GTK_WIDGET_SET_FLAGS (combo_entry1, GTK_CAN_DEFAULT);
74 dialog_action_area1 = GNOME_DIALOG (DiaInsertIndex)->action_area;
75 gtk_object_set_data (GTK_OBJECT (DiaInsertIndex), "dialog_action_area1", dialog_action_area1);
76 gtk_widget_show (dialog_action_area1);
77 gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
78 gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog_action_area1), 8);
80 gnome_dialog_append_button (GNOME_DIALOG (DiaInsertIndex), GNOME_STOCK_BUTTON_OK);
81 button_ok = g_list_last (GNOME_DIALOG (DiaInsertIndex)->buttons)->data;
82 gtk_widget_ref (button_ok);
83 gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "button_ok", button_ok,
84 (GtkDestroyNotify) gtk_widget_unref);
85 gtk_widget_show (button_ok);
86 GTK_WIDGET_SET_FLAGS (button_ok, GTK_CAN_DEFAULT);
88 gnome_dialog_append_button (GNOME_DIALOG (DiaInsertIndex), GNOME_STOCK_BUTTON_CANCEL);
89 button_cancel = g_list_last (GNOME_DIALOG (DiaInsertIndex)->buttons)->data;
90 gtk_widget_ref (button_cancel);
91 gtk_object_set_data_full (GTK_OBJECT (DiaInsertIndex), "button_cancel", button_cancel,
92 (GtkDestroyNotify) gtk_widget_unref);
93 gtk_widget_show (button_cancel);
94 GTK_WIDGET_SET_FLAGS (button_cancel, GTK_CAN_DEFAULT);
96 gtk_widget_grab_focus (combo_entry1);
97 gtk_widget_grab_default (combo_entry1);
98 return DiaInsertIndex;