[glibmm/glibmm-2-50] Gio::Settings: Make set_enum() + set_flags() usable
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-50] Gio::Settings: Make set_enum() + set_flags() usable
- Date: Wed, 30 Nov 2016 16:33:21 +0000 (UTC)
commit 47260efc771b4ee3556116a6a8871d30ff43361f
Author: djb <db0451 gmail com>
Date: Wed Nov 30 17:17:33 2016 +0100
Gio::Settings: Make set_enum() + set_flags() usable
The _WRAP_METHOD calls had the names typo'd as get_enum() + get_flags().
Keep and deprecate the misnamed methods.
https://bugzilla.gnome.org/show_bug.cgi?id=774647
gio/src/settings.hg | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gio/src/settings.hg b/gio/src/settings.hg
index dbdbf20..24fd10b 100644
--- a/gio/src/settings.hg
+++ b/gio/src/settings.hg
@@ -152,10 +152,14 @@ public:
_WRAP_METHOD(bool set_string_array(const Glib::ustring& key, const Glib::StringArrayHandle& value),
g_settings_set_strv)
- _WRAP_METHOD(int get_enum(const Glib::ustring& key) const, g_settings_get_enum )
- _WRAP_METHOD(bool get_enum(const Glib::ustring& key, int value), g_settings_set_enum)
+ _WRAP_METHOD(int get_enum(const Glib::ustring& key) const, g_settings_get_enum)
+ _WRAP_METHOD(bool get_enum(const Glib::ustring& key, int value), g_settings_set_enum,
+ deprecated "This method is misnamed. Use set_enum() instead.")
+ _WRAP_METHOD(bool set_enum(const Glib::ustring& key, int value), g_settings_set_enum)
_WRAP_METHOD(guint get_flags(const Glib::ustring& key) const, g_settings_get_flags)
- _WRAP_METHOD(bool get_flags(const Glib::ustring& key, guint value), g_settings_set_flags)
+ _WRAP_METHOD(bool get_flags(const Glib::ustring& key, guint value), g_settings_set_flags,
+ deprecated "This method is misnamed. Use set_flags() instead.")
+ _WRAP_METHOD(bool set_flags(const Glib::ustring& key, guint value), g_settings_set_flags)
// Ignore varargs functions.
_IGNORE(g_settings_get, g_settings_set)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]