aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2005-09-29 16:17:59 +0800
committerLi Yuan <liyuan@src.gnome.org>2005-09-29 16:17:59 +0800
commitb6598269918cc76b20365945fb7a645f6925d4a4 (patch)
tree37733c6255ec0a740dd749f9704687ba83e52217 /widgets/menus
parent5c7e94906345581fdd99c461f0c23cab3b8ebf4b (diff)
downloadgsoc2013-evolution-b6598269918cc76b20365945fb7a645f6925d4a4.tar.gz
gsoc2013-evolution-b6598269918cc76b20365945fb7a645f6925d4a4.tar.zst
gsoc2013-evolution-b6598269918cc76b20365945fb7a645f6925d4a4.zip
Fix #240762. If the galview implement the edit function, enable the edit
2005-09-29 Li Yuan <li.yuan@sun.com> * 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
Diffstat (limited to 'widgets/menus')
-rw-r--r--widgets/menus/gal-define-views-dialog.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}
}