From b6598269918cc76b20365945fb7a645f6925d4a4 Mon Sep 17 00:00:00 2001 From: Li Yuan Date: Thu, 29 Sep 2005 08:17:59 +0000 Subject: Fix #240762. If the galview implement the edit function, enable the edit 2005-09-29 Li Yuan * menus/gal-define-views-dialog.c: (etable_selection_change_forall_cb): Fix #240762. If the galview implement the edit function, enable the edit button. If not, disable it. svn path=/trunk/; revision=30414 --- widgets/menus/gal-define-views-dialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets/menus/gal-define-views-dialog.c') diff --git a/widgets/menus/gal-define-views-dialog.c b/widgets/menus/gal-define-views-dialog.c index 87a5c188a2..13ff085dea 100644 --- a/widgets/menus/gal-define-views-dialog.c +++ b/widgets/menus/gal-define-views-dialog.c @@ -218,10 +218,10 @@ etable_selection_change_forall_cb (int row, GalDefineViewsDialog *dialog) !item->built_in); if (GAL_VIEW_GET_CLASS (item->view)->edit) gtk_widget_set_sensitive (glade_xml_get_widget (dialog->gui, "button-modify"), - !item->built_in); + TRUE); else gtk_widget_set_sensitive (glade_xml_get_widget (dialog->gui, "button-modify"), - item->built_in); + FALSE); } } } -- cgit