aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorVivek Jain <jvivek@novell.com>2005-10-07 18:56:23 +0800
committerJain Vivek <jvivek@src.gnome.org>2005-10-07 18:56:23 +0800
commit08e459d65f1d1895bf6d6d8dad15bec33b733550 (patch)
tree2afbe7afc847a94fdb5ddb077303143c2780de94 /plugins
parent1e5c74f855dca5c1d1a017a7abbce39768e9efef (diff)
downloadgsoc2013-evolution-08e459d65f1d1895bf6d6d8dad15bec33b733550.tar.gz
gsoc2013-evolution-08e459d65f1d1895bf6d6d8dad15bec33b733550.tar.zst
gsoc2013-evolution-08e459d65f1d1895bf6d6d8dad15bec33b733550.zip
when we reach to the last item in the list, de-sensitize the remove
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. svn path=/trunk/; revision=30499
Diffstat (limited to 'plugins')
-rw-r--r--plugins/groupwise-features/ChangeLog6
-rw-r--r--plugins/groupwise-features/share-folder.c3
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;
}