diff options
| author | lukefromdc <[email protected]> | 2015-10-02 20:14:55 -0400 | 
|---|---|---|
| committer | raveit65 <[email protected]> | 2015-10-10 01:34:34 +0200 | 
| commit | 7c6c46ff8d88f22f044fd0e1633b149ac8d45ffe (patch) | |
| tree | 48091a73a3504e98a516ce2711bbf67449d6a92a /applets/clock | |
| parent | 9baa40b062079bc9191aeae5a344e790d3b95fe6 (diff) | |
| download | mate-panel-7c6c46ff8d88f22f044fd0e1633b149ac8d45ffe.tar.bz2 mate-panel-7c6c46ff8d88f22f044fd0e1633b149ac8d45ffe.tar.xz | |
clock.c: add gesettings key for toggle weeknumbers
Diffstat (limited to 'applets/clock')
| -rw-r--r-- | applets/clock/clock.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| 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", | 
