aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-11 00:58:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-11 02:13:18 +0800
commit881792fadc8a200acd193369f842e46aef0e56e5 (patch)
treed9e3bd3c595dbc23a115e922c393dc1b3d504356 /modules/mail
parent9ec83961283efe0a3125b0fc30f8e9b21c08f806 (diff)
downloadgsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar
gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.gz
gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.bz2
gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.lz
gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.xz
gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.zst
gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.zip
Require a parent window when creating an EMFolderSelector.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-view-actions.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 9c79164a35..00579ed031 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -122,17 +122,23 @@ static void
action_mail_folder_copy_cb (GtkAction *action,
EMailShellView *mail_shell_view)
{
+ EShellView *shell_view;
+ EShellWindow *shell_window;
EMailShellSidebar *mail_shell_sidebar;
CamelFolderInfo *folder_info;
EMFolderTree *folder_tree;
+ shell_view = E_SHELL_VIEW (mail_shell_view);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
mail_shell_sidebar = mail_shell_view->priv->mail_shell_sidebar;
folder_tree = e_mail_shell_sidebar_get_folder_tree (mail_shell_sidebar);
folder_info = em_folder_tree_get_selected_folder_info (folder_tree);
g_return_if_fail (folder_info != NULL);
/* XXX Leaking folder_info? */
- em_folder_utils_copy_folder (folder_info, FALSE);
+ em_folder_utils_copy_folder (
+ GTK_WINDOW (shell_window), folder_info, FALSE);
}
static void
@@ -217,17 +223,23 @@ static void
action_mail_folder_move_cb (GtkAction *action,
EMailShellView *mail_shell_view)
{
+ EShellView *shell_view;
+ EShellWindow *shell_window;
EMailShellSidebar *mail_shell_sidebar;
CamelFolderInfo *folder_info;
EMFolderTree *folder_tree;
+ shell_view = E_SHELL_VIEW (mail_shell_view);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
mail_shell_sidebar = mail_shell_view->priv->mail_shell_sidebar;
folder_tree = e_mail_shell_sidebar_get_folder_tree (mail_shell_sidebar);
folder_info = em_folder_tree_get_selected_folder_info (folder_tree);
g_return_if_fail (folder_info != NULL);
/* XXX Leaking folder_info? */
- em_folder_utils_copy_folder (folder_info, TRUE);
+ em_folder_utils_copy_folder (
+ GTK_WINDOW (shell_window), folder_info, TRUE);
}
static void