aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-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-cal-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-cal-shell-view-actions.c')
-rw-r--r--modules/calendar/e-cal-shell-view-actions.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/calendar/e-cal-shell-view-actions.c b/modules/calendar/e-cal-shell-view-actions.c
index 2338fdb247..408d02ffc3 100644
--- a/modules/calendar/e-cal-shell-view-actions.c
+++ b/modules/calendar/e-cal-shell-view-actions.c
@@ -1065,6 +1065,8 @@ static void
action_event_save_as_cb (GtkAction *action,
ECalShellView *cal_shell_view)
{
+ EShellView *shell_view;
+ EShellWindow *shell_window;
ECalShellContent *cal_shell_content;
GnomeCalendarViewType view_type;
GnomeCalendar *calendar;
@@ -1076,6 +1078,9 @@ action_event_save_as_cb (GtkAction *action,
gchar *filename = NULL;
gchar *string = NULL;
+ shell_view = E_SHELL_VIEW (cal_shell_view);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
cal_shell_content = cal_shell_view->priv->cal_shell_content;
calendar = e_cal_shell_content_get_calendar (cal_shell_content);
view_type = gnome_calendar_get_view (calendar);
@@ -1088,7 +1093,8 @@ action_event_save_as_cb (GtkAction *action,
client = event->comp_data->client;
icalcomp = event->comp_data->icalcomp;
- filename = e_file_dialog_save (_("Save As..."), NULL);
+ filename = e_file_dialog_save (
+ GTK_WINDOW (shell_window), _("Save As..."), NULL);
if (filename == NULL)
goto exit;