viewport: Use gtk_widget_class_set_accessible_role()

This commit is contained in:
Benjamin Otte 2011-07-18 18:11:10 +02:00
parent d9bfa563d0
commit 96245d4efb
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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 */