diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-02-17 00:15:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-02-17 07:57:10 +0800 |
commit | b9ab776bc280f158db4581b88aa82848cff2d65d (patch) | |
tree | f0f216e93ff8c6ccbb5bb383df38d3f06c71d16f /modules | |
parent | a12f0070c3e1335e97e4b35340dae325a4aab53b (diff) | |
download | gsoc2013-evolution-b9ab776bc280f158db4581b88aa82848cff2d65d.tar.gz gsoc2013-evolution-b9ab776bc280f158db4581b88aa82848cff2d65d.tar.zst gsoc2013-evolution-b9ab776bc280f158db4581b88aa82848cff2d65d.zip |
Remove e_memo_shell_view_update_timezone().
Thanks to the "default-timezone" property binding created by
ESettingsClientCache, changes to the "cal-timezone" setting are
automatically propagated to all ECalClient instances created by
EClientCache.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/calendar/e-memo-shell-view-private.c | 31 | ||||
-rw-r--r-- | modules/calendar/e-memo-shell-view-private.h | 2 |
2 files changed, 0 insertions, 33 deletions
diff --git a/modules/calendar/e-memo-shell-view-private.c b/modules/calendar/e-memo-shell-view-private.c index 6f8a2706d0..50b9e5f8aa 100644 --- a/modules/calendar/e-memo-shell-view-private.c +++ b/modules/calendar/e-memo-shell-view-private.c @@ -67,7 +67,6 @@ memo_shell_view_selector_client_added_cb (EMemoShellView *memo_shell_view, model = e_memo_table_get_model (memo_table); e_cal_model_add_client (model, client); - e_memo_shell_view_update_timezone (memo_shell_view); } static void @@ -235,11 +234,6 @@ e_memo_shell_view_private_constructed (EMemoShellView *memo_shell_view) priv->backend_error_handler_id = handler_id; g_signal_connect_swapped ( - model, "notify::timezone", - G_CALLBACK (e_memo_shell_view_update_timezone), - memo_shell_view); - - g_signal_connect_swapped ( model, "row-appended", G_CALLBACK (memo_shell_view_model_row_appended_cb), memo_shell_view); @@ -322,7 +316,6 @@ e_memo_shell_view_private_constructed (EMemoShellView *memo_shell_view) e_memo_shell_view_actions_init (memo_shell_view); e_memo_shell_view_update_sidebar (memo_shell_view); e_memo_shell_view_update_search_filter (memo_shell_view); - e_memo_shell_view_update_timezone (memo_shell_view); } void @@ -483,27 +476,3 @@ e_memo_shell_view_update_sidebar (EMemoShellView *memo_shell_view) g_string_free (string, TRUE); } -void -e_memo_shell_view_update_timezone (EMemoShellView *memo_shell_view) -{ - EMemoShellContent *memo_shell_content; - EMemoShellSidebar *memo_shell_sidebar; - icaltimezone *timezone; - ECalModel *model; - GList *clients, *iter; - - memo_shell_content = memo_shell_view->priv->memo_shell_content; - model = e_memo_shell_content_get_memo_model (memo_shell_content); - timezone = e_cal_model_get_timezone (model); - - memo_shell_sidebar = memo_shell_view->priv->memo_shell_sidebar; - clients = e_memo_shell_sidebar_get_clients (memo_shell_sidebar); - - for (iter = clients; iter != NULL; iter = iter->next) { - ECalClient *client = iter->data; - - e_cal_client_set_default_timezone (client, timezone); - } - - g_list_free (clients); -} diff --git a/modules/calendar/e-memo-shell-view-private.h b/modules/calendar/e-memo-shell-view-private.h index 63bcb9b30c..8996151874 100644 --- a/modules/calendar/e-memo-shell-view-private.h +++ b/modules/calendar/e-memo-shell-view-private.h @@ -109,8 +109,6 @@ void e_memo_shell_view_update_sidebar (EMemoShellView *memo_shell_view); void e_memo_shell_view_update_search_filter (EMemoShellView *memo_shell_view); -void e_memo_shell_view_update_timezone - (EMemoShellView *memo_shell_view); G_END_DECLS |