mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 08:20:36 +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))
|
if (GTK_IS_TOOLBAR (data))
|
||||||
obj->role = ATK_ROLE_TOOL_BAR;
|
obj->role = ATK_ROLE_TOOL_BAR;
|
||||||
else if (GTK_IS_VIEWPORT (data))
|
|
||||||
obj->role = ATK_ROLE_VIEWPORT;
|
|
||||||
else
|
else
|
||||||
obj->role = ATK_ROLE_PANEL;
|
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_width = gtk_viewport_get_preferred_width;
|
||||||
widget_class->get_preferred_height = gtk_viewport_get_preferred_height;
|
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;
|
container_class->add = gtk_viewport_add;
|
||||||
|
|
||||||
/* GtkScrollable implementation */
|
/* GtkScrollable implementation */
|
||||||
|
Loading…
Reference in New Issue
Block a user