summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2016-12-01 02:28:31 +0000
committerDaniel Boles <dboles@src.gnome.org>2016-12-05 18:52:07 +0000
commitd931a93588259f550954e6aa11253fc3960089c4 (patch)
treebf45fd5da98ada827f0f978ae952c711bbba8da6
parent4efdcf7714e3e81c143f95e241894bf6177c9c41 (diff)
downloadglibmm-d931a93588259f550954e6aa11253fc3960089c4.tar.gz
SettingsSchemaKey: Add missing value/range methods
https://bugzilla.gnome.org/show_bug.cgi?id=774903
-rw-r--r--gio/src/settingsschemakey.hg11
1 files changed, 6 insertions, 5 deletions
diff --git a/gio/src/settingsschemakey.hg b/gio/src/settingsschemakey.hg
index e7894d60..cf5f0da5 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