aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-shell-backend.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-07-09 20:29:51 +0800
committerMilan Crha <mcrha@redhat.com>2010-07-09 20:29:51 +0800
commit03d626856b294bc98919ac244e04e9b8821a681d (patch)
tree62433e158f1791aa6b9222ecbe05d164c4703f6c /modules/calendar/e-cal-shell-backend.c
parent6d4ce8571ff62a3e489999d2feeac1691e06c59a (diff)
downloadgsoc2013-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-cal-shell-backend.c')
-rw-r--r--modules/calendar/e-cal-shell-backend.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/calendar/e-cal-shell-backend.c b/modules/calendar/e-cal-shell-backend.c
index 006dca5cb6..dede49c5b8 100644
--- a/modules/calendar/e-cal-shell-backend.c
+++ b/modules/calendar/e-cal-shell-backend.c
@@ -282,7 +282,7 @@ cal_shell_backend_ensure_sources (EShellBackend *shell_backend)
static void
cal_shell_backend_new_event (ECal *cal,
- ECalendarStatus status,
+ const GError *error,
EShell *shell,
CompEditorFlags flags,
gboolean all_day)
@@ -291,7 +291,7 @@ cal_shell_backend_new_event (ECal *cal,
CompEditor *editor;
/* XXX Handle errors better. */
- if (status != E_CALENDAR_STATUS_OK)
+ if (error)
return;
flags |= COMP_EDITOR_NEW_ITEM;
@@ -308,39 +308,39 @@ cal_shell_backend_new_event (ECal *cal,
static void
cal_shell_backend_event_new_cb (ECal *cal,
- ECalendarStatus status,
+ const GError *error,
EShell *shell)
{
CompEditorFlags flags;
flags = COMP_EDITOR_USER_ORG;
- cal_shell_backend_new_event (cal, status, shell, flags, FALSE);
+ cal_shell_backend_new_event (cal, error, shell, flags, FALSE);
g_object_unref (cal);
}
static void
cal_shell_backend_event_all_day_new_cb (ECal *cal,
- ECalendarStatus status,
+ const GError *error,
EShell *shell)
{
CompEditorFlags flags;
flags = COMP_EDITOR_USER_ORG;
- cal_shell_backend_new_event (cal, status, shell, flags, TRUE);
+ cal_shell_backend_new_event (cal, error, shell, flags, TRUE);
g_object_unref (cal);
}
static void
cal_shell_backend_event_meeting_new_cb (ECal *cal,
- ECalendarStatus status,
+ const GError *error,
EShell *shell)
{
CompEditorFlags flags;
flags = COMP_EDITOR_USER_ORG | COMP_EDITOR_MEETING;
- cal_shell_backend_new_event (cal, status, shell, flags, FALSE);
+ cal_shell_backend_new_event (cal, error, shell, flags, FALSE);
g_object_unref (cal);
}
@@ -425,17 +425,17 @@ action_event_new_cb (GtkAction *action,
action_name = gtk_action_get_name (action);
if (strcmp (action_name, "event-all-day-new") == 0)
g_signal_connect (
- cal, "cal-opened",
+ cal, "cal-opened-ex",
G_CALLBACK (cal_shell_backend_event_all_day_new_cb),
shell);
else if (strcmp (action_name, "event-meeting-new") == 0)
g_signal_connect (
- cal, "cal-opened",
+ cal, "cal-opened-ex",
G_CALLBACK (cal_shell_backend_event_meeting_new_cb),
shell);
else
g_signal_connect (
- cal, "cal-opened",
+ cal, "cal-opened-ex",
G_CALLBACK (cal_shell_backend_event_new_cb),
shell);