[gnome-panel/wip/gnome-3.10+: 29/38] clock: fix warning



commit 644b5d9a6ad28609e6e5a404363eb4d5c464a99d
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]