aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/calendar/e-memo-shell-backend.c')
-rw-r--r--modules/calendar/e-memo-shell-backend.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/calendar/e-memo-shell-backend.c b/modules/calendar/e-memo-shell-backend.c
index 2a0c277fc5..3996fa699f 100644
--- a/modules/calendar/e-memo-shell-backend.c
+++ b/modules/calendar/e-memo-shell-backend.c
@@ -197,7 +197,7 @@ memo_shell_backend_ensure_sources (EShellBackend *shell_backend)
static void
memo_shell_backend_memo_new_cb (ECal *cal,
- ECalendarStatus status,
+ const GError *error,
EShell *shell)
{
ECalComponent *comp;
@@ -205,7 +205,7 @@ memo_shell_backend_memo_new_cb (ECal *cal,
CompEditorFlags flags = 0;
/* XXX Handle errors better. */
- if (status != E_CALENDAR_STATUS_OK)
+ if (error)
return;
flags |= COMP_EDITOR_NEW_ITEM;
@@ -223,7 +223,7 @@ memo_shell_backend_memo_new_cb (ECal *cal,
static void
memo_shell_backend_memo_shared_new_cb (ECal *cal,
- ECalendarStatus status,
+ const GError *error,
EShell *shell)
{
ECalComponent *comp;
@@ -231,7 +231,7 @@ memo_shell_backend_memo_shared_new_cb (ECal *cal,
CompEditorFlags flags = 0;
/* XXX Handle errors better. */
- if (status != E_CALENDAR_STATUS_OK)
+ if (error)
return;
flags |= COMP_EDITOR_NEW_ITEM;
@@ -294,12 +294,12 @@ action_memo_new_cb (GtkAction *action,
action_name = gtk_action_get_name (action);
if (strcmp (action_name, "memo-shared-new") == 0)
g_signal_connect (
- cal, "cal-opened",
+ cal, "cal-opened-ex",
G_CALLBACK (memo_shell_backend_memo_shared_new_cb),
shell);
else
g_signal_connect (
- cal, "cal-opened",
+ cal, "cal-opened-ex",
G_CALLBACK (memo_shell_backend_memo_new_cb),
shell);