aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/calendar.error.xml7
-rw-r--r--modules/calendar/e-cal-shell-sidebar.c49
-rw-r--r--modules/calendar/e-memo-shell-sidebar.c49
-rw-r--r--modules/calendar/e-task-shell-sidebar.c49
4 files changed, 0 insertions, 154 deletions
diff --git a/calendar/calendar.error.xml b/calendar/calendar.error.xml
index e58a482dc7..441a3a45e4 100644
--- a/calendar/calendar.error.xml
+++ b/calendar/calendar.error.xml
@@ -294,13 +294,6 @@
<secondary>{2}</secondary>
</error>
- <error id="backend-error" type="error" default="GTK_RESPONSE_YES">
- <!-- Translators: {0} is replaced with a group name, like CalDAV, Google, or such;
- {1} is replaced with a calendar/task/memo list name, where the error happened -->
- <_primary>Error on '{0}: {1}'</_primary>
- <secondary>{2}</secondary>
- </error>
-
<error id="online-operation" type="error">
<!-- Translators: {0} is replaced with a group name, like CalDAV, Google, or such;
{1} is replaced with a calendar/task/memo list name, where the error happened -->
diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c
index b7ab5516f7..ff533acdf2 100644
--- a/modules/calendar/e-cal-shell-sidebar.c
+++ b/modules/calendar/e-cal-shell-sidebar.c
@@ -178,50 +178,6 @@ cal_shell_sidebar_backend_died_cb (ECalShellSidebar *cal_shell_sidebar,
}
static void
-cal_shell_sidebar_backend_error_cb (ECalShellSidebar *cal_shell_sidebar,
- const gchar *message,
- ECalClient *client)
-{
- EShell *shell;
- EShellView *shell_view;
- EShellBackend *shell_backend;
- EShellContent *shell_content;
- EShellSidebar *shell_sidebar;
- ESourceRegistry *registry;
- ESource *parent;
- ESource *source;
- const gchar *parent_uid;
- const gchar *parent_display_name;
- const gchar *source_display_name;
-
- shell_sidebar = E_SHELL_SIDEBAR (cal_shell_sidebar);
- shell_view = e_shell_sidebar_get_shell_view (shell_sidebar);
- shell_backend = e_shell_view_get_shell_backend (shell_view);
- shell_content = e_shell_view_get_shell_content (shell_view);
-
- shell = e_shell_backend_get_shell (shell_backend);
- registry = e_shell_get_registry (shell);
-
- source = e_client_get_source (E_CLIENT (client));
-
- parent_uid = e_source_get_parent (source);
- parent = e_source_registry_ref_source (registry, parent_uid);
- g_return_if_fail (parent != NULL);
-
- parent_display_name = e_source_get_display_name (parent);
- source_display_name = e_source_get_display_name (source);
-
- e_alert_submit (
- E_ALERT_SINK (shell_content),
- "calendar:backend-error",
- parent_display_name,
- source_display_name,
- message, NULL);
-
- g_object_unref (parent);
-}
-
-static void
cal_shell_sidebar_handle_connect_error (ECalShellSidebar *cal_shell_sidebar,
const gchar *parent_display_name,
const gchar *source_display_name,
@@ -1030,11 +986,6 @@ e_cal_shell_sidebar_add_client (ECalShellSidebar *cal_shell_sidebar,
G_CALLBACK (cal_shell_sidebar_backend_died_cb),
cal_shell_sidebar);
- g_signal_connect_swapped (
- client, "backend-error",
- G_CALLBACK (cal_shell_sidebar_backend_error_cb),
- cal_shell_sidebar);
-
selector = e_cal_shell_sidebar_get_selector (cal_shell_sidebar);
e_source_selector_select_source (selector, source);
diff --git a/modules/calendar/e-memo-shell-sidebar.c b/modules/calendar/e-memo-shell-sidebar.c
index 138b78d306..b282aaf17b 100644
--- a/modules/calendar/e-memo-shell-sidebar.c
+++ b/modules/calendar/e-memo-shell-sidebar.c
@@ -175,50 +175,6 @@ memo_shell_sidebar_backend_died_cb (EMemoShellSidebar *memo_shell_sidebar,
}
static void
-memo_shell_sidebar_backend_error_cb (EMemoShellSidebar *memo_shell_sidebar,
- const gchar *message,
- ECalClient *client)
-{
- EShell *shell;
- EShellView *shell_view;
- EShellBackend *shell_backend;
- EShellContent *shell_content;
- EShellSidebar *shell_sidebar;
- ESourceRegistry *registry;
- ESource *parent;
- ESource *source;
- const gchar *parent_uid;
- const gchar *parent_display_name;
- const gchar *source_display_name;
-
- shell_sidebar = E_SHELL_SIDEBAR (memo_shell_sidebar);
- shell_view = e_shell_sidebar_get_shell_view (shell_sidebar);
- shell_backend = e_shell_view_get_shell_backend (shell_view);
- shell_content = e_shell_view_get_shell_content (shell_view);
-
- shell = e_shell_backend_get_shell (shell_backend);
- registry = e_shell_get_registry (shell);
-
- source = e_client_get_source (E_CLIENT (client));
-
- parent_uid = e_source_get_parent (source);
- parent = e_source_registry_ref_source (registry, parent_uid);
- g_return_if_fail (parent != NULL);
-
- parent_display_name = e_source_get_display_name (parent);
- source_display_name = e_source_get_display_name (source);
-
- e_alert_submit (
- E_ALERT_SINK (shell_content),
- "calendar:backend-error",
- parent_display_name,
- source_display_name,
- message, NULL);
-
- g_object_unref (parent);
-}
-
-static void
memo_shell_sidebar_handle_connect_error (EMemoShellSidebar *memo_shell_sidebar,
const gchar *parent_display_name,
const gchar *source_display_name,
@@ -917,11 +873,6 @@ e_memo_shell_sidebar_add_client (EMemoShellSidebar *memo_shell_sidebar,
G_CALLBACK (memo_shell_sidebar_backend_died_cb),
memo_shell_sidebar);
- g_signal_connect_swapped (
- client, "backend-error",
- G_CALLBACK (memo_shell_sidebar_backend_error_cb),
- memo_shell_sidebar);
-
selector = e_memo_shell_sidebar_get_selector (memo_shell_sidebar);
e_source_selector_select_source (selector, source);
diff --git a/modules/calendar/e-task-shell-sidebar.c b/modules/calendar/e-task-shell-sidebar.c
index b353f8a6e1..82c6e5549e 100644
--- a/modules/calendar/e-task-shell-sidebar.c
+++ b/modules/calendar/e-task-shell-sidebar.c
@@ -175,50 +175,6 @@ task_shell_sidebar_backend_died_cb (ETaskShellSidebar *task_shell_sidebar,
}
static void
-task_shell_sidebar_backend_error_cb (ETaskShellSidebar *task_shell_sidebar,
- const gchar *message,
- ECalClient *client)
-{
- EShell *shell;
- EShellView *shell_view;
- EShellBackend *shell_backend;
- EShellContent *shell_content;
- EShellSidebar *shell_sidebar;
- ESourceRegistry *registry;
- ESource *parent;
- ESource *source;
- const gchar *parent_uid;
- const gchar *parent_display_name;
- const gchar *source_display_name;
-
- shell_sidebar = E_SHELL_SIDEBAR (task_shell_sidebar);
- shell_view = e_shell_sidebar_get_shell_view (shell_sidebar);
- shell_backend = e_shell_view_get_shell_backend (shell_view);
- shell_content = e_shell_view_get_shell_content (shell_view);
-
- shell = e_shell_backend_get_shell (shell_backend);
- registry = e_shell_get_registry (shell);
-
- source = e_client_get_source (E_CLIENT (client));
-
- parent_uid = e_source_get_parent (source);
- parent = e_source_registry_ref_source (registry, parent_uid);
- g_return_if_fail (parent != NULL);
-
- parent_display_name = e_source_get_display_name (parent);
- source_display_name = e_source_get_display_name (source);
-
- e_alert_submit (
- E_ALERT_SINK (shell_content),
- "calendar:backend-error",
- parent_display_name,
- source_display_name,
- message, NULL);
-
- g_object_unref (parent);
-}
-
-static void
task_shell_sidebar_handle_connect_error (ETaskShellSidebar *task_shell_sidebar,
const gchar *parent_display_name,
const gchar *source_display_name,
@@ -917,11 +873,6 @@ e_task_shell_sidebar_add_client (ETaskShellSidebar *task_shell_sidebar,
G_CALLBACK (task_shell_sidebar_backend_died_cb),
task_shell_sidebar);
- g_signal_connect_swapped (
- client, "backend-error",
- G_CALLBACK (task_shell_sidebar_backend_error_cb),
- task_shell_sidebar);
-
selector = e_task_shell_sidebar_get_selector (task_shell_sidebar);
e_source_selector_select_source (selector, source);