[gnome-panel] clock: update clock location for API change



commit 8d63e6ec19f2b4a490c2abc81881c50402058b17
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jan 11 20:04:20 2018 +0200

    clock: update clock location for API change
    
    The deprecated argument to gweather_info_new() got dropped.

 modules/clock/clock-location.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/modules/clock/clock-location.c b/modules/clock/clock-location.c
index bbcb3aa..89a12e2 100644
--- a/modules/clock/clock-location.c
+++ b/modules/clock/clock-location.c
@@ -477,7 +477,11 @@ setup_weather_updates (ClockLocation *loc)
                priv->weather_timeout = 0;
        }
 
+#if GWEATHER_CHECK_VERSION (3, 27, 2)
+       priv->weather_info = gweather_info_new (priv->loc);
+#else
        priv->weather_info = gweather_info_new (priv->loc, GWEATHER_FORECAST_LIST);
+#endif
 
        g_signal_connect (priv->weather_info, "updated",
                          G_CALLBACK (weather_info_updated), loc);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]