aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.c
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 /mail/e-mail-reader.c
parent9ec83961283efe0a3125b0fc30f8e9b21c08f806 (diff)
downloadgsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.gz
gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.tar.zst
gsoc2013-evolution-881792fadc8a200acd193369f842e46aef0e56e5.zip
Require a parent window when creating an EMFolderSelector.
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r--mail/e-mail-reader.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index 175a01e131..eb3fe06f2a 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -192,9 +192,11 @@ action_mail_copy_cb (GtkAction *action,
CamelFolder *folder;
GtkWidget *folder_tree;
GtkWidget *dialog;
+ GtkWindow *parent;
GPtrArray *selected;
const gchar *uri;
+ parent = e_mail_reader_get_window (reader);
message_list = e_mail_reader_get_message_list (reader);
folder_tree = em_folder_tree_new ();
@@ -208,7 +210,7 @@ action_mail_copy_cb (GtkAction *action,
EMFT_EXCLUDE_VTRASH);
dialog = em_folder_selector_new (
- EM_FOLDER_TREE (folder_tree),
+ parent, EM_FOLDER_TREE (folder_tree),
EM_FOLDER_SELECTOR_CAN_CREATE,
_("Select Folder"), NULL, _("C_opy"));
@@ -579,9 +581,11 @@ action_mail_move_cb (GtkAction *action,
CamelFolder *folder;
GtkWidget *folder_tree;
GtkWidget *dialog;
+ GtkWindow *parent;
GPtrArray *selected;
const gchar *uri;
+ parent = e_mail_reader_get_window (reader);
message_list = e_mail_reader_get_message_list (reader);
folder_tree = em_folder_tree_new ();
@@ -595,7 +599,7 @@ action_mail_move_cb (GtkAction *action,
EMFT_EXCLUDE_VTRASH);
dialog = em_folder_selector_new (
- EM_FOLDER_TREE (folder_tree),
+ parent, EM_FOLDER_TREE (folder_tree),
EM_FOLDER_SELECTOR_CAN_CREATE,
_("Select Folder"), NULL, _("_Move"));