[glibmm/gmmproc-refactor] Fix g_variant_type_peek_string() wrapper.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/gmmproc-refactor] Fix g_variant_type_peek_string() wrapper.
- Date: Sun, 22 Jul 2012 18:16:00 +0000 (UTC)
commit 44d03145e52dc725fac4522c5d5e59f5562493bd
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Sun Jul 22 16:09:46 2012 +0200
Fix g_variant_type_peek_string() wrapper.
glib/src/varianttype.hg | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/src/varianttype.hg b/glib/src/varianttype.hg
index 6e37b20..0843a5c 100644
--- a/glib/src/varianttype.hg
+++ b/glib/src/varianttype.hg
@@ -119,7 +119,9 @@ public:
//TODO: Use something instead of gsize?
_WRAP_METHOD(gsize _get_string_length() const, g_variant_type_get_string_length)
+ _PUSH_NAMED_CONV(non_cstring_to_stdstring, const gchar*, std::string, std::string(##ARG##, g_variant_type_get_string_length(gobj())), NONE, NONE)
_WRAP_METHOD(std::string get_string() const, g_variant_type_peek_string)
+ _POP_NAMED_CONV(non_cstring_to_stdstring)
_IGNORE(g_variant_type_dup_string)
_WRAP_METHOD(bool is_definite() const, g_variant_type_is_definite)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]