[libgweather] GWeatherConditions: fix bindings



commit 4692215fd2a726355d7b52c5f8b82d7ea0d99fd1
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun Mar 18 19:11:30 2012 +0100

    GWeatherConditions: fix bindings
    
    Apparently, g-ir-scanner needs to see the typedef before the
    structure, or it fails to resolve the type.

 libgweather/gweather-weather.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgweather/gweather-weather.h b/libgweather/gweather-weather.h
index 7f150a9..5ebea40 100644
--- a/libgweather/gweather-weather.h
+++ b/libgweather/gweather-weather.h
@@ -196,12 +196,12 @@ gboolean gweather_info_get_value_sunset 	(GWeatherInfo *info, time_t *value);
 gboolean gweather_info_get_value_moonphase      (GWeatherInfo *info, GWeatherMoonPhase *value, GWeatherMoonLatitude *lat);
 gboolean gweather_info_get_upcoming_moonphases  (GWeatherInfo *info, time_t *phases);
 
+typedef struct _GWeatherConditions GWeatherConditions;
 struct _GWeatherConditions {
     gboolean significant;
     GWeatherConditionPhenomenon phenomenon;
     GWeatherConditionQualifier qualifier;
 };
-typedef struct _GWeatherConditions GWeatherConditions;
 
 const gchar * gweather_conditions_to_string (GWeatherConditions *conditions);
 



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