[libchamplainmm] TileSource: Wrap champlain_tile_source_set_cache



commit 014ac5d3c7f32c395bc7598d4dcfd42d10acc081
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Tue Aug 12 18:34:05 2014 +0200

    TileSource: Wrap champlain_tile_source_set_cache
    
        * champlain/src/tile-source.hg: Add
        champlain_tile_source_set_cache.
        * tools/m4/convert_libchamplain.m4: Add conversion from
        'const Glib::RefPtr<TileCache>&' to 'ChamplainTileCache*'.

 champlain/src/tile-source.hg     |    1 +
 tools/m4/convert_libchamplain.m4 |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/champlain/src/tile-source.hg b/champlain/src/tile-source.hg
index d3a458f..a28faac 100644
--- a/champlain/src/tile-source.hg
+++ b/champlain/src/tile-source.hg
@@ -41,6 +41,7 @@ protected:
 public:
   _WRAP_METHOD(Glib::RefPtr<TileCache> get_cache(), champlain_tile_source_get_cache)
   _WRAP_METHOD(Glib::RefPtr<const TileCache> get_cache() const, champlain_tile_source_get_cache, 
constversion)
+  _WRAP_METHOD(void set_cache(const Glib::RefPtr<TileCache>& cache), champlain_tile_source_set_cache)
 
   _WRAP_METHOD(void set_id(const std::string& id), champlain_tile_source_set_id)
   _WRAP_METHOD(void set_name(const Glib::ustring& name), champlain_tile_source_set_name)
diff --git a/tools/m4/convert_libchamplain.m4 b/tools/m4/convert_libchamplain.m4
index 717dc09..ce76819 100644
--- a/tools/m4/convert_libchamplain.m4
+++ b/tools/m4/convert_libchamplain.m4
@@ -73,6 +73,7 @@ _CONVERSION(`ChamplainTile*',`Glib::RefPtr<const Tile>',`Glib::wrap($3)')
 _CONVERSION(`const Glib::RefPtr<Tile>&',`ChamplainTile*',__CONVERT_REFPTR_TO_P($3))
 
 # TileCache
+_CONVERSION(`const Glib::RefPtr<TileCache>&',`ChamplainTileCache*',__CONVERT_REFPTR_TO_P)
 _CONVERSION(`ChamplainTileCache*',`Glib::RefPtr<TileCache>',`Glib::wrap($3)')
 
 # View


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