]> err.no Git - libchamplain/commitdiff
Reintroduce deleted functions and mark them as deprecated
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Fri, 12 Jun 2009 03:18:20 +0000 (23:18 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Fri, 12 Jun 2009 03:18:20 +0000 (23:18 -0400)
They will be removed just before releasing 0.4.

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

index 77b5481e8c5279c5f4e3a5153bd7ad4a5cc3853f..7adc7b8c976a230e58924bbd679df7c1e1417cb8 100644 (file)
@@ -292,6 +292,12 @@ champlain_cache_dup_default (void)
   return g_object_new (CHAMPLAIN_TYPE_CACHE, NULL);
 }
 
+ChamplainCache*
+champlain_cache_get_default (void)
+{
+  return champlain_cache_dup_default ();
+}
+
 /**
  * champlain_cache_get_size_limit:
  * @self: the #ChamplainCache
index 818aa760c72a79abf0ee6fbccd86f735aba5ce4e..e0ff236ff51719de24417c2f1b6a040fce5225f6 100644 (file)
@@ -55,6 +55,7 @@ typedef struct {
 GType champlain_cache_get_type (void);
 
 ChamplainCache* champlain_cache_dup_default (void);
+ChamplainCache* champlain_cache_get_default (void) G_GNUC_DEPRECATED;
 
 void champlain_cache_update_tile (ChamplainCache *self,
     ChamplainTile *tile,
index ce10ec4bb3faa19ff0979d40cf7fdaa23c072b26..9a0214d5f75a95a324100ce8669055f41e089819 100644 (file)
@@ -253,6 +253,12 @@ champlain_map_source_factory_dup_default (void)
   return g_object_new (CHAMPLAIN_TYPE_MAP_SOURCE_FACTORY, NULL);
 }
 
+ChamplainMapSourceFactory *
+champlain_map_source_factory_get_default (void)
+{
+  return champlain_map_source_factory_dup_default ();
+}
+
 /**
  * champlain_map_source_factory_dup_list:
  *
@@ -267,6 +273,12 @@ champlain_map_source_factory_dup_list (ChamplainMapSourceFactory *factory)
   return g_slist_copy (factory->priv->registered_sources);
 }
 
+GSList *
+champlain_map_source_factory_get_list (ChamplainMapSourceFactory *factory)
+{
+  return champlain_map_source_factory_dup_list (factory);
+}
+
 /**
  * champlain_map_source_factory_create:
  * @factory: the Factory
index ff2546c6c4839467a2d7c2db1e7c7e950425744f..af2aaf1942b61fc03ff167d82cc07436d57a0fe1 100644 (file)
@@ -56,8 +56,10 @@ struct _ChamplainMapSourceFactoryClass
 GType champlain_map_source_factory_get_type (void);
 
 ChamplainMapSourceFactory * champlain_map_source_factory_dup_default (void);
+ChamplainMapSourceFactory * champlain_map_source_factory_get_default (void) G_GNUC_DEPRECATED;
 
 GSList * champlain_map_source_factory_dup_list (ChamplainMapSourceFactory *factory);
+GSList * champlain_map_source_factory_get_list (ChamplainMapSourceFactory *factory) G_GNUC_DEPRECATED;
 
 ChamplainMapSource * champlain_map_source_factory_create (ChamplainMapSourceFactory *factory,
     const gchar *id);
index 994f269d5e68c74e83c67f556a09fa211d8621e8..1860c80652a0981ea96e8133521e917a14649d7a 100644 (file)
@@ -655,3 +655,9 @@ fill_tile (ChamplainMapSource *map_source,
   g_object_unref (cache);
 }
 
+void
+champlain_network_map_source_fill_tile (ChamplainMapSource *map_source,
+    ChamplainTile *tile)
+{
+  fill_tile (map_source, tile);
+}
index cb064226c68a78e660fd2c3677f5d4fb5b0784f9..9cce19891d99f86d558fbcf6595263a5c4f1f477 100644 (file)
@@ -72,6 +72,9 @@ 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_GNUC_DEPRECATED;
+
 G_END_DECLS
 
 #endif