diff options
-rw-r--r-- | plugins/groupwise-features/ChangeLog | 6 | ||||
-rw-r--r-- | plugins/groupwise-features/share-folder.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/plugins/groupwise-features/ChangeLog b/plugins/groupwise-features/ChangeLog index d6277babd9..ff69e7f4db 100644 --- a/plugins/groupwise-features/ChangeLog +++ b/plugins/groupwise-features/ChangeLog @@ -1,3 +1,9 @@ +2005-10-07 Vivek Jain <jvivek@novell.com> + + * share-folder.c : (remove_clicked) + when we reach to the last item in the list, de-sensitize the remove + button. + 2005-10-05 Vivek Jain <jvivek@novell.com> * share-folder.c : (display_container) moved code for comparing id's diff --git a/plugins/groupwise-features/share-folder.c b/plugins/groupwise-features/share-folder.c index cd712fd857..847279c2d2 100644 --- a/plugins/groupwise-features/share-folder.c +++ b/plugins/groupwise-features/share-folder.c @@ -406,7 +406,8 @@ remove_clicked(GtkButton *button, ShareFolder *sf) usr->flag |= 0x4; } g_free (email); - gtk_list_store_remove (GTK_LIST_STORE (sf->model), &(sf->iter)); + if (!gtk_list_store_remove (GTK_LIST_STORE (sf->model), &(sf->iter))) + gtk_widget_set_sensitive (GTK_WIDGET (sf->remove), FALSE); sf->flag_for_ok = 1; } |