[gnome-applets] gweather: update applet for API change
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] gweather: update applet for API change
- Date: Thu, 7 Dec 2017 10:30:00 +0000 (UTC)
commit fe93cb42f976ba5a1f2456f87dcb281eafc76dd2
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Dec 7 12:29:02 2017 +0200
gweather: update applet for API change
The deprecated argument to gweather_info_new() got dropped.
configure.ac | 2 +-
gweather/src/gweather-applet.c | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b747b2d..8b385d1 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.17.1
+GWEATHER_REQUIRED=3.27.2
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 263885b..aca96cc 100644
--- a/gweather/src/gweather-applet.c
+++ b/gweather/src/gweather-applet.c
@@ -329,7 +329,6 @@ void gweather_applet_create (GWeatherApplet *gw_applet)
GAction *action;
gchar *ui_path;
AtkObject *atk_obj;
- GWeatherForecastType type;
GNetworkMonitor*monitor;
panel_applet_set_flags (gw_applet->applet, PANEL_APPLET_EXPAND_MINOR);
@@ -376,10 +375,7 @@ void gweather_applet_create (GWeatherApplet *gw_applet)
g_object_unref (action_group);
- type = g_settings_get_boolean (gw_applet->applet_settings, "detailed") ?
- GWEATHER_FORECAST_ZONE : GWEATHER_FORECAST_STATE;
-
- gw_applet->gweather_info = gweather_info_new(NULL, type);
+ gw_applet->gweather_info = gweather_info_new (NULL);
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]