[glibmm] Gio::ActionGroup, Settings: Add detail_name to some _WRAP_SIGNAL()s
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::ActionGroup, Settings: Add detail_name to some _WRAP_SIGNAL()s
- Date: Tue, 12 Sep 2017 14:56:49 +0000 (UTC)
commit d69d1bb407d420e8c3c3f52c520c8bc889dc31cf
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Tue Sep 12 16:54:57 2017 +0200
Gio::ActionGroup, Settings: Add detail_name to some _WRAP_SIGNAL()s
* gio/src/actiongroup.hg: signal_action_added(), signal_action_removed(),
signal_action_enabled_changed() and signal_action_state_changed() accept
an 'action_name' parameter.
* gio/src/settings.hg: signal_writable_changed() accepts a 'key' parameter.
gio/src/actiongroup.hg | 8 ++++----
gio/src/settings.hg | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gio/src/actiongroup.hg b/gio/src/actiongroup.hg
index 1e18811..de43abf 100644
--- a/gio/src/actiongroup.hg
+++ b/gio/src/actiongroup.hg
@@ -128,13 +128,13 @@ public:
//TODO: Add templated method, renaming this to action_state_changed_variant).
_WRAP_METHOD(void action_state_changed (const Glib::ustring& action_name, const Glib::VariantBase& state),
g_action_group_action_state_changed)
- _WRAP_SIGNAL(void action_added(const Glib::ustring& action_name), "action-added")
- _WRAP_SIGNAL(void action_enabled_changed(const Glib::ustring& action_name, bool enabled),
"action-enabled-changed")
- _WRAP_SIGNAL(void action_removed(const Glib::ustring& action_name), "action-removed")
+ _WRAP_SIGNAL(void action_added(const Glib::ustring& action_name), "action-added", detail_name action_name)
+ _WRAP_SIGNAL(void action_enabled_changed(const Glib::ustring& action_name, bool enabled),
"action-enabled-changed", detail_name action_name)
+ _WRAP_SIGNAL(void action_removed(const Glib::ustring& action_name), "action-removed", detail_name
action_name)
#m4 _CONVERSION(`GVariant*', `const Glib::VariantBase&', `Glib::wrap($3, true)')
- _WRAP_SIGNAL(void action_state_changed(const Glib::ustring& action_name, const Glib::VariantBase& value),
"action-state-changed")
+ _WRAP_SIGNAL(void action_state_changed(const Glib::ustring& action_name, const Glib::VariantBase& value),
"action-state-changed", detail_name action_name)
_WRAP_VFUNC(bool has_action(const Glib::ustring& name) const, "has_action")
diff --git a/gio/src/settings.hg b/gio/src/settings.hg
index 65ecbe4..e7f0148 100644
--- a/gio/src/settings.hg
+++ b/gio/src/settings.hg
@@ -206,7 +206,7 @@ public:
_WRAP_SIGNAL(void changed(const Glib::ustring& key), "changed", detail_name key)
_WRAP_SIGNAL(bool writable_change_event(GQuark key), "writable-change-event")
- _WRAP_SIGNAL(void writable_changed(const Glib::ustring& key), writable_changed)
+ _WRAP_SIGNAL(void writable_changed(const Glib::ustring& key), writable_changed, detail_name key)
};
} // namespace Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]