aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2005-03-23 22:48:45 +0800
committerHarry Lu <haip@src.gnome.org>2005-03-23 22:48:45 +0800
commita8df0ef392c394f742c154a1ce235b2f1ddce9d3 (patch)
treedf85d88222e2c5a6d5ac30a09ae7451e100de4fc
parentd19fb86208958012fe7d7ab9853e097b423015e4 (diff)
downloadgsoc2013-evolution-a8df0ef392c394f742c154a1ce235b2f1ddce9d3.tar.gz
gsoc2013-evolution-a8df0ef392c394f742c154a1ce235b2f1ddce9d3.tar.zst
gsoc2013-evolution-a8df0ef392c394f742c154a1ce235b2f1ddce9d3.zip
Fixes #40762
2005-03-16 Li Yuan <li.yuan@sun.com> * gal-define-views-dialog.c: (etable_selection_change_forall_cb): Fixes #40762 svn path=/trunk/; revision=29093
-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);
+ }
}
}