aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-11 01:14:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-11 07:18:11 +0800
commit3dfdf087fc7657905fc7804b59414ecd3d74028e (patch)
tree45a5bb547ca73ebaea9c3276860f93df6d417006 /modules
parentf70ecb0406903e0fdc09bbf1c9a3367c7ba55ec2 (diff)
downloadgsoc2013-evolution-3dfdf087fc7657905fc7804b59414ecd3d74028e.tar
gsoc2013-evolution-3dfdf087fc7657905fc7804b59414ecd3d74028e.tar.gz
gsoc2013-evolution-3dfdf087fc7657905fc7804b59414ecd3d74028e.tar.bz2
gsoc2013-evolution-3dfdf087fc7657905fc7804b59414ecd3d74028e.tar.lz
gsoc2013-evolution-3dfdf087fc7657905fc7804b59414ecd3d74028e.tar.xz
gsoc2013-evolution-3dfdf087fc7657905fc7804b59414ecd3d74028e.tar.zst
gsoc2013-evolution-3dfdf087fc7657905fc7804b59414ecd3d74028e.zip
Kill more redundant save dialogs and related utilities.
Diffstat (limited to 'modules')
-rw-r--r--modules/addressbook/e-book-shell-view-actions.c12
-rw-r--r--modules/calendar/e-cal-shell-view-actions.c2
-rw-r--r--modules/calendar/e-cal-shell-view-memopad.c2
-rw-r--r--modules/calendar/e-cal-shell-view-taskpad.c2
-rw-r--r--modules/calendar/e-memo-shell-view-actions.c2
-rw-r--r--modules/calendar/e-task-shell-view-actions.c2
6 files changed, 13 insertions, 9 deletions
diff --git a/modules/addressbook/e-book-shell-view-actions.c b/modules/addressbook/e-book-shell-view-actions.c
index 6882f29e6e..0ec4eac2e6 100644
--- a/modules/addressbook/e-book-shell-view-actions.c
+++ b/modules/addressbook/e-book-shell-view-actions.c
@@ -225,9 +225,11 @@ action_address_book_save_as_cb (GtkAction *action,
if (list == NULL)
goto exit;
+ string = eab_suggest_filename (list);
file = e_shell_run_save_dialog (
- shell, _("Save as vCard"),
- (GtkCallback) eab_suggest_filename, list);
+ shell, _("Save as vCard"), string, NULL, NULL);
+ g_free (string);
+
if (file == NULL)
goto exit;
@@ -540,9 +542,11 @@ action_contact_save_as_cb (GtkAction *action,
if (list == NULL)
goto exit;
+ string = eab_suggest_filename (list);
file = e_shell_run_save_dialog (
- shell, _("Save as vCard"),
- (GtkCallback) eab_suggest_filename, list);
+ shell, _("Save as vCard"), string, NULL, NULL);
+ g_free (string);
+
if (file == NULL)
goto exit;
diff --git a/modules/calendar/e-cal-shell-view-actions.c b/modules/calendar/e-cal-shell-view-actions.c
index f3a0f209d5..d0ab20d138 100644
--- a/modules/calendar/e-cal-shell-view-actions.c
+++ b/modules/calendar/e-cal-shell-view-actions.c
@@ -1099,7 +1099,7 @@ action_event_save_as_cb (GtkAction *action,
icalcomp = event->comp_data->icalcomp;
file = e_shell_run_save_dialog (
- shell, _("Save as iCalendar"), NULL, NULL);
+ shell, _("Save as iCalendar"), NULL, NULL, NULL);
if (file == NULL)
return;
diff --git a/modules/calendar/e-cal-shell-view-memopad.c b/modules/calendar/e-cal-shell-view-memopad.c
index 88cb53ff54..d786f4701a 100644
--- a/modules/calendar/e-cal-shell-view-memopad.c
+++ b/modules/calendar/e-cal-shell-view-memopad.c
@@ -259,7 +259,7 @@ action_calendar_memopad_save_as_cb (GtkAction *action,
g_slist_free (list);
file = e_shell_run_save_dialog (
- shell, _("Save as iCalendar"), NULL, NULL);
+ shell, _("Save as iCalendar"), NULL, NULL, NULL);
if (file == NULL)
return;
diff --git a/modules/calendar/e-cal-shell-view-taskpad.c b/modules/calendar/e-cal-shell-view-taskpad.c
index 5f2fd3ad0f..a00474a572 100644
--- a/modules/calendar/e-cal-shell-view-taskpad.c
+++ b/modules/calendar/e-cal-shell-view-taskpad.c
@@ -327,7 +327,7 @@ action_calendar_taskpad_save_as_cb (GtkAction *action,
g_slist_free (list);
file = e_shell_run_save_dialog (
- shell, _("Save as iCalendar"), NULL, NULL);
+ shell, _("Save as iCalendar"), NULL, NULL, NULL);
if (file == NULL)
return;
diff --git a/modules/calendar/e-memo-shell-view-actions.c b/modules/calendar/e-memo-shell-view-actions.c
index 31f12b3962..4ffaa519e7 100644
--- a/modules/calendar/e-memo-shell-view-actions.c
+++ b/modules/calendar/e-memo-shell-view-actions.c
@@ -497,7 +497,7 @@ action_memo_save_as_cb (GtkAction *action,
g_slist_free (list);
file = e_shell_run_save_dialog (
- shell, _("Save as iCalendar"), NULL, NULL);
+ shell, _("Save as iCalendar"), NULL, NULL, NULL);
if (file == NULL)
return;
diff --git a/modules/calendar/e-task-shell-view-actions.c b/modules/calendar/e-task-shell-view-actions.c
index 282d5a3e75..07558bfa90 100644
--- a/modules/calendar/e-task-shell-view-actions.c
+++ b/modules/calendar/e-task-shell-view-actions.c
@@ -624,7 +624,7 @@ action_task_save_as_cb (GtkAction *action,
g_slist_free (list);
file = e_shell_run_save_dialog (
- shell, _("Save as iCalendar"), NULL, NULL);
+ shell, _("Save as iCalendar"), NULL, NULL, NULL);
if (file == NULL)
return;