]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix compiler warning for dynamic copyright.
authorRob Norris <rw_norris@hotmail.com>
Wed, 30 Mar 2011 22:45:16 +0000 (23:45 +0100)
committerRob Norris <rw_norris@hotmail.com>
Wed, 30 Mar 2011 23:28:40 +0000 (00:28 +0100)
src/vikmapsource.c
src/vikmapsource.h
src/vikmapsourcedefault.c

index eb28e8948cbf95ca91944bc7caf5b423e2defb51..5467e01236877ca36ef7eee322180b1ce166eed0 100644 (file)
@@ -98,7 +98,7 @@ _supports_download_only_new (VikMapSource *self)
  * retreive copyright(s) for the corresponding bounding box and zoom level.
  */
 void
-vik_map_source_get_copyright (VikMapSource *self, LatLonBBox bbox, gdouble zoom, void (*fct)(void*,const gchar*), void *data)
+vik_map_source_get_copyright (VikMapSource *self, LatLonBBox bbox, gdouble zoom, void (*fct)(VikViewport*,const gchar*), void *data)
 {
        VikMapSourceClass *klass;
        g_return_if_fail (self != NULL);
index 1de2b012dfed42c9dcffd6460523c3c5a9e9aaed..516baa866921c09254a4c1ece1d45000428c77a8 100644 (file)
@@ -44,7 +44,7 @@ struct _VikMapSourceClass
        GObjectClass parent_class;
 
        /* Legal info */
-       void (* get_copyright) (VikMapSource * self, LatLonBBox bbox, gdouble zoom, void (*fct)(void*,const gchar*), void *data);
+       void (* get_copyright) (VikMapSource * self, LatLonBBox bbox, gdouble zoom, void (*fct)(VikViewport*,const gchar*), void *data);
        const gchar *(* get_license) (VikMapSource * self);
        const gchar *(* get_license_url) (VikMapSource * self);
        const GdkPixbuf *(* get_logo) (VikMapSource * self);
@@ -69,7 +69,7 @@ struct _VikMapSource
 
 GType vik_map_source_get_type (void) G_GNUC_CONST;
 
-void vik_map_source_get_copyright (VikMapSource * self, LatLonBBox bbox, gdouble zoom, void (*fct)(void*,const gchar*), void *data);
+void vik_map_source_get_copyright (VikMapSource * self, LatLonBBox bbox, gdouble zoom, void (*fct)(VikViewport*,const gchar*), void *data);
 const gchar *vik_map_source_get_license (VikMapSource * self);
 const gchar *vik_map_source_get_license_url (VikMapSource * self);
 const GdkPixbuf *vik_map_source_get_logo (VikMapSource * self);
index 8e09de39cce50237e730011de9744ed5d85bf79b..208123fde6585c7384c8fc10431162452f327a4a 100644 (file)
@@ -30,7 +30,7 @@
 #include "vikenumtypes.h"
 #include "download.h"
 
-static void map_source_get_copyright (VikMapSource *self, LatLonBBox bbox, gdouble zoom, void (*fct)(void*,const gchar*), void *data);
+static void map_source_get_copyright (VikMapSource *self, LatLonBBox bbox, gdouble zoom, void (*fct)(VikViewport*,const gchar*), void *data);
 static const gchar *map_source_get_license (VikMapSource *self);
 static const gchar *map_source_get_license_url (VikMapSource *self);
 static const GdkPixbuf *map_source_get_logo (VikMapSource *self);
@@ -315,7 +315,7 @@ vik_map_source_default_class_init (VikMapSourceDefaultClass *klass)
 }
 
 static void
-map_source_get_copyright (VikMapSource *self, LatLonBBox bbox, gdouble zoom, void (*fct)(void*,const gchar*), void *data)
+map_source_get_copyright (VikMapSource *self, LatLonBBox bbox, gdouble zoom, void (*fct)(VikViewport*,const gchar*), void *data)
 {
        /* Just ignore bbox and zoom level */
        g_return_if_fail (VIK_IS_MAP_SOURCE_DEFAULT(self));