diff options
author | Benjamin Otte <otte@redhat.com> | 2013-02-26 16:17:33 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2013-02-26 16:17:33 +0100 |
commit | ce0675f1fb2582717793ec29b1787039dfbf8437 (patch) | |
tree | c5dd9cc9973e2ee63f6f41cf449ea2166613a261 | |
parent | 46ef9a83bb2a647330acaabef02449f55a3cc178 (diff) | |
download | gtk+-ce0675f1fb2582717793ec29b1787039dfbf8437.tar.gz |
a11y: Emit text-changed signals when the text-buffer changes
-rw-r--r-- | gtk/a11y/gtktextviewaccessible.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/a11y/gtktextviewaccessible.c b/gtk/a11y/gtktextviewaccessible.c index 9e59b8f1a1..ca07161d22 100644 --- a/gtk/a11y/gtktextviewaccessible.c +++ b/gtk/a11y/gtktextviewaccessible.c @@ -117,6 +117,11 @@ gtk_text_view_accessible_change_buffer (GtkTextViewAccessible *accessible, if (old_buffer) { g_signal_handlers_disconnect_matched (old_buffer, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, accessible); + + g_signal_emit_by_name (accessible, + "text-changed::delete", + 0, + gtk_text_buffer_get_char_count (old_buffer)); } if (new_buffer) @@ -124,6 +129,11 @@ gtk_text_view_accessible_change_buffer (GtkTextViewAccessible *accessible, g_signal_connect_after (new_buffer, "insert-text", G_CALLBACK (insert_text_cb), accessible); g_signal_connect (new_buffer, "delete-range", G_CALLBACK (delete_range_cb), accessible); g_signal_connect_after (new_buffer, "mark-set", G_CALLBACK (mark_set_cb), accessible); + + g_signal_emit_by_name (accessible, + "text-changed::insert", + 0, + gtk_text_buffer_get_char_count (new_buffer)); } } |