aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
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
parent5c7e94906345581fdd99c461f0c23cab3b8ebf4b (diff)
downloadgsoc2013-evolution-b6598269918cc76b20365945fb7a645f6925d4a4.tar
gsoc2013-evolution-b6598269918cc76b20365945fb7a645f6925d4a4.tar.gz
gsoc2013-evolution-b6598269918cc76b20365945fb7a645f6925d4a4.tar.bz2
gsoc2013-evolution-b6598269918cc76b20365945fb7a645f6925d4a4.tar.lz
gsoc2013-evolution-b6598269918cc76b20365945fb7a645f6925d4a4.tar.xz
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')
-rw-r--r--widgets/ChangeLog7
-rw-r--r--widgets/menus/gal-define-views-dialog.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog
index 0047f75daa..1223412faa 100644
--- a/widgets/ChangeLog
+++ b/widgets/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2005-09-28 Tor Lillqvist <tml@novell.com>
* e-timezone-dialog/Makefile.am
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);
}
}
}