diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-30 15:29:43 -0700 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-10-30 15:29:43 -0700 |
commit | 19663dd8958f833385470c6d67f1d80923f33fd0 (patch) | |
tree | 5ff68b8576e91a1273eaef491223bd1f4021e347 /panel | |
parent | 13cc891202d3721fc157c827ed1141ee6221ccbd (diff) | |
download | ayatana-indicator-datetime-19663dd8958f833385470c6d67f1d80923f33fd0.tar.gz ayatana-indicator-datetime-19663dd8958f833385470c6d67f1d80923f33fd0.tar.bz2 ayatana-indicator-datetime-19663dd8958f833385470c6d67f1d80923f33fd0.zip |
Add support for showing the year in indicator-datetime
Diffstat (limited to 'panel')
-rw-r--r-- | panel/datetime-prefs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/panel/datetime-prefs.c b/panel/datetime-prefs.c index 8e5ee35..55456ac 100644 --- a/panel/datetime-prefs.c +++ b/panel/datetime-prefs.c @@ -699,7 +699,9 @@ indicator_datetime_panel_init (IndicatorDatetimePanel * self) "active", G_SETTINGS_BIND_DEFAULT); g_settings_bind (conf, SETTINGS_SHOW_DAY_S, WIG ("showWeekdayCheck"), "active", G_SETTINGS_BIND_DEFAULT); - g_settings_bind (conf, SETTINGS_SHOW_DATE_S, WIG ("showDateTimeCheck"), + g_settings_bind (conf, SETTINGS_SHOW_DATE_S, WIG ("showDateAndMonthCheck"), + "active", G_SETTINGS_BIND_DEFAULT); + g_settings_bind (conf, SETTINGS_SHOW_YEAR_S, WIG ("showYearCheck"), "active", G_SETTINGS_BIND_DEFAULT); g_settings_bind (conf, SETTINGS_SHOW_SECONDS_S, WIG ("showSecondsCheck"), "active", G_SETTINGS_BIND_DEFAULT); @@ -725,6 +727,7 @@ indicator_datetime_panel_init (IndicatorDatetimePanel * self) "active", G_SETTINGS_BIND_DEFAULT); /* Set up sensitivities */ + add_widget_dependency (WIG ("showDateAndMonthCheck"), WIG ("showYearCheck")); add_widget_dependency (WIG ("showCalendarCheck"), WIG ("calendarOptions")); add_widget_dependency (WIG ("showClockCheck"), WIG ("clockOptions")); add_widget_dependency (WIG ("showLocationsCheck"), WIG ("locationsButton")); |