[atkmm] Object, Text: Add detail_name to some _WRAP_SIGNAL()s
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atkmm] Object, Text: Add detail_name to some _WRAP_SIGNAL()s
- Date: Thu, 14 Sep 2017 11:24:17 +0000 (UTC)
commit ace4ccbae6af5c4c0bb199f3d04220d44e061fc0
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Sep 14 13:20:26 2017 +0200
Object, Text: Add detail_name to some _WRAP_SIGNAL()s
* atk/src/object.hg: signal_children_changed() accepts an "add" or "remove"
detail. signal_property_changed() accepts a property_name parameter.
signal_state_change() accepts a state_name parameter.
* atk/src/text.hg: signal_text_changed() accepts an "insert" or "delete"
detail.
atk/src/object.hg | 10 +++++-----
atk/src/text.hg | 5 +++--
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/atk/src/object.hg b/atk/src/object.hg
index ea018f2..4403a2c 100644
--- a/atk/src/object.hg
+++ b/atk/src/object.hg
@@ -1,5 +1,3 @@
-/* $Id: object.hg,v 1.5 2004/11/30 21:41:44 murrayc Exp $ */
-
/* Copyright (C) 1998-2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
@@ -80,14 +78,16 @@ public:
_WRAP_METHOD(bool add_relationship(Relation::Type relationship, const Glib::RefPtr<Object>& target),
atk_object_add_relationship)
_WRAP_METHOD(bool remove_relationship(Relation::Type relationship, const Glib::RefPtr<Object>& target),
atk_object_remove_relationship)
- _WRAP_SIGNAL(void children_changed(guint change_index, gpointer changed_child), "children_changed")
+ _WRAP_SIGNAL(void children_changed(guint change_index, gpointer changed_child), "children_changed",
detail_name add_or_remove)
_WRAP_SIGNAL(void focus_event(bool focus_in), "focus_event")
- _WRAP_SIGNAL(void property_change(AtkPropertyValues* values), "property_change")
+ _WRAP_SIGNAL(void property_change(AtkPropertyValues* values), "property_change", detail_name property_name)
#m4 _CONVERSION(`const char*',`const Glib::ustring&',__GCHARP_TO_USTRING)
- _WRAP_SIGNAL(void state_change(const Glib::ustring& name, bool state_set), "state_change")
+ _WRAP_SIGNAL(void state_change(const Glib::ustring& name, bool state_set), "state_change", detail_name
state_name)
_WRAP_SIGNAL(void visible_data_changed(), "visible_data_changed")
+ // AtkObject::active-descendant-changed supports a ::detail signal name, but it's
+ // not clear what that detail means, and it's not used in gtk+.
_WRAP_SIGNAL(void active_descendant_changed(void** child), "active_descendant_changed")
_WRAP_PROPERTY("accessible-name", Glib::ustring)
diff --git a/atk/src/text.hg b/atk/src/text.hg
index 357fa32..d7bf29b 100644
--- a/atk/src/text.hg
+++ b/atk/src/text.hg
@@ -162,8 +162,9 @@ public:
_WRAP_METHOD(AtkTextRange** get_bounded_ranges(const Rectangle& rect, CoordType coord_type,
ClipType x_clip_type, ClipType y_clip_type),
atk_text_get_bounded_ranges)
-
- _WRAP_SIGNAL(void text_changed(int position, int length), "text_changed")
+ // AtkObject::text-changed is deprecated in favor of text-insert and text-remove,
+ // but gtk+ still emits text-changed. /Kjell 2017-09-14
+ _WRAP_SIGNAL(void text_changed(int position, int length), "text_changed", detail_name insert_or_delete)
_WRAP_SIGNAL(void text_caret_moved(int location), "text_caret_moved")
_WRAP_SIGNAL(void text_selection_changed(), "text_selection_changed")
_WRAP_SIGNAL(void text_attributes_changed(), "text_attributes_changed")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]