aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-03-01 12:22:01 -0600
committerTed Gould <ted@gould.cx>2012-03-01 12:22:01 -0600
commit17fe62d6ba9a44a86a250695e6e60380e2bab9c1 (patch)
tree3cd076417e6286e5cf1e8ef341ee2682e0de8050
parent3a9221c21feb1701119db5079bf3e350c0cb0aac (diff)
downloadlibdbusmenu-17fe62d6ba9a44a86a250695e6e60380e2bab9c1.tar.gz
libdbusmenu-17fe62d6ba9a44a86a250695e6e60380e2bab9c1.tar.bz2
libdbusmenu-17fe62d6ba9a44a86a250695e6e60380e2bab9c1.zip
Setting the default role to be a menu item
-rw-r--r--libdbusmenu-gtk/genericmenuitem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/genericmenuitem.c b/libdbusmenu-gtk/genericmenuitem.c
index 435c808..5d13081 100644
--- a/libdbusmenu-gtk/genericmenuitem.c
+++ b/libdbusmenu-gtk/genericmenuitem.c
@@ -83,6 +83,10 @@ genericmenuitem_class_init (GenericmenuitemClass *klass)
object_class->dispose = genericmenuitem_dispose;
object_class->finalize = genericmenuitem_finalize;
+ GtkWidgetClass * widget_class = GTK_WIDGET_CLASS(klass);
+
+ gtk_widget_class_set_accessible_role(widget_class, ATK_ROLE_MENU_ITEM);
+
GtkCheckMenuItemClass * check_class = GTK_CHECK_MENU_ITEM_CLASS (klass);
parent_draw_indicator = check_class->draw_indicator;