[glibmm] Variant: Added some methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Variant: Added some methods.
- Date: Thu, 29 Jul 2010 14:14:07 +0000 (UTC)
commit 7fa6966f8fce1f9240be2664bf80c0d165ae7b66
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jul 29 16:10:53 2010 +0200
Variant: Added some methods.
* glib/src/variant.hg: Added some methods.
ChangeLog | 8 +++++++-
glib/src/variant.hg | 5 +++++
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9a49e03..3bb31a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
2010-07-29 Murray Cumming <murrayc murrayc com>
- VariantType
+ Variant: Added some methods.
+
+ * glib/src/variant.hg: Added some methods.
+
+2010-07-29 Murray Cumming <murrayc murrayc com>
+
+ VariantType: Added create_*() methods.
* glib/src/glib_functions.defs: Regenerated, manually changing some
define-method lines to define-function lines.
diff --git a/glib/src/variant.hg b/glib/src/variant.hg
index e04f52a..c0d5219 100644
--- a/glib/src/variant.hg
+++ b/glib/src/variant.hg
@@ -18,6 +18,7 @@
_DEFS(glibmm,glib)
#include <glibmmconfig.h>
+#include <glibmm/varianttype.h>
#include <glibmm/ustring.h>
namespace Glib
@@ -52,6 +53,10 @@ public:
*/
void init(const GVariant* cobject, bool take_a_reference = false);
+ _WRAP_METHOD(VariantType get_type() const, g_variant_get_type)
+ _WRAP_METHOD(std::string get_type_string() const, g_variant_get_type_string)
+ _WRAP_METHOD(bool is_floating() const, g_variant_is_floating)
+ _WRAP_METHOD(bool is_of_type(const VariantType& type) const, g_variant_is_of_type)
_WRAP_METHOD(bool is_container() const, g_variant_is_container)
_WRAP_METHOD(GVariantClass classify() const, g_variant_classify)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]