diff options
author | Vivek Jain <jvivek@novell.com> | 2005-10-07 18:56:23 +0800 |
---|---|---|
committer | Jain Vivek <jvivek@src.gnome.org> | 2005-10-07 18:56:23 +0800 |
commit | 08e459d65f1d1895bf6d6d8dad15bec33b733550 (patch) | |
tree | 2afbe7afc847a94fdb5ddb077303143c2780de94 /plugins/groupwise-features/share-folder.c | |
parent | 1e5c74f855dca5c1d1a017a7abbce39768e9efef (diff) | |
download | gsoc2013-evolution-08e459d65f1d1895bf6d6d8dad15bec33b733550.tar gsoc2013-evolution-08e459d65f1d1895bf6d6d8dad15bec33b733550.tar.gz gsoc2013-evolution-08e459d65f1d1895bf6d6d8dad15bec33b733550.tar.bz2 gsoc2013-evolution-08e459d65f1d1895bf6d6d8dad15bec33b733550.tar.lz gsoc2013-evolution-08e459d65f1d1895bf6d6d8dad15bec33b733550.tar.xz 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/groupwise-features/share-folder.c')
-rw-r--r-- | plugins/groupwise-features/share-folder.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |