Commit 480b5862 authored by Benjamin Otte's avatar Benjamin Otte

plug: Use gtk_widget_class_set_accessible_role()

parent 27f96820
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment