From 1c3d76dfbd97c7c649c44631efd6bc06208ab249 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 31 Mar 2000 22:28:38 +0000 Subject: Love realization svn path=/trunk/; revision=2272 --- widgets/e-table/e-table-config.c | 4 ++ widgets/e-table/e-table-config.glade | 78 ++++++++++++++++++++---------------- widgets/e-table/test-table.c | 2 +- widgets/table/e-table-config.c | 4 ++ widgets/table/e-table-config.glade | 78 ++++++++++++++++++++---------------- widgets/table/test-table.c | 2 +- 6 files changed, 96 insertions(+), 72 deletions(-) (limited to 'widgets') diff --git a/widgets/e-table/e-table-config.c b/widgets/e-table/e-table-config.c index 1345bed88f..c81eeecca0 100644 --- a/widgets/e-table/e-table-config.c +++ b/widgets/e-table/e-table-config.c @@ -132,6 +132,7 @@ e_table_gui_config (ETable *etable) GnomeDialog *dialog; ConfigData *config_data; + glade_gnome_init (); gui = glade_xml_new (ETABLE_GLADEDIR "/e-table-config.glade", NULL); if (!gui) return NULL; @@ -205,6 +206,9 @@ e_table_do_gui_config (GtkWidget *parent, ETable *etable) e_table_gui_config_cancel (GTK_WIDGET (dialog), etable); else e_table_gui_config_accept (GTK_WIDGET (dialog), etable); + + if (r != -1) + gtk_object_destroy (GTK_OBJECT (dialog)); } diff --git a/widgets/e-table/e-table-config.glade b/widgets/e-table/e-table-config.glade index 8affa8cefa..15223f21f1 100644 --- a/widgets/e-table/e-table-config.glade +++ b/widgets/e-table/e-table-config.glade @@ -10,9 +10,17 @@ C True True + False False False False + True + interface.c + interface.h + callbacks.c + callbacks.h + support.c + support.h True e-table-config.glade.h @@ -42,40 +50,6 @@ True - - GtkHButtonBox - GnomeDialog:action_area - dialog-action_area2 - GTK_BUTTONBOX_END - 0 - 85 - 27 - 7 - 0 - - 0 - False - True - GTK_PACK_END - - - - GtkButton - button12 - True - True - GNOME_STOCK_BUTTON_OK - - - - GtkButton - button14 - True - True - GNOME_STOCK_BUTTON_CANCEL - - - GtkFrame top-frame @@ -122,7 +96,7 @@ GtkButton - button-groups + button-grouping True @@ -288,6 +262,40 @@ + + + GtkHButtonBox + GnomeDialog:action_area + dialog-action_area2 + GTK_BUTTONBOX_END + 0 + 85 + 27 + 7 + 0 + + 0 + False + True + GTK_PACK_END + + + + GtkButton + button12 + True + True + GNOME_STOCK_BUTTON_OK + + + + GtkButton + button14 + True + True + GNOME_STOCK_BUTTON_CANCEL + + diff --git a/widgets/e-table/test-table.c b/widgets/e-table/test-table.c index beae0b7707..00ff6089c9 100644 --- a/widgets/e-table/test-table.c +++ b/widgets/e-table/test-table.c @@ -346,7 +346,7 @@ do_e_table_demo (const char *spec) gtk_widget_show (window); if (getenv ("TEST")){ - e_config_do_gui_config (NULL, e_table); + e_table_do_gui_config (NULL, e_table); } } diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c index 1345bed88f..c81eeecca0 100644 --- a/widgets/table/e-table-config.c +++ b/widgets/table/e-table-config.c @@ -132,6 +132,7 @@ e_table_gui_config (ETable *etable) GnomeDialog *dialog; ConfigData *config_data; + glade_gnome_init (); gui = glade_xml_new (ETABLE_GLADEDIR "/e-table-config.glade", NULL); if (!gui) return NULL; @@ -205,6 +206,9 @@ e_table_do_gui_config (GtkWidget *parent, ETable *etable) e_table_gui_config_cancel (GTK_WIDGET (dialog), etable); else e_table_gui_config_accept (GTK_WIDGET (dialog), etable); + + if (r != -1) + gtk_object_destroy (GTK_OBJECT (dialog)); } diff --git a/widgets/table/e-table-config.glade b/widgets/table/e-table-config.glade index 8affa8cefa..15223f21f1 100644 --- a/widgets/table/e-table-config.glade +++ b/widgets/table/e-table-config.glade @@ -10,9 +10,17 @@ C True True + False False False False + True + interface.c + interface.h + callbacks.c + callbacks.h + support.c + support.h True e-table-config.glade.h @@ -42,40 +50,6 @@ True - - GtkHButtonBox - GnomeDialog:action_area - dialog-action_area2 - GTK_BUTTONBOX_END - 0 - 85 - 27 - 7 - 0 - - 0 - False - True - GTK_PACK_END - - - - GtkButton - button12 - True - True - GNOME_STOCK_BUTTON_OK - - - - GtkButton - button14 - True - True - GNOME_STOCK_BUTTON_CANCEL - - - GtkFrame top-frame @@ -122,7 +96,7 @@ GtkButton - button-groups + button-grouping True @@ -288,6 +262,40 @@ + + + GtkHButtonBox + GnomeDialog:action_area + dialog-action_area2 + GTK_BUTTONBOX_END + 0 + 85 + 27 + 7 + 0 + + 0 + False + True + GTK_PACK_END + + + + GtkButton + button12 + True + True + GNOME_STOCK_BUTTON_OK + + + + GtkButton + button14 + True + True + GNOME_STOCK_BUTTON_CANCEL + + diff --git a/widgets/table/test-table.c b/widgets/table/test-table.c index beae0b7707..00ff6089c9 100644 --- a/widgets/table/test-table.c +++ b/widgets/table/test-table.c @@ -346,7 +346,7 @@ do_e_table_demo (const char *spec) gtk_widget_show (window); if (getenv ("TEST")){ - e_config_do_gui_config (NULL, e_table); + e_table_do_gui_config (NULL, e_table); } } -- cgit v1.2.3