forked from AuroraMiddleware/gtk
tearoffmenuitem: Use gtk_widget_class_set_accessible_role()
This commit is contained in:
parent
480b5862d4
commit
d9bfa563d0
@ -65,9 +65,6 @@ gtk_menu_item_accessible_initialize (AtkObject *obj,
|
||||
|
||||
GTK_WIDGET_ACCESSIBLE (obj)->layer = ATK_LAYER_POPUP;
|
||||
|
||||
if (GTK_IS_TEAROFF_MENU_ITEM (data))
|
||||
obj->role = ATK_ROLE_TEAR_OFF_MENU_ITEM;
|
||||
else
|
||||
obj->role = ATK_ROLE_MENU_ITEM;
|
||||
}
|
||||
|
||||
|
@ -103,6 +103,8 @@ gtk_tearoff_menu_item_class_init (GtkTearoffMenuItemClass *klass)
|
||||
widget_class->get_preferred_height = gtk_tearoff_menu_item_get_preferred_height;
|
||||
widget_class->parent_set = gtk_tearoff_menu_item_parent_set;
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_TEAR_OFF_MENU_ITEM);
|
||||
|
||||
menu_item_class->activate = gtk_tearoff_menu_item_activate;
|
||||
|
||||
g_type_class_add_private (klass, sizeof (GtkTearoffMenuItemPrivate));
|
||||
|
Loading…
Reference in New Issue
Block a user