From a8df0ef392c394f742c154a1ce235b2f1ddce9d3 Mon Sep 17 00:00:00 2001 From: Li Yuan Date: Wed, 23 Mar 2005 14:48:45 +0000 Subject: Fixes #40762 2005-03-16 Li Yuan * gal-define-views-dialog.c: (etable_selection_change_forall_cb): Fixes #40762 svn path=/trunk/; revision=29093 --- widgets/menus/gal-define-views-dialog.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/widgets/menus/gal-define-views-dialog.c b/widgets/menus/gal-define-views-dialog.c index 4d2854a0e1..a535c79601 100644 --- a/widgets/menus/gal-define-views-dialog.c +++ b/widgets/menus/gal-define-views-dialog.c @@ -211,9 +211,16 @@ etable_selection_change_forall_cb (int row, GalDefineViewsDialog *dialog) if (row != -1) { GalViewCollectionItem *item = gal_view_collection_get_view_item (dialog->collection, row); - if (item) + if (item) { gtk_widget_set_sensitive (glade_xml_get_widget (dialog->gui, "button-delete"), !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); + else + gtk_widget_set_sensitive (glade_xml_get_widget (dialog->gui, "button-modify"), + !item->built_in); + } } } -- cgit v1.2.3