From 0b342f2c845e095e72d55c25180e55d5b8165102 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Wed, 4 Aug 2004 09:16:19 +0000 Subject: do not set position, it's already done in .glade, call set_transient_for 2004-08-02 Radek Doulik * e-table-config.c (e_table_config_construct): do not set position, it's already done in .glade, call set_transient_for always (passing NULL is valid as well) * e-table-config.glade: * e-table-config-no-group.glade: center window on parent, don't let it resize and most importan make it dialog window so that set_transient_for works against define views dialog Fixes #61936 2004-08-02 Radek Doulik * gal-define-views-dialog.c: save collection on exit Fixes #61936 svn path=/trunk/; revision=26819 --- widgets/menus/gal-define-views-dialog.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'widgets/menus') diff --git a/widgets/menus/gal-define-views-dialog.c b/widgets/menus/gal-define-views-dialog.c index 531807ed7b..4d2854a0e1 100644 --- a/widgets/menus/gal-define-views-dialog.c +++ b/widgets/menus/gal-define-views-dialog.c @@ -154,7 +154,6 @@ gdvd_button_modify_callback(GtkWidget *widget, GalDefineViewsDialog *dialog) row); gal_view_edit(view, GTK_WINDOW (dialog)); } - } static void @@ -224,6 +223,12 @@ etable_selection_change (ETable *etable, GalDefineViewsDialog *dialog) e_table_selected_row_foreach (etable, (EForeachFunc) etable_selection_change_forall_cb, dialog); } +static void +dialog_response (GalDefineViewsDialog *dialog, int response_id, gpointer data) +{ + gal_view_collection_save (dialog->collection); +} + static void gal_define_views_dialog_init (GalDefineViewsDialog *dialog) { @@ -272,6 +277,9 @@ gal_define_views_dialog_init (GalDefineViewsDialog *dialog) } gtk_window_set_policy(GTK_WINDOW(dialog), FALSE, TRUE, FALSE); + + g_signal_connect (dialog, "response", G_CALLBACK (dialog_response), NULL); + } static void -- cgit v1.2.3