diff options
author | Milan Crha <mcrha@redhat.com> | 2009-01-19 21:10:36 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2009-01-19 21:10:36 +0800 |
commit | ae26a9a5fb34beb48e4161c8f145b0fb2d3cb3a9 (patch) | |
tree | e7eaffe89d351ff96ac07acba1d8222abc4c94c0 /calendar/gui/calendar-config.c | |
parent | fe416afe35ea272263dea6a526dd383b5fb24c16 (diff) | |
download | gsoc2013-evolution-ae26a9a5fb34beb48e4161c8f145b0fb2d3cb3a9.tar.gz gsoc2013-evolution-ae26a9a5fb34beb48e4161c8f145b0fb2d3cb3a9.tar.zst gsoc2013-evolution-ae26a9a5fb34beb48e4161c8f145b0fb2d3cb3a9.zip |
** Fix for bug #200254
2009-01-19 Milan Crha <mcrha@redhat.com>
** Fix for bug #200254
* gui/apps_evolution_calendar.schemas.in:
* gui/dialogs/cal-prefs-dialog.glade:
* gui/dialogs/cal-prefs-dialog.h: (struct _CalendarPrefsDialog):
* gui/dialogs/cal-prefs-dialog.c: (dview_show_week_no_toggled),
(setup_changes), (show_config), (calendar_prefs_dialog_construct):
* gui/calendar-config-keys.h:
* gui/calendar-config.h:
* gui/calendar-config.c: (calendar_config_get_dview_show_week_no),
(calendar_config_set_dview_show_week_no),
(calendar_config_add_notification_dview_show_week_no):
New option whether to show week number in Day and Work Week view.
* gui/e-day-view.h: (struct _EDayView),
(e_day_view_get_show_week_number), (e_day_view_set_show_week_number):
* gui/e-day-view.c: (dview_show_week_no_changed_cb), (e_day_view_init),
(e_day_view_destroy), (e_day_view_recalc_day_starts),
(e_day_view_get_show_week_number), (e_day_view_set_show_week_number):
New widget showing week number of the first day in a view.
svn path=/trunk/; revision=37096
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r-- | calendar/gui/calendar-config.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index f4efd7e95e..4e6f853db0 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -678,6 +678,36 @@ calendar_config_add_notification_marcus_bains (GConfClientNotifyFunc func, gpoin *not_tcolor = gconf_client_notify_add (config, CALENDAR_CONFIG_MARCUS_BAINS_COLOR_TIMEBAR, func, data, NULL, NULL); } +/* Whether we show week number in the Day View. */ +gboolean +calendar_config_get_dview_show_week_no (void) +{ + calendar_config_init (); + + return gconf_client_get_bool (config, CALENDAR_CONFIG_DV_WEEK_NUMBER, NULL); +} + + +void +calendar_config_set_dview_show_week_no (gboolean show_week_no) +{ + calendar_config_init (); + + gconf_client_set_bool (config, CALENDAR_CONFIG_DV_WEEK_NUMBER, show_week_no, NULL); +} + +guint +calendar_config_add_notification_dview_show_week_no (GConfClientNotifyFunc func, gpointer data) +{ + guint id; + + calendar_config_init (); + + id = gconf_client_notify_add (config, CALENDAR_CONFIG_DV_WEEK_NUMBER, func, data, NULL, NULL); + + return id; +} + /* Whether we show week numbers in the Date Navigator. */ gboolean calendar_config_get_dnav_show_week_no (void) |