[gnome-applets] gweather: reduce gweather required version
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] gweather: reduce gweather required version
- Date: Sun, 4 Feb 2018 17:54:55 +0000 (UTC)
commit dc4fc474278fb074cb3db7e9668d858fc7c32725
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Feb 4 19:51:54 2018 +0200
gweather: reduce gweather required version
configure.ac | 2 +-
gweather/src/gweather-applet.c | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8b385d1..55bcfaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,7 @@ DBUS_REQUIRED=1.1.2
DBUS_GLIB_REQUIRED=0.74
ADWAITA_ICON_THEME_REQUIRED=3.14.0
LIBXML_REQUIRED=2.5.0
-GWEATHER_REQUIRED=3.27.2
+GWEATHER_REQUIRED=3.18.0
GUCHARMAP3_REQUIRED=2.33.0
POLKIT_REQUIRED=0.97
dnl ***************************************************************************
diff --git a/gweather/src/gweather-applet.c b/gweather/src/gweather-applet.c
index aca96cc..856140f 100644
--- a/gweather/src/gweather-applet.c
+++ b/gweather/src/gweather-applet.c
@@ -375,7 +375,12 @@ void gweather_applet_create (GWeatherApplet *gw_applet)
g_object_unref (action_group);
+#if GWEATHER_CHECK_VERSION (3, 27, 2)
gw_applet->gweather_info = gweather_info_new (NULL);
+#else
+ gw_applet->gweather_info = gweather_info_new (priv->loc, GWEATHER_FORECAST_LIST);
+#endif
+
g_signal_connect (gw_applet->gweather_info, "updated",
G_CALLBACK (update_finish), gw_applet);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]