diff options
-rw-r--r-- | widgets/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/menus/gal-define-views-dialog.c | 4 |
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); } } } |