aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-selection.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-11-15 01:29:06 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-11-15 01:29:06 +0800
commitd9a3bd550f45df85d896a695596e57bb57b1177d (patch)
tree74f20936011a030a5386738f070c0186ddaa2196 /mail/em-folder-selection.c
parent02031fc95a8670ccda4e51ef003473d494e15d05 (diff)
downloadgsoc2013-evolution-d9a3bd550f45df85d896a695596e57bb57b1177d.tar.gz
gsoc2013-evolution-d9a3bd550f45df85d896a695596e57bb57b1177d.tar.zst
gsoc2013-evolution-d9a3bd550f45df85d896a695596e57bb57b1177d.zip
Only set OK to sensitive if the selected node is not a store node.
2003-11-14 Jeffrey Stedfast <fejj@ximian.com> * em-folder-selection.c (folder_selected_cb): Only set OK to sensitive if the selected node is not a store node. * em-folder-tree-model.c: Moved the store_hash and uri_hash from EMFolderTreePrivate into here instead. * em-folder-tree.c: Updated for above changes. svn path=/trunk/; revision=23355
Diffstat (limited to 'mail/em-folder-selection.c')
-rw-r--r--mail/em-folder-selection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/em-folder-selection.c b/mail/em-folder-selection.c
index 3be462c88a..fcb1054a5a 100644
--- a/mail/em-folder-selection.c
+++ b/mail/em-folder-selection.c
@@ -38,7 +38,10 @@
static void
folder_selected_cb (EMFolderTree *emft, const char *path, const char *uri, GtkDialog *dialog)
{
- gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_OK, TRUE);
+ if (!path || !strcmp (path, "/"))
+ gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_OK, FALSE);
+ else
+ gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_OK, TRUE);
}
static GtkWidget *