From 3a0c5ea4563ce588d30b94f8ea298c8471e3cbeb Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 15 Jan 2018 18:54:04 +0100 Subject: Revert "Added logic to not send notification if weather update is equal (as decided by weather_info_equal ()) to the previous update" This reverts commit 109a7fa77bb4745524eca8a0735b210b55b81fe0. fixes clock-applet crashes https://github.com/mate-desktop/libmateweather/issues/51 --- mateweather/mateweather-applet.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'mateweather/mateweather-applet.c') diff --git a/mateweather/mateweather-applet.c b/mateweather/mateweather-applet.c index 118a801b..59768635 100644 --- a/mateweather/mateweather-applet.c +++ b/mateweather/mateweather-applet.c @@ -458,8 +458,7 @@ update_finish (WeatherInfo *info, gpointer data) place_widgets(gw_applet); #ifdef HAVE_LIBNOTIFY - if (gw_applet->mateweather_pref.show_notifications && - !weather_info_equal(gw_applet->mateweather_previnfo, gw_applet->mateweather_info)) + if (gw_applet->mateweather_pref.show_notifications) { NotifyNotification *n; @@ -499,9 +498,6 @@ update_finish (WeatherInfo *info, gpointer data) g_free (detail); } } - - weather_info_free (gw_applet->mateweather_previnfo); - gw_applet->mateweather_previnfo = weather_info_clone (gw_applet->mateweather_info); #endif } else @@ -558,5 +554,4 @@ void mateweather_update (MateWeatherApplet *gw_applet) &prefs, update_finish, gw_applet); } - } -- cgit v1.2.1