[evolution] Remove e_cal_shell_view_update_timezone().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove e_cal_shell_view_update_timezone().
- Date: Sun, 17 Feb 2013 00:02:41 +0000 (UTC)
commit a12f0070c3e1335e97e4b35340dae325a4aab53b
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Feb 16 11:09:15 2013 -0500
Remove e_cal_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-cal-shell-view-private.c | 31 ---------------------------
modules/calendar/e-cal-shell-view-private.h | 2 -
2 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c
index 7bf36a1..b8a5583 100644
--- a/modules/calendar/e-cal-shell-view-private.c
+++ b/modules/calendar/e-cal-shell-view-private.c
@@ -662,11 +662,6 @@ e_cal_shell_view_private_constructed (ECalShellView *cal_shell_view)
cal_shell_view, G_CONNECT_SWAPPED);
g_signal_connect_object (
- model, "notify::timezone",
- G_CALLBACK (e_cal_shell_view_update_timezone),
- cal_shell_view, G_CONNECT_SWAPPED);
-
- g_signal_connect_object (
date_navigator, "scroll-event",
G_CALLBACK (cal_shell_view_date_navigator_scroll_event_cb),
cal_shell_view, G_CONNECT_SWAPPED);
@@ -740,7 +735,6 @@ e_cal_shell_view_private_constructed (ECalShellView *cal_shell_view)
e_cal_shell_view_actions_init (cal_shell_view);
e_cal_shell_view_update_sidebar (cal_shell_view);
e_cal_shell_view_update_search_filter (cal_shell_view);
- e_cal_shell_view_update_timezone (cal_shell_view);
/* Express mode only: Bind the "New Calendar"
* sidebar button to the appropriate action. */
@@ -1213,31 +1207,6 @@ e_cal_shell_view_update_sidebar (ECalShellView *cal_shell_view)
e_shell_sidebar_set_secondary_text (shell_sidebar, buffer);
}
-void
-e_cal_shell_view_update_timezone (ECalShellView *cal_shell_view)
-{
- ECalShellContent *cal_shell_content;
- ECalShellSidebar *cal_shell_sidebar;
- icaltimezone *timezone;
- ECalModel *model;
- GList *clients, *iter;
-
- cal_shell_content = cal_shell_view->priv->cal_shell_content;
- model = e_cal_shell_content_get_model (cal_shell_content);
- timezone = e_cal_model_get_timezone (model);
-
- cal_shell_sidebar = cal_shell_view->priv->cal_shell_sidebar;
- clients = e_cal_shell_sidebar_get_clients (cal_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);
-}
-
static gint
cal_searching_get_search_range_years (ECalShellView *cal_shell_view)
{
diff --git a/modules/calendar/e-cal-shell-view-private.h b/modules/calendar/e-cal-shell-view-private.h
index a9c6202..7931eb3 100644
--- a/modules/calendar/e-cal-shell-view-private.h
+++ b/modules/calendar/e-cal-shell-view-private.h
@@ -147,8 +147,6 @@ void e_cal_shell_view_update_sidebar
(ECalShellView *cal_shell_view);
void e_cal_shell_view_update_search_filter
(ECalShellView *cal_shell_view);
-void e_cal_shell_view_update_timezone
- (ECalShellView *cal_shell_view);
void e_cal_shell_view_search_events
(ECalShellView *cal_shell_view,
gboolean search_forward);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]