aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-05-04 04:35:45 +0800
committerMilan Crha <mcrha@redhat.com>2010-05-04 04:35:45 +0800
commit0a0657836b429289a918f509504813f7e4e112df (patch)
tree957531afc13823f8b4c6bd0c7710ebd21e5f55aa /mail
parent7636175248e8b6a8fa73244327f52230415cbaa6 (diff)
downloadgsoc2013-evolution-0a0657836b429289a918f509504813f7e4e112df.tar.gz
gsoc2013-evolution-0a0657836b429289a918f509504813f7e4e112df.tar.zst
gsoc2013-evolution-0a0657836b429289a918f509504813f7e4e112df.zip
Bug #593890 - New folder window is not in focus in filter dialog
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 6e3cb3f05a..ee2d05f5f5 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -674,7 +674,11 @@ em_folder_utils_create_folder (CamelFolderInfo *folderinfo, EMFolderTree *emft,
if (folderinfo != NULL)
em_folder_selector_set_selected ((EMFolderSelector *) dialog, folderinfo->uri);
g_signal_connect (dialog, "response", G_CALLBACK (emfu_popup_new_folder_response), emft);
- gtk_widget_show (dialog);
+
+ if (!parent || !GTK_IS_DIALOG (parent))
+ gtk_widget_show (dialog);
+ else
+ gtk_dialog_run (GTK_DIALOG (dialog));
}
struct _folder_unsub_t {