[glibmm/glibmm-2-54] Gio::ActionGroup, Settings: Add detail_name to some _WRAP_SIGNAL()s



commit 331da67232788150ae1ac311cd4caedca3a74b1f
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Wed Sep 13 09:01:11 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 |    9 +++++----
 gio/src/settings.hg    |    2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gio/src/actiongroup.hg b/gio/src/actiongroup.hg
index 6c064cd..2c40a16 100644
--- a/gio/src/actiongroup.hg
+++ b/gio/src/actiongroup.hg
@@ -134,13 +134,14 @@ 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")
+  //TODO: Remove two_signal_methods when we can break ABI.
+  _WRAP_SIGNAL(void action_added(const Glib::ustring& action_name), "action-added", detail_name action_name, 
two_signal_methods)
+  _WRAP_SIGNAL(void action_enabled_changed(const Glib::ustring& action_name, bool enabled), 
"action-enabled-changed", detail_name action_name, two_signal_methods)
+  _WRAP_SIGNAL(void action_removed(const Glib::ustring& action_name), "action-removed", detail_name 
action_name, two_signal_methods)
 
 #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, two_signal_methods)
 
   _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 ad6a605..029eb6a 100644
--- a/gio/src/settings.hg
+++ b/gio/src/settings.hg
@@ -219,7 +219,7 @@ _DEPRECATE_IFDEF_END
   _WRAP_SIGNAL(void changed(const Glib::ustring& key), "changed", detail_name key, two_signal_methods)
 
   _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, 
two_signal_methods)
 };
 
 } // namespace Gio


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