From 4cd045fb40ee5fcad3c5f86b9ecff5d4c21963cd Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 29 Oct 2003 14:05:34 +0000 Subject: set the timezone for all clients (timezone_changed_cb): callback for 2003-10-29 JP Rosevear * 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 --- calendar/gui/calendar-config.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'calendar/gui/calendar-config.c') diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index fe5bb487d4..d7bd087a8c 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -141,6 +141,15 @@ calendar_config_set_timezone (gchar *timezone) gconf_client_set_string (config, CALENDAR_CONFIG_TIMEZONE, "UTC", NULL); } +guint +calendar_config_add_notification_timezone (GConfClientNotifyFunc func, gpointer data) +{ + guint id; + + id = gconf_client_notify_add (config, CALENDAR_CONFIG_TIMEZONE, func, data, NULL, NULL); + + return id; +} /* Whether we use 24-hour format or 12-hour format (AM/PM). */ gboolean @@ -328,6 +337,15 @@ calendar_config_set_dnav_show_week_no (gboolean show_week_no) gconf_client_set_bool (config, CALENDAR_CONFIG_DN_SHOW_WEEK_NUMBERS, show_week_no, NULL); } +guint +calendar_config_add_notification_dnav_show_week_no (GConfClientNotifyFunc func, gpointer data) +{ + guint id; + + id = gconf_client_notify_add (config, CALENDAR_CONFIG_DN_SHOW_WEEK_NUMBERS, func, data, NULL, NULL); + + return id; +} /* The view to show on start-up, 0 = Day, 1 = WorkWeek, 2 = Week, 3 = Month. */ gint -- cgit v1.2.3