summaryrefslogtreecommitdiff
path: root/mateweather/mateweather-applet.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-04-11 07:26:37 -0700
committerStefano Karapetsas <[email protected]>2013-04-11 07:26:37 -0700
commit4201dbf6a41538083734153f3371c0c65d672979 (patch)
tree0a744b43c3b742b9824aeaab2f6a8464bd8312af /mateweather/mateweather-applet.c
parenta48819d511d123db2e45c7f159169910c0cf6dc9 (diff)
parent32953ecd2e50799c34f7e5f2794f2b1f1a6a13ef (diff)
downloadmate-applets-4201dbf6a41538083734153f3371c0c65d672979.tar.bz2
mate-applets-4201dbf6a41538083734153f3371c0c65d672979.tar.xz
Merge pull request #40 from muesli4/master
Making the notification in mate-applets/mateweather an optional feature
Diffstat (limited to 'mateweather/mateweather-applet.c')
-rw-r--r--mateweather/mateweather-applet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mateweather/mateweather-applet.c b/mateweather/mateweather-applet.c
index fdb9879e..7743ed05 100644
--- a/mateweather/mateweather-applet.c
+++ b/mateweather/mateweather-applet.c
@@ -312,6 +312,7 @@ void mateweather_applet_create (MateWeatherApplet *gw_applet)
AtkObject *atk_obj;
gw_applet->mateweather_pref.location = NULL;
+ gw_applet->mateweather_pref.show_notifications = FALSE;
gw_applet->mateweather_pref.update_interval = 1800;
gw_applet->mateweather_pref.update_enabled = TRUE;
gw_applet->mateweather_pref.detailed = FALSE;
@@ -442,6 +443,8 @@ update_finish (WeatherInfo *info, gpointer data)
place_widgets(gw_applet);
#ifdef HAVE_LIBNOTIFY
+ if (gw_applet->mateweather_pref.show_notifications)
+ {
NotifyNotification *n;
/* Show notifications if possible */
@@ -479,6 +482,7 @@ update_finish (WeatherInfo *info, gpointer data)
g_free (message);
g_free (detail);
}
+ }
#endif
}
else