atktext: adding again details to 'text-insert/remove'. Document it.
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 3 Feb 2014 12:44:08 +0000 (13:44 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 3 Feb 2014 12:57:55 +0000 (13:57 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=653293

atk/atktext.c

index a8f44d5..cdbc1ed 100755 (executable)
@@ -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,