forked from AuroraMiddleware/gtk
a11y: Ignore deprecation warnings for ATK focus tracker
This commit is contained in:
parent
8a71798c05
commit
43baa213b2
@ -524,9 +524,11 @@ 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;
|
||||
if (atk_obj && transient)
|
||||
g_object_unref (atk_obj);
|
||||
if (subsequent_focus_widget)
|
||||
@ -976,8 +978,10 @@ _gtk_accessibility_init (void)
|
||||
initialized = TRUE;
|
||||
quark_focus_object = g_quark_from_static_string ("gail-focus-object");
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
atk_focus_tracker_init (gail_focus_tracker_init);
|
||||
focus_tracker_id = atk_add_focus_tracker (gail_focus_tracker);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
|
||||
_gtk_accessibility_override_atk_util ();
|
||||
do_window_event_initialization ();
|
||||
|
@ -3282,7 +3282,9 @@ _gtk_icon_view_set_cursor_item (GtkIconView *icon_view,
|
||||
|
||||
if (item_obj != NULL)
|
||||
{
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
atk_focus_tracker_notify (item_obj);
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
atk_object_notify_state_change (item_obj, ATK_STATE_FOCUSED, TRUE);
|
||||
g_object_unref (item_obj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user