[libchamplainmm] MapSource: Add conversion to make vfuncs work
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplainmm] MapSource: Add conversion to make vfuncs work
- Date: Tue, 10 Jun 2014 18:50:32 +0000 (UTC)
commit bfbf2f4fee37e7e0a5b22d297ae236bebd4c5adb
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Tue Jun 10 20:49:38 2014 +0200
MapSource: Add conversion to make vfuncs work
The conversion has been taken from gtkmm/actionable.hg.
champlain/src/map-source.hg | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/champlain/src/map-source.hg b/champlain/src/map-source.hg
index 39a4da3..b3f8ff7 100644
--- a/champlain/src/map-source.hg
+++ b/champlain/src/map-source.hg
@@ -72,9 +72,10 @@ class MapSource : public Glib::Object
protected:
_WRAP_VFUNC(std::string get_id() const, get_id)
-// _WRAP_VFUNC(Glib::ustring get_name() const, get_name)
-// _WRAP_VFUNC(Glib::ustring get_license() const, get_license)
-// _WRAP_VFUNC(Glib::ustring get_license_uri() const, get_license_uri)
+#m4 _CONVERSION(`Glib::ustring',`const gchar*',`g_strdup($3.c_str())')
+ _WRAP_VFUNC(Glib::ustring get_name() const, get_name)
+ _WRAP_VFUNC(Glib::ustring get_license() const, get_license)
+ _WRAP_VFUNC(Glib::ustring get_license_uri() const, get_license_uri)
_WRAP_VFUNC(guint get_min_zoom_level() const, get_min_zoom_level)
_WRAP_VFUNC(guint get_max_zoom_level() const, get_max_zoom_level)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]