summaryrefslogtreecommitdiff
path: root/mateweather/main.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2017-03-29 15:31:56 -0500
committerraveit65 <[email protected]>2017-07-23 14:55:15 +0200
commit109a7fa77bb4745524eca8a0735b210b55b81fe0 (patch)
tree86696f58a2e6f0625b125f040f24eb9b6cd7fef0 /mateweather/main.c
parentb5e5639f43d2a7aae2c9dfa74f03992ca1cbd2e1 (diff)
downloadmate-applets-109a7fa77bb4745524eca8a0735b210b55b81fe0.tar.bz2
mate-applets-109a7fa77bb4745524eca8a0735b210b55b81fe0.tar.xz
Added logic to not send notification if weather update is equal (as decided by weather_info_equal ()) to the previous update
Diffstat (limited to 'mateweather/main.c')
-rw-r--r--mateweather/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mateweather/main.c b/mateweather/main.c
index de8d8436..e59665f1 100644
--- a/mateweather/main.c
+++ b/mateweather/main.c
@@ -35,6 +35,9 @@ static gboolean mateweather_applet_new(MatePanelApplet* applet, const gchar* iid
gw_applet->applet = applet;
gw_applet->mateweather_info = NULL;
+#ifdef HAVE_LIBNOTIFY
+ gw_applet->mateweather_previnfo = NULL;
+#endif
gw_applet->settings = mate_panel_applet_settings_new (applet, "org.mate.weather");
mateweather_applet_create(gw_applet);