mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 00:11:29 +00:00
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:
parent
c66d165676
commit
1ed9d33d24
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user