diff options
Diffstat (limited to 'modules/calendar/e-cal-shell-sidebar.c')
-rw-r--r-- | modules/calendar/e-cal-shell-sidebar.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c index aafae792e1..b7ab5516f7 100644 --- a/modules/calendar/e-cal-shell-sidebar.c +++ b/modules/calendar/e-cal-shell-sidebar.c @@ -162,32 +162,19 @@ static void cal_shell_sidebar_backend_died_cb (ECalShellSidebar *cal_shell_sidebar, ECalClient *client) { - EShellView *shell_view; - EShellContent *shell_content; - EShellSidebar *shell_sidebar; GHashTable *client_table; ESource *source; - const gchar *uid; + gchar *uid; client_table = cal_shell_sidebar->priv->client_table; - shell_sidebar = E_SHELL_SIDEBAR (cal_shell_sidebar); - shell_view = e_shell_sidebar_get_shell_view (shell_sidebar); - shell_content = e_shell_view_get_shell_content (shell_view); - source = e_client_get_source (E_CLIENT (client)); - uid = e_source_get_uid (source); - - g_object_ref (source); + uid = e_source_dup_uid (source); g_hash_table_remove (client_table, uid); cal_shell_sidebar_emit_status_message (cal_shell_sidebar, NULL); - e_alert_submit ( - E_ALERT_SINK (shell_content), - "calendar:calendar-crashed", NULL); - - g_object_unref (source); + g_free (uid); } static void |