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-memo-shell-backend.c | |
parent | 6d4ce8571ff62a3e489999d2feeac1691e06c59a (diff) | |
download | gsoc2013-evolution-03d626856b294bc98919ac244e04e9b8821a681d.tar.gz 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-memo-shell-backend.c')
-rw-r--r-- | modules/calendar/e-memo-shell-backend.c | 12 |
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); |