aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-task-shell-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/calendar/e-task-shell-backend.c')
-rw-r--r--modules/calendar/e-task-shell-backend.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/calendar/e-task-shell-backend.c b/modules/calendar/e-task-shell-backend.c
index c5f0a9927a..ca2b68228c 100644
--- a/modules/calendar/e-task-shell-backend.c
+++ b/modules/calendar/e-task-shell-backend.c
@@ -201,7 +201,7 @@ task_shell_backend_ensure_sources (EShellBackend *shell_backend)
static void
task_shell_backend_task_new_cb (ECal *cal,
- ECalendarStatus status,
+ const GError *error,
EShell *shell)
{
ECalComponent *comp;
@@ -209,7 +209,7 @@ task_shell_backend_task_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;
@@ -226,7 +226,7 @@ task_shell_backend_task_new_cb (ECal *cal,
static void
task_shell_backend_task_assigned_new_cb (ECal *cal,
- ECalendarStatus status,
+ const GError *error,
EShell *shell)
{
ECalComponent *comp;
@@ -234,7 +234,7 @@ task_shell_backend_task_assigned_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;
@@ -296,12 +296,12 @@ action_task_new_cb (GtkAction *action,
action_name = gtk_action_get_name (action);
if (strcmp (action_name, "task-assigned-new") == 0)
g_signal_connect (
- cal, "cal-opened",
+ cal, "cal-opened-ex",
G_CALLBACK (task_shell_backend_task_assigned_new_cb),
shell);
else
g_signal_connect (
- cal, "cal-opened",
+ cal, "cal-opened-ex",
G_CALLBACK (task_shell_backend_task_new_cb),
shell);