[glibmm] SettingsSchemaKey: Add missing value/range methods



commit d931a93588259f550954e6aa11253fc3960089c4
Author: Daniel Boles <dboles src gnome org>
Date:   Thu Dec 1 02:28:31 2016 +0000

    SettingsSchemaKey: Add missing value/range methods
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774903

 gio/src/settingsschemakey.hg |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gio/src/settingsschemakey.hg b/gio/src/settingsschemakey.hg
index e7894d6..cf5f0da 100644
--- a/gio/src/settingsschemakey.hg
+++ b/gio/src/settingsschemakey.hg
@@ -18,6 +18,7 @@
 _CONFIGINCLUDE(giommconfig.h)
 
 #include <glibmm/variant.h>
+#include <glibmm/varianttype.h>
 
 _DEFS(giomm,gio)
 _PINCLUDE(glibmm/private/object_p.h)
@@ -50,14 +51,14 @@ protected:
     g_settings_schema_key_from_flags)
 
 public:
-  //TODO: _WRAP_METHOD(const GVariantType *    g_settings_schema_key_get_value_type           (), 
g_settings_schema_key_get_value_type)
-  //_WRAP_METHOD(GVariant *              g_settings_schema_key_get_default_value        (), 
g_settings_schema_key_get_default_value)
-  //_WRAP_METHOD(GVariant *              g_settings_schema_key_get_range                (), 
g_settings_schema_key_get_range)
-  //TODO: _WRAP_METHOD(bool range_check(GVariant               *value), g_settings_schema_key_range_check)
-
   _WRAP_METHOD(Glib::ustring get_name() const, g_settings_schema_key_get_name)
   _WRAP_METHOD(Glib::ustring get_summary() const, g_settings_schema_key_get_summary)
   _WRAP_METHOD(Glib::ustring get_description() const, g_settings_schema_key_get_description)
+
+  _WRAP_METHOD(Glib::VariantType get_value_type() const, g_settings_schema_key_get_value_type)
+  _WRAP_METHOD(Glib::VariantBase get_default_value() const, g_settings_schema_key_get_default_value)
+  _WRAP_METHOD(Glib::VariantBase get_range() const, g_settings_schema_key_get_range)
+  _WRAP_METHOD(bool range_check(const Glib::VariantBase& value) const, g_settings_schema_key_range_check)
 };
 
 } // namespace Gio


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