aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-selector.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-30 14:17:31 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-30 14:17:31 +0800
commita4b5deaad2dd08e78cea7b0e4f8f357bfc19e53b (patch)
treefd8a1bc249498ed5fd403a645afda8676ebb0e39 /mail/em-folder-selector.c
parentcc39091f0fc913c5314dafd7461c5ab7e356c7f0 (diff)
downloadgsoc2013-evolution-a4b5deaad2dd08e78cea7b0e4f8f357bfc19e53b.tar
gsoc2013-evolution-a4b5deaad2dd08e78cea7b0e4f8f357bfc19e53b.tar.gz
gsoc2013-evolution-a4b5deaad2dd08e78cea7b0e4f8f357bfc19e53b.tar.bz2
gsoc2013-evolution-a4b5deaad2dd08e78cea7b0e4f8f357bfc19e53b.tar.lz
gsoc2013-evolution-a4b5deaad2dd08e78cea7b0e4f8f357bfc19e53b.tar.xz
gsoc2013-evolution-a4b5deaad2dd08e78cea7b0e4f8f357bfc19e53b.tar.zst
gsoc2013-evolution-a4b5deaad2dd08e78cea7b0e4f8f357bfc19e53b.zip
** See bug #53549, partial fix.
2004-01-30 Not Zed <NotZed@Ximian.com> ** See bug #53549, partial fix. * em-folder-selector.c (emfs_create_name_activate): only emit the ok response if the ok button would be active (i.e. entered a valid path). ** See bug #52992. * message-list.c (message_list_hide_clear): save the hide state after its been cleared, so any popup windows inherit it. (message_list_hide_uids): same. svn path=/trunk/; revision=24534
Diffstat (limited to 'mail/em-folder-selector.c')
-rw-r--r--mail/em-folder-selector.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/em-folder-selector.c b/mail/em-folder-selector.c
index 855de2f174..843ed018cf 100644
--- a/mail/em-folder-selector.c
+++ b/mail/em-folder-selector.c
@@ -243,7 +243,15 @@ em_folder_selector_new (EMFolderTree *emft, guint32 flags, const char *title, co
static void
emfs_create_name_activate (GtkEntry *entry, EMFolderSelector *emfs)
{
- g_signal_emit_by_name (emfs, "response", GTK_RESPONSE_OK);
+ if (emfs->name_entry->text_length > 0) {
+ const char *path, *text;
+
+ text = gtk_entry_get_text (emfs->name_entry);
+ path = em_folder_tree_get_selected_path (emfs->emft);
+
+ if (text && path && !strchr(text, '/'))
+ g_signal_emit_by_name (emfs, "response", GTK_RESPONSE_OK);
+ }
}
GtkWidget *