[evolution] Remove e_memo_shell_view_update_timezone().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove e_memo_shell_view_update_timezone().
- Date: Sun, 17 Feb 2013 00:02:46 +0000 (UTC)
commit b9ab776bc280f158db4581b88aa82848cff2d65d
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Feb 16 11:15:33 2013 -0500
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.
modules/calendar/e-memo-shell-view-private.c | 31 --------------------------
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 6f8a270..50b9e5f 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 63bcb9b..8996151 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]