summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2011-07-18 18:11:10 +0200
committerBenjamin Otte <otte@gnome.org>2011-07-18 18:30:50 +0200
commit96245d4efb7c0b1dfbd9e7673fe4f4c4b6efb2e6 (patch)
tree2ef4315c857831316f94efc817e4e5cfd7fa7f40 /gtk/gtkviewport.c
parentd9bfa563d0c38101adc05c453b2663b7ed453ec7 (diff)
downloadgtk+-96245d4efb7c0b1dfbd9e7673fe4f4c4b6efb2e6.tar.gz
viewport: Use gtk_widget_class_set_accessible_role()
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 6d313d95cb..7319841030 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -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 */