From 08e459d65f1d1895bf6d6d8dad15bec33b733550 Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Fri, 7 Oct 2005 10:56:23 +0000 Subject: when we reach to the last item in the list, de-sensitize the remove 2005-10-07 Vivek Jain * share-folder.c : (remove_clicked) when we reach to the last item in the list, de-sensitize the remove button. svn path=/trunk/; revision=30499 --- plugins/groupwise-features/ChangeLog | 6 ++++++ plugins/groupwise-features/share-folder.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins') 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 + + * 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 * 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; } -- cgit v1.2.3