aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/menus/gal-define-views-dialog.c9
1 files changed, 8 insertions, 1 deletions
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);
+ }
}
}