From 37b32fb7bf60cf8e895ddc84ab2979eeb8c762de Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Tue, 19 May 2009 01:01:01 -0400 Subject: [PATCH] Fix Bug 582786: champlain_network_map_source_fill_tile should be private by making champlain_network_map_source_fill_tile a static function to champlain-network-map-source.c --- champlain/champlain-network-map-source.c | 20 ++++++-------------- champlain/champlain-network-map-source.h | 3 --- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/champlain/champlain-network-map-source.c b/champlain/champlain-network-map-source.c index c3199b4..efe712b 100644 --- a/champlain/champlain-network-map-source.c +++ b/champlain/champlain-network-map-source.c @@ -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; diff --git a/champlain/champlain-network-map-source.h b/champlain/champlain-network-map-source.h index 4baadae..cb06422 100644 --- a/champlain/champlain-network-map-source.h +++ b/champlain/champlain-network-map-source.h @@ -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 -- 2.39.5