aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-utils.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-03-19 18:02:36 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-03-19 18:02:36 +0800
commitdc3b372304b8b83bd335f8871755ad15154c7f25 (patch)
treef0a11e9e5e6b2904144f8c522d286f1ba69dcf64 /mail/em-folder-utils.c
parent1af389e5c8c4e8ec6b3479e8d70379826d075576 (diff)
downloadgsoc2013-evolution-dc3b372304b8b83bd335f8871755ad15154c7f25.tar.gz
gsoc2013-evolution-dc3b372304b8b83bd335f8871755ad15154c7f25.tar.zst
gsoc2013-evolution-dc3b372304b8b83bd335f8871755ad15154c7f25.zip
** Fix for bug #504767
2009-03-19 Milan Crha <mcrha@redhat.com> ** Fix for bug #504767 * em-folder-utils.h: (em_folder_utils_create_folder): * em-folder-utils.c: (em_folder_utils_create_folder): * em-folder-selector.c: (emfs_response): Inherit modality from a parent's window, if any. * em-folder-browser.c: (emfb_folder_create): * em-folder-tree.c: (emft_popup_new_folder): * mail-component.c: (create_item): Propagate changes in function prototype. svn path=/trunk/; revision=37461
Diffstat (limited to 'mail/em-folder-utils.c')
-rw-r--r--mail/em-folder-utils.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 195b66a815..f3a839f926 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -679,7 +679,8 @@ emfu_popup_new_folder_response (EMFolderSelector *emfs, int response, gpointer d
/* FIXME: these functions must be documented */
void
-em_folder_utils_create_folder (CamelFolderInfo *folderinfo, EMFolderTree *emft) {
+em_folder_utils_create_folder (CamelFolderInfo *folderinfo, EMFolderTree *emft, GtkWindow *parent)
+{
EMFolderTree *folder_tree;
EMFolderTreeModel *model;
GtkWidget *dialog;
@@ -690,6 +691,12 @@ em_folder_utils_create_folder (CamelFolderInfo *folderinfo, EMFolderTree *emft)
dialog = em_folder_selector_create_new (folder_tree, 0, _("Create folder"), _("Specify where to create the folder:"));
if (folderinfo != NULL)
em_folder_selector_set_selected ((EMFolderSelector *) dialog, folderinfo->uri);
+ if (parent) {
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);
+ gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
+ if (gtk_window_get_modal (parent))
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+ }
g_signal_connect (dialog, "response", G_CALLBACK (emfu_popup_new_folder_response), emft);
gtk_widget_show (dialog);
}