mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
plug: Use gtk_widget_class_set_accessible_role()
This commit is contained in:
parent
27f96820c8
commit
480b5862d4
@ -114,10 +114,6 @@ gtk_window_accessible_initialize (AtkObject *obj,
|
||||
|
||||
if (!g_strcmp0 (name, "gtk-tooltip"))
|
||||
obj->role = ATK_ROLE_TOOL_TIP;
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
else if (GTK_IS_PLUG (widget))
|
||||
obj->role = ATK_ROLE_PANEL;
|
||||
#endif
|
||||
else if (gtk_window_get_window_type (GTK_WINDOW (widget)) == GTK_WINDOW_POPUP)
|
||||
obj->role = ATK_ROLE_WINDOW;
|
||||
else
|
||||
|
@ -183,6 +183,8 @@ gtk_plug_class_init (GtkPlugClass *class)
|
||||
|
||||
widget_class->focus = gtk_plug_focus;
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL);
|
||||
|
||||
container_class->check_resize = gtk_plug_check_resize;
|
||||
|
||||
window_class->set_focus = gtk_plug_set_focus;
|
||||
|
Loading…
Reference in New Issue
Block a user