]> err.no Git - libchamplain/commitdiff
Fix Bug 582786: champlain_network_map_source_fill_tile should be private
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 19 May 2009 05:01:01 +0000 (01:01 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 20 May 2009 15:43:16 +0000 (11:43 -0400)
by making champlain_network_map_source_fill_tile a static function to
champlain-network-map-source.c

champlain/champlain-network-map-source.c
champlain/champlain-network-map-source.h

index c3199b41bb1a8bccf6b4f5c0cd8385e17a4857a4..efe712bab90ec13b19a2a555ffea04d741ac12d3 100644 (file)
@@ -92,6 +92,9 @@ struct _ChamplainNetworkMapSourcePrivate
   gchar *proxy_uri;
 };
 
+static void fill_tile (ChamplainMapSource *map_source,
+    ChamplainTile *tile);
+
 static void
 champlain_network_map_source_get_property (GObject *object,
     guint prop_id,
@@ -173,7 +176,7 @@ champlain_network_map_source_class_init (ChamplainNetworkMapSourceClass *klass)
   object_class->set_property = champlain_network_map_source_set_property;
 
   ChamplainMapSourceClass *map_source_class = CHAMPLAIN_MAP_SOURCE_CLASS (klass);
-  map_source_class->fill_tile = champlain_network_map_source_fill_tile;
+  map_source_class->fill_tile = fill_tile;
 
   /**
   * ChamplainNetworkMapSource:uri-format
@@ -548,19 +551,8 @@ finish:
   g_object_unref (tile);
 }
 
-/**
- * champlain_network_map_source_fill_tile:
- * @map_source: the #ChamplainNetworkMapSource
- * @tile: the #ChamplainTile
- *
- * Fills the passed tile with image data.  If not in #ChamplainCache, this function
- * will initiate an async download of the image at the map source's URI format.
- * Once done, the tile's state will be set to #CHAMPLAIN_STATE_DONE.
- *
- * Since: 0.4
- */
-void
-champlain_network_map_source_fill_tile (ChamplainMapSource *map_source,
+static void
+fill_tile (ChamplainMapSource *map_source,
     ChamplainTile *tile)
 {
   gchar* filename;
index 4baadae0a1e18058a41da3a2453dee1a498c843e..cb064226c68a78e660fd2c3677f5d4fb5b0784f9 100644 (file)
@@ -72,9 +72,6 @@ gchar * champlain_network_map_source_get_tile_uri (ChamplainNetworkMapSource *so
 void champlain_network_map_source_set_uri_format (ChamplainNetworkMapSource *source,
     const gchar *uri_format);
 
-void champlain_network_map_source_fill_tile (ChamplainMapSource *map_source,
-    ChamplainTile *tile);
-
 G_END_DECLS
 
 #endif