aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-17 00:09:15 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-17 07:57:10 +0800
commita12f0070c3e1335e97e4b35340dae325a4aab53b (patch)
tree019d9fe33221b758792d3c1b628793faea1bd2b8 /modules
parentcf27f8312b87e25a41861d4a31bcd2e07e4ecd4c (diff)
downloadgsoc2013-evolution-a12f0070c3e1335e97e4b35340dae325a4aab53b.tar
gsoc2013-evolution-a12f0070c3e1335e97e4b35340dae325a4aab53b.tar.gz
gsoc2013-evolution-a12f0070c3e1335e97e4b35340dae325a4aab53b.tar.bz2
gsoc2013-evolution-a12f0070c3e1335e97e4b35340dae325a4aab53b.tar.lz
gsoc2013-evolution-a12f0070c3e1335e97e4b35340dae325a4aab53b.tar.xz
gsoc2013-evolution-a12f0070c3e1335e97e4b35340dae325a4aab53b.tar.zst
gsoc2013-evolution-a12f0070c3e1335e97e4b35340dae325a4aab53b.zip
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.
Diffstat (limited to 'modules')
-rw-r--r--modules/calendar/e-cal-shell-view-private.c31
-rw-r--r--modules/calendar/e-cal-shell-view-private.h2
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 7bf36a16b5..b8a5583b37 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 a9c6202980..7931eb3a3d 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);