mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
viewport: Use gtk_widget_class_set_accessible_role()
This commit is contained in:
parent
d9bfa563d0
commit
96245d4efb
@ -166,8 +166,6 @@ gtk_container_accessible_real_initialize (AtkObject *obj,
|
||||
|
||||
if (GTK_IS_TOOLBAR (data))
|
||||
obj->role = ATK_ROLE_TOOL_BAR;
|
||||
else if (GTK_IS_VIEWPORT (data))
|
||||
obj->role = ATK_ROLE_VIEWPORT;
|
||||
else
|
||||
obj->role = ATK_ROLE_PANEL;
|
||||
}
|
||||
|
@ -139,6 +139,8 @@ gtk_viewport_class_init (GtkViewportClass *class)
|
||||
widget_class->get_preferred_width = gtk_viewport_get_preferred_width;
|
||||
widget_class->get_preferred_height = gtk_viewport_get_preferred_height;
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_VIEWPORT);
|
||||
|
||||
container_class->add = gtk_viewport_add;
|
||||
|
||||
/* GtkScrollable implementation */
|
||||
|
Loading…
Reference in New Issue
Block a user