aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-memo-shell-sidebar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-16 21:32:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-17 07:57:09 +0800
commit39d2c8d6cc842b4cdea948c56774e5a89d4ed8ad (patch)
treefc1bd65194553d07b08da39d981812f2f1cce574 /modules/calendar/e-memo-shell-sidebar.c
parent519a1d0c3b3193a81e849910203e6a7ecc4ecc60 (diff)
downloadgsoc2013-evolution-39d2c8d6cc842b4cdea948c56774e5a89d4ed8ad.tar
gsoc2013-evolution-39d2c8d6cc842b4cdea948c56774e5a89d4ed8ad.tar.gz
gsoc2013-evolution-39d2c8d6cc842b4cdea948c56774e5a89d4ed8ad.tar.bz2
gsoc2013-evolution-39d2c8d6cc842b4cdea948c56774e5a89d4ed8ad.tar.lz
gsoc2013-evolution-39d2c8d6cc842b4cdea948c56774e5a89d4ed8ad.tar.xz
gsoc2013-evolution-39d2c8d6cc842b4cdea948c56774e5a89d4ed8ad.tar.zst
gsoc2013-evolution-39d2c8d6cc842b4cdea948c56774e5a89d4ed8ad.zip
Defer "backend-error" alerts to shell views.
Diffstat (limited to 'modules/calendar/e-memo-shell-sidebar.c')
-rw-r--r--modules/calendar/e-memo-shell-sidebar.c49
1 files changed, 0 insertions, 49 deletions
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);