aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-view-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-07 00:13:15 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-07 09:09:29 +0800
commit71f83089ccbb07760d3db525053a324d34717f43 (patch)
treedeafafafc541c215d74fd154c16e1d3925a8c2e0 /modules/calendar/e-memo-shell-view-actions.c
parent2db9eff43ee816ad22b00a3808d6b4e7f0df228b (diff)
downloadgsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.tar.gz
gsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.tar.zst
gsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.zip
Bug 597533 - e_file_dialog_save() does not pass parent window
Diffstat (limited to 'modules/calendar/e-memo-shell-view-actions.c')
-rw-r--r--modules/calendar/e-memo-shell-view-actions.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/calendar/e-memo-shell-view-actions.c b/modules/calendar/e-memo-shell-view-actions.c
index 463e01f71b..ab8be53d04 100644
--- a/modules/calendar/e-memo-shell-view-actions.c
+++ b/modules/calendar/e-memo-shell-view-actions.c
@@ -471,6 +471,8 @@ static void
action_memo_save_as_cb (GtkAction *action,
EMemoShellView *memo_shell_view)
{
+ EShellView *shell_view;
+ EShellWindow *shell_window;
EMemoShellContent *memo_shell_content;
EMemoTable *memo_table;
ECalModelComponent *comp_data;
@@ -478,6 +480,9 @@ action_memo_save_as_cb (GtkAction *action,
gchar *filename;
gchar *string;
+ shell_view = E_SHELL_VIEW (memo_shell_view);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
memo_shell_content = memo_shell_view->priv->memo_shell_content;
memo_table = e_memo_shell_content_get_memo_table (memo_shell_content);
@@ -486,7 +491,8 @@ action_memo_save_as_cb (GtkAction *action,
comp_data = list->data;
g_slist_free (list);
- filename = e_file_dialog_save (_("Save as..."), NULL);
+ filename = e_file_dialog_save (
+ GTK_WINDOW (shell_window), _("Save as..."), NULL);
if (filename == NULL)
return;