aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-list-view.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-10-29 22:05:34 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-10-29 22:05:34 +0800
commit4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd (patch)
treec52b473aa7e259f552053581177c2a0b568b3c4b /calendar/gui/e-cal-list-view.c
parent104ef59a6ae16a83f0ba16cedae32c6322b3fdc3 (diff)
downloadgsoc2013-evolution-4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd.tar
gsoc2013-evolution-4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd.tar.gz
gsoc2013-evolution-4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd.tar.bz2
gsoc2013-evolution-4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd.tar.lz
gsoc2013-evolution-4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd.tar.xz
gsoc2013-evolution-4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd.tar.zst
gsoc2013-evolution-4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd.zip
set the timezone for all clients (timezone_changed_cb): callback for
2003-10-29 JP Rosevear <jpr@ximian.com> * gui/gnome-cal.c (set_timezone): set the timezone for all clients (timezone_changed_cb): callback for changes (setup_config): setup the configuration (setup_widgets): setup up configuration managers for the list view, task list and date navigator (gnome_calendar_init): setup config (gnome_calendar_destroy): destroy configuration managers and notifications (gnome_calendar_update_config_settings): remove dead bits * gui/e-mini-calendar-config.[hc]: manage configuration of an e-calendar * gui/e-day-view-config.h: remove extraneous comment, type the parent class correctly * gui/e-week-view-config.h: ditto * gui/e-day-view-config.c (e_day_view_config_class_init): type the class correctly (set_timezone): set timezone (timezone_changed_cb): timezone changed callback (e_day_view_config_set_view): track timezone changes * gui/e-week-view-config.c: ditto * gui/e-cell-date-edit-config.[hc]: manage configuration of a date edit cell * gui/e-calendar-table-config.[hc]: manage configuration of a e-calendar-table * gui/e-cal-list-view.c (get_current_time_cb): use the view timezone to compute * gui/e-cal-list-view-config.[hc]: manage configuration of a list view * gui/calendar-config.h: update protos * gui/calendar-config.c (calendar_config_add_notification_timezone): notify of timezone change (calendar_config_add_notification_dnav_show_week_no): notify of show week number setting change * gui/calendar-component.c (calendar_component_peek): remove bad comma * gui/Makefile.am: build new config classes svn path=/trunk/; revision=23114
Diffstat (limited to 'calendar/gui/e-cal-list-view.c')
-rw-r--r--calendar/gui/e-cal-list-view.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/calendar/gui/e-cal-list-view.c b/calendar/gui/e-cal-list-view.c
index 720f378ac7..359ac4d557 100644
--- a/calendar/gui/e-cal-list-view.c
+++ b/calendar/gui/e-cal-list-view.c
@@ -152,21 +152,16 @@ e_cal_list_view_init (ECalListView *cal_list_view)
cal_list_view->set_table_id = 0;
}
-/* Returns the current time, for the ECellDateEdit items.
- FIXME: Should probably use the timezone of the item rather than the
- current timezone, though that may be difficult to get from here. */
+/* Returns the current time, for the ECellDateEdit items. */
static struct tm
get_current_time_cb (ECellDateEdit *ecde, gpointer data)
{
- char *location;
+ ECalListView *cal_list_view = data;
icaltimezone *zone;
struct tm tmp_tm = { 0 };
struct icaltimetype tt;
- /* Get the current timezone. */
- location = calendar_config_get_timezone ();
- zone = icaltimezone_get_builtin_timezone (location);
-
+ zone = e_cal_view_get_timezone (E_CAL_VIEW (cal_list_view));
tt = icaltime_from_timet_with_zone (time (NULL), FALSE, zone);
/* Now copy it to the struct tm and return it. */