[gtkmm/gtkmm-3-24] Gtk: Add detail_name to some _WRAP_SIGNAL()s
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-3-24] Gtk: Add detail_name to some _WRAP_SIGNAL()s
- Date: Wed, 12 Sep 2018 11:56:19 +0000 (UTC)
commit fa91100eede7f68bad150d1a77d41652a5e0599e
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Sat Sep 8 09:56:44 2018 +0200
Gtk: Add detail_name to some _WRAP_SIGNAL()s
* gtk/src/accelgroup.hg: Add detail_name to signal_accel_changed().
Deprecate signal_accel_activate(), which should never have been wrapped.
* gtk/src/appchooserbutton.hg: signal_custom_item_activated().
* gtk/src/levelbar.hg: signal_offset_changed().
* gtk/src/widget.hg: signal_child_notify().
gtk/src/accelgroup.hg | 6 ++++--
gtk/src/appchooserbutton.hg | 3 ++-
gtk/src/levelbar.hg | 3 ++-
gtk/src/widget.hg | 3 ++-
4 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/gtk/src/accelgroup.hg b/gtk/src/accelgroup.hg
index 20cd6567..7d9ec064 100644
--- a/gtk/src/accelgroup.hg
+++ b/gtk/src/accelgroup.hg
@@ -108,11 +108,13 @@ public:
//TODO: _WRAP_METHOD(static bool activate(Object& object, guint accel_key, Gdk::ModifierType accel_mods),
gtk_accel_groups_activate)
#m4 _CONVERSION(`GObject*',`const Glib::RefPtr<Glib::Object>&',`Glib::wrap($3, true)')
- _WRAP_SIGNAL(bool accel_activate(const Glib::RefPtr<Glib::Object>& acceleratable, guint keyval,
Gdk::ModifierType modifier), "accel_activate", no_default_handler)
+ _WRAP_SIGNAL(bool accel_activate(const Glib::RefPtr<Glib::Object>& acceleratable, guint keyval,
Gdk::ModifierType modifier), "accel_activate", no_default_handler,
+ deprecated "This signal is not meant to be used by applications.")
//TODO: The C type is unpleasant:
//This has C docs, but it isn't worth mentioning them for such a useless signal. murrayc.
- _WRAP_SIGNAL(void accel_changed(guint keyval, Gdk::ModifierType modifier, GClosure* accel_closure),
"accel_changed", no_default_handler)
+ _WRAP_SIGNAL(void accel_changed(guint keyval, Gdk::ModifierType modifier, GClosure* accel_closure),
"accel_changed", no_default_handler,
+ detail_name accel_name, two_signal_methods)
_WRAP_PROPERTY("is-locked", bool)
_WRAP_PROPERTY("modifier-mask", Gdk::ModifierType)
diff --git a/gtk/src/appchooserbutton.hg b/gtk/src/appchooserbutton.hg
index d6a50854..9c45785e 100644
--- a/gtk/src/appchooserbutton.hg
+++ b/gtk/src/appchooserbutton.hg
@@ -80,7 +80,8 @@ public:
_WRAP_METHOD(bool get_show_default_item() const, gtk_app_chooser_button_get_show_default_item)
- _WRAP_SIGNAL(void custom_item_activated(const Glib::ustring& item_name), "custom-item-activated")
+ _WRAP_SIGNAL(void custom_item_activated(const Glib::ustring& item_name), "custom-item-activated",
+ detail_name custom_item_name, two_signal_methods)
_WRAP_PROPERTY("show-dialog-item", bool)
_WRAP_PROPERTY("heading", Glib::ustring)
diff --git a/gtk/src/levelbar.hg b/gtk/src/levelbar.hg
index c655296c..eaf7965c 100644
--- a/gtk/src/levelbar.hg
+++ b/gtk/src/levelbar.hg
@@ -93,7 +93,8 @@ public:
_WRAP_METHOD(void remove_offset_value(const Glib::ustring& name), gtk_level_bar_remove_offset_value)
_WRAP_METHOD(bool get_offset_value(const Glib::ustring& name, double& value) const,
gtk_level_bar_get_offset_value)
- _WRAP_SIGNAL(void offset_changed(const Glib::ustring& name), offset_changed)
+ _WRAP_SIGNAL(void offset_changed(const Glib::ustring& name), offset_changed,
+ detail_name offset_name, two_signal_methods)
_WRAP_PROPERTY("value", double)
_WRAP_PROPERTY("min-value", double)
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 6d558271..d2df2243 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -762,7 +762,8 @@ _DEPRECATE_IFDEF_END
_WRAP_SIGNAL(void grab_notify(bool was_grabbed), "grab_notify")
- _WRAP_SIGNAL(void child_notify(GParamSpec* pspec), "child_notify")
+ _WRAP_SIGNAL(void child_notify(GParamSpec* pspec), "child_notify",
+ detail_name child_property_name, two_signal_methods)
_WRAP_SIGNAL(bool mnemonic_activate(bool group_cycling), "mnemonic_activate")
_WRAP_SIGNAL(void grab_focus(), "grab_focus")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]