diff options
author | Milan Crha <mcrha@redhat.com> | 2010-07-09 20:29:51 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-07-09 20:29:51 +0800 |
commit | 03d626856b294bc98919ac244e04e9b8821a681d (patch) | |
tree | 62433e158f1791aa6b9222ecbe05d164c4703f6c /modules/calendar/e-task-shell-backend.c | |
parent | 6d4ce8571ff62a3e489999d2feeac1691e06c59a (diff) | |
download | gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar.gz gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar.bz2 gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar.lz gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar.xz gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar.zst gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.zip |
Bug #623204 - Be able to report detailed errors from backends
Diffstat (limited to 'modules/calendar/e-task-shell-backend.c')
-rw-r--r-- | modules/calendar/e-task-shell-backend.c | 12 |
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); |