From 255c76e8c9d0c2226df1e66e7463cdcd54aa7f8e Mon Sep 17 00:00:00 2001 From: muesli4 Date: Wed, 10 Apr 2013 09:04:50 +0200 Subject: Added "show-notifications" boolean to GSchema and to the MateWeatherPrefs struct. --- libmateweather/mateweather-prefs.c | 2 ++ libmateweather/mateweather-prefs.h | 1 + libmateweather/org.mate.weather.gschema.xml.in.in | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/libmateweather/mateweather-prefs.c b/libmateweather/mateweather-prefs.c index 3795d7a..84ac379 100644 --- a/libmateweather/mateweather-prefs.c +++ b/libmateweather/mateweather-prefs.c @@ -52,6 +52,8 @@ mateweather_prefs_load (MateWeatherPrefs *prefs, GSettings *settings) g_free (radar); g_free (coordinates); + prefs->show_notifications = + g_settings_get_boolean (settings, "show-notifications"); prefs->update_interval = g_settings_get_int (settings, "auto-update-interval"); prefs->update_interval = MAX (prefs->update_interval, 60); diff --git a/libmateweather/mateweather-prefs.h b/libmateweather/mateweather-prefs.h index bb5924c..c7a3743 100644 --- a/libmateweather/mateweather-prefs.h +++ b/libmateweather/mateweather-prefs.h @@ -38,6 +38,7 @@ typedef struct _MateWeatherPrefs MateWeatherPrefs; struct _MateWeatherPrefs { WeatherLocation *location; + gboolean show_notifications; gint update_interval; /* in seconds */ gboolean update_enabled; gboolean detailed; diff --git a/libmateweather/org.mate.weather.gschema.xml.in.in b/libmateweather/org.mate.weather.gschema.xml.in.in index c78ece4..2289b38 100644 --- a/libmateweather/org.mate.weather.gschema.xml.in.in +++ b/libmateweather/org.mate.weather.gschema.xml.in.in @@ -33,6 +33,11 @@ + + false + <_summary>Show notifications + <_description>Determines whether the applet shows a notification on each update. + true <_summary>Update the data automatically -- cgit v1.2.1