diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-10-09 05:49:42 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-10-09 05:49:42 +0800 |
commit | 52f7fe06901ad02630525a21c25993456577d133 (patch) | |
tree | f326eb4f62560c99714e6fde746e668976bb6e19 /calendar/gui | |
parent | 2389bd7bedc9b1caf3e9f34631c70c8ddf3fb306 (diff) | |
download | gsoc2013-evolution-52f7fe06901ad02630525a21c25993456577d133.tar gsoc2013-evolution-52f7fe06901ad02630525a21c25993456577d133.tar.gz gsoc2013-evolution-52f7fe06901ad02630525a21c25993456577d133.tar.bz2 gsoc2013-evolution-52f7fe06901ad02630525a21c25993456577d133.tar.lz gsoc2013-evolution-52f7fe06901ad02630525a21c25993456577d133.tar.xz gsoc2013-evolution-52f7fe06901ad02630525a21c25993456577d133.tar.zst gsoc2013-evolution-52f7fe06901ad02630525a21c25993456577d133.zip |
Set the sensitivity of the edit/delete buttons. (gncal_todo_update):
1998-10-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-todo.c (clist_row_selected): Set the sensitivity of the
edit/delete buttons.
(gncal_todo_update): Likewise. Thanks to Dirk Luetjens for the
bug report.
svn path=/trunk/; revision=435
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/gncal-todo.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c index d527d6ff09..0a39522622 100644 --- a/calendar/gui/gncal-todo.c +++ b/calendar/gui/gncal-todo.c @@ -201,6 +201,9 @@ clist_row_selected (GtkCList *clist, gint row, gint column, GdkEventButton *even int i; + gtk_widget_set_sensitive (todo->edit_button, (todo->clist->selection != NULL)); + gtk_widget_set_sensitive (todo->delete_button, (todo->clist->selection != NULL)); + if (!event) return; @@ -351,6 +354,6 @@ gncal_todo_update (GncalTodo *todo, iCalObject *ico, int flags) gtk_clist_thaw (todo->clist); - gtk_widget_set_sensitive (todo->edit_button, (todo->clist->rows > 0)); - gtk_widget_set_sensitive (todo->delete_button, (todo->clist->rows > 0)); + gtk_widget_set_sensitive (todo->edit_button, (todo->clist->selection != NULL)); + gtk_widget_set_sensitive (todo->delete_button, (todo->clist->selection != NULL)); } |