From 7c6c46ff8d88f22f044fd0e1633b149ac8d45ffe Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Fri, 2 Oct 2015 20:14:55 -0400 Subject: clock.c: add gesettings key for toggle weeknumbers --- applets/clock/clock.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'applets/clock') diff --git a/applets/clock/clock.c b/applets/clock/clock.c index b68cce62..2040e433 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -178,6 +178,7 @@ struct _ClockData { GtkWidget *showseconds_check; GtkWidget *showdate_check; + GtkWidget *showweeks_check; GtkWidget *custom_hbox; GtkWidget *custom_label; GtkWidget *custom_entry; @@ -3056,6 +3057,11 @@ fill_prefs_window (ClockData *cd) g_settings_bind (cd->settings, KEY_SHOW_SECONDS, widget, "active", G_SETTINGS_BIND_DEFAULT); + /* Set the "Show Week Numbers" checkbox */ + widget = _clock_get_widget (cd, "weeks_check"); + g_settings_bind (cd->settings, KEY_SHOW_WEEK, widget, "active", + G_SETTINGS_BIND_DEFAULT); + /* Set the "Show weather" checkbox */ widget = _clock_get_widget (cd, "weather_check"); g_settings_bind (cd->settings, KEY_SHOW_WEATHER, widget, "active", -- cgit v1.2.1