aboutsummaryrefslogtreecommitdiffstats
path: root/modules
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
parent2db9eff43ee816ad22b00a3808d6b4e7f0df228b (diff)
downloadgsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.tar
gsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.tar.gz
gsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.tar.bz2
gsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.tar.lz
gsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.tar.xz
gsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.tar.zst
gsoc2013-evolution-71f83089ccbb07760d3db525053a324d34717f43.zip
Bug 597533 - e_file_dialog_save() does not pass parent window
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-cal-shell-view-actions.c8
-rw-r--r--modules/calendar/e-cal-shell-view-memopad.c8
-rw-r--r--modules/calendar/e-cal-shell-view-taskpad.c8
-rw-r--r--modules/calendar/e-memo-shell-view-actions.c8
-rw-r--r--modules/calendar/e-task-shell-view-actions.c8
5 files changed, 35 insertions, 5 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;
diff --git a/modules/calendar/e-cal-shell-view-memopad.c b/modules/calendar/e-cal-shell-view-memopad.c
index 1c4e863345..7d4c1a501f 100644
--- a/modules/calendar/e-cal-shell-view-memopad.c
+++ b/modules/calendar/e-cal-shell-view-memopad.c
@@ -233,6 +233,8 @@ static void
action_calendar_memopad_save_as_cb (GtkAction *action,
ECalShellView *cal_shell_view)
{
+ EShellView *shell_view;
+ EShellWindow *shell_window;
ECalShellContent *cal_shell_content;
EMemoTable *memo_table;
ECalModelComponent *comp_data;
@@ -240,6 +242,9 @@ action_calendar_memopad_save_as_cb (GtkAction *action,
gchar *filename;
gchar *string;
+ 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;
memo_table = e_cal_shell_content_get_memo_table (cal_shell_content);
@@ -248,7 +253,8 @@ action_calendar_memopad_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;
diff --git a/modules/calendar/e-cal-shell-view-taskpad.c b/modules/calendar/e-cal-shell-view-taskpad.c
index 0301d9c1a1..3e83e04fcc 100644
--- a/modules/calendar/e-cal-shell-view-taskpad.c
+++ b/modules/calendar/e-cal-shell-view-taskpad.c
@@ -301,6 +301,8 @@ static void
action_calendar_taskpad_save_as_cb (GtkAction *action,
ECalShellView *cal_shell_view)
{
+ EShellView *shell_view;
+ EShellWindow *shell_window;
ECalShellContent *cal_shell_content;
ECalendarTable *task_table;
ECalModelComponent *comp_data;
@@ -308,6 +310,9 @@ action_calendar_taskpad_save_as_cb (GtkAction *action,
gchar *filename;
gchar *string;
+ 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;
task_table = e_cal_shell_content_get_task_table (cal_shell_content);
@@ -316,7 +321,8 @@ action_calendar_taskpad_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;
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;
diff --git a/modules/calendar/e-task-shell-view-actions.c b/modules/calendar/e-task-shell-view-actions.c
index 2592df2481..fb7b89b049 100644
--- a/modules/calendar/e-task-shell-view-actions.c
+++ b/modules/calendar/e-task-shell-view-actions.c
@@ -598,6 +598,8 @@ static void
action_task_save_as_cb (GtkAction *action,
ETaskShellView *task_shell_view)
{
+ EShellView *shell_view;
+ EShellWindow *shell_window;
ETaskShellContent *task_shell_content;
ECalendarTable *task_table;
ECalModelComponent *comp_data;
@@ -605,6 +607,9 @@ action_task_save_as_cb (GtkAction *action,
gchar *filename;
gchar *string;
+ shell_view = E_SHELL_VIEW (task_shell_view);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
task_shell_content = task_shell_view->priv->task_shell_content;
task_table = e_task_shell_content_get_task_table (task_shell_content);
@@ -613,7 +618,8 @@ action_task_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;