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
This commit is contained in:
Joanmarie Diggs 2015-03-25 04:01:48 +01:00 committed by Benjamin Otte
parent c66d165676
commit 1ed9d33d24

View File

@ -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);