[gnome-panel] clock: fix warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] clock: fix warning
- Date: Mon, 27 Oct 2014 16:22:30 +0000 (UTC)
commit c54d694bb9fb8b7191fac2936060d54ec497f6bb
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Oct 12 02:39:27 2014 +0300
clock: fix warning
Fix new warning introduced in commit removing NetworkManager
dependency.
applets/clock/clock-location.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/applets/clock/clock-location.c b/applets/clock/clock-location.c
index e291615..57ed061 100644
--- a/applets/clock/clock-location.c
+++ b/applets/clock/clock-location.c
@@ -52,7 +52,7 @@ enum {
static guint location_signals[LAST_SIGNAL] = { 0 };
static void clock_location_finalize (GObject *);
-static gboolean update_weather_info (ClockLocation *loc);
+static gboolean update_weather_info (gpointer user_data);
static void setup_weather_updates (ClockLocation *loc);
#define PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CLOCK_LOCATION_TYPE, ClockLocationPrivate))
@@ -455,8 +455,9 @@ weather_info_updated (GWeatherInfo *info, gpointer data)
}
static gboolean
-update_weather_info (ClockLocation *loc)
+update_weather_info (gpointer user_data)
{
+ ClockLocation *loc = user_data;
ClockLocationPrivate *priv = PRIVATE (loc);
gweather_info_abort (priv->weather_info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]