[atk] atktext: adding again details to 'text-insert/remove'. Document it.



commit 17b2c9bc896a9f0e6226baa666edd4843c9c7e64
Author: Alejandro Piñeiro <apinheiro igalia com>
Date:   Mon Feb 3 13:44:08 2014 +0100

    atktext: adding again details to 'text-insert/remove'. Document it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=653293

 atk/atktext.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/atk/atktext.c b/atk/atktext.c
index a8f44d5..cdbc1ed 100755
--- a/atk/atktext.c
+++ b/atk/atktext.c
@@ -220,12 +220,14 @@ atk_text_base_init (AtkTextIface *class)
        * @arg3: The new text inserted
        *
        * The "text-insert" signal is emitted when a new text is
-       * inserted.
+       * inserted. If the signal was not triggered by the user
+       * (e.g. typing or pasting text), the "system" detail should be
+       * included.
        */
       atk_text_signals[TEXT_INSERT] =
        g_signal_new ("text_insert",
                      ATK_TYPE_TEXT,
-                     G_SIGNAL_RUN_LAST,
+                     G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
                      0,
                      (GSignalAccumulator) NULL, NULL,
                      atk_marshal_VOID__INT_INT_STRING,
@@ -240,12 +242,14 @@ atk_text_base_init (AtkTextIface *class)
        * @arg3: The old text removed
        *
        * The "text-remove" signal is emitted when a new text is
-       * removed.
+       * removed. If the signal was not triggered by the user
+       * (e.g. typing or pasting text), the "system" detail should be
+       * included.
        */
       atk_text_signals[TEXT_REMOVE] =
        g_signal_new ("text_remove",
                      ATK_TYPE_TEXT,
-                     G_SIGNAL_RUN_LAST,
+                     G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED,
                      0,
                      (GSignalAccumulator) NULL, NULL,
                      atk_marshal_VOID__INT_INT_STRING,


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