summaryrefslogtreecommitdiff
path: root/gtk/gtkmenubar.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2011-07-18 18:14:00 +0200
committerBenjamin Otte <otte@gnome.org>2011-07-18 18:30:51 +0200
commitf2626b61835c4d556ecce260b41f1438c4cd33c3 (patch)
tree436b78561d73ab91398ab962bac171101edd189a /gtk/gtkmenubar.c
parent9c30ae02ee0319755105732b968e9f1be55e2061 (diff)
downloadgtk+-f2626b61835c4d556ecce260b41f1438c4cd33c3.tar.gz
menubar: Use gtk_widget_class_set_accessible_role()
Diffstat (limited to 'gtk/gtkmenubar.c')
-rw-r--r--gtk/gtkmenubar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmenubar.c b/gtk/gtkmenubar.c
index c54bc79244..428cf51fb7 100644
--- a/gtk/gtkmenubar.c
+++ b/gtk/gtkmenubar.c
@@ -130,6 +130,8 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
widget_class->draw = gtk_menu_bar_draw;
widget_class->hierarchy_changed = gtk_menu_bar_hierarchy_changed;
+ gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_MENU_BAR);
+
menu_shell_class->submenu_placement = GTK_TOP_BOTTOM;
menu_shell_class->get_popup_delay = gtk_menu_bar_get_popup_delay;
menu_shell_class->move_current = gtk_menu_bar_move_current;