Merge branch 'michaelweghorn/gtk-3-24_port_from_deprecated_focus_event' into 'gtk-3-24'

a11y: Port from deprecated atk_focus_tracker_notify

See merge request GNOME/gtk!7239
This commit is contained in:
Matthias Clasen 2024-05-13 13:21:08 +00:00
commit 8990eb4177

View File

@ -525,11 +525,9 @@ gail_focus_notify (GtkWidget *widget)
/*
* Do not report focus on redundant object
*/
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
if (atk_obj &&
(atk_object_get_role(atk_obj) != ATK_ROLE_REDUNDANT_OBJECT))
atk_focus_tracker_notify (atk_obj);
G_GNUC_END_IGNORE_DEPRECATIONS;
atk_object_notify_state_change (atk_obj, ATK_STATE_FOCUSED, TRUE);
if (atk_obj && transient)
g_object_unref (atk_obj);
if (subsequent_focus_widget)