mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
Check if the accessible is actually an AtkAction
This commit is contained in:
parent
ba6107d39a
commit
bdacdfb78b
@ -12882,6 +12882,8 @@ gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
|
|||||||
|
|
||||||
accessible = gtk_widget_get_accessible (GTK_WIDGET (buildable));
|
accessible = gtk_widget_get_accessible (GTK_WIDGET (buildable));
|
||||||
|
|
||||||
|
if (ATK_IS_ACTION (accessible))
|
||||||
|
{
|
||||||
action = ATK_ACTION (accessible);
|
action = ATK_ACTION (accessible);
|
||||||
n_actions = atk_action_get_n_actions (action);
|
n_actions = atk_action_get_n_actions (action);
|
||||||
|
|
||||||
@ -12908,6 +12910,9 @@ gtk_widget_buildable_custom_finished (GtkBuildable *buildable,
|
|||||||
atk_action_set_description (action, i, description);
|
atk_action_set_description (action, i, description);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
g_warning ("accessibility action on a widget that does not implement AtkAction");
|
||||||
|
|
||||||
g_slist_foreach (a11y_data->actions, (GFunc)free_action, NULL);
|
g_slist_foreach (a11y_data->actions, (GFunc)free_action, NULL);
|
||||||
g_slist_free (a11y_data->actions);
|
g_slist_free (a11y_data->actions);
|
||||||
|
Loading…
Reference in New Issue
Block a user