[gtk+/gtk-3-16] a11y: Only emit name-changed once
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] a11y: Only emit name-changed once
- Date: Fri, 10 Apr 2015 14:44:30 +0000 (UTC)
commit 45fb396343449661b5978fd1a5f26770a53594da
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Mar 25 04:01:48 2015 +0100
a11y: Only emit name-changed once
We were emitting it twice, once with deleting the old text, once with
inserting the new text.
https://bugzilla.gnome.org/show_bug.cgi?id=746706
gtk/a11y/gtktextcellaccessible.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gtk/a11y/gtktextcellaccessible.c b/gtk/a11y/gtktextcellaccessible.c
index 30a2121..aca9693 100644
--- a/gtk/a11y/gtktextcellaccessible.c
+++ b/gtk/a11y/gtktextcellaccessible.c
@@ -158,8 +158,6 @@ gtk_text_cell_accessible_update_cache (GtkCellAccessible *cell)
{
g_signal_emit_by_name (cell, "text-changed::delete",
0, text_cell->priv->cell_length);
- if (obj->name == NULL)
- g_object_notify (G_OBJECT (obj), "accessible-name");
}
g_free (text_cell->priv->cell_text);
@@ -170,10 +168,10 @@ gtk_text_cell_accessible_update_cache (GtkCellAccessible *cell)
{
g_signal_emit_by_name (cell, "text-changed::insert",
0, text_cell->priv->cell_length);
-
- if (obj->name == NULL)
- g_object_notify (G_OBJECT (obj), "accessible-name");
}
+
+ if (obj->name == NULL)
+ g_object_notify (G_OBJECT (obj), "accessible-name");
}
g_free (text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]