Commit b61a2000 authored by Benjamin Otte's avatar Benjamin Otte

separatormenuitem: Use gtk_widget_class_accessible_set_role()

parent 094785bd
......@@ -39,23 +39,12 @@
G_DEFINE_TYPE (GtkSeparatorMenuItem, gtk_separator_menu_item, GTK_TYPE_MENU_ITEM)
static AtkObject *
gtk_separator_menu_item_get_accessible (GtkWidget *widget)
{
AtkObject *obj;
obj = GTK_WIDGET_CLASS (gtk_separator_menu_item_parent_class)->get_accessible (widget);
atk_object_set_role (obj, ATK_ROLE_SEPARATOR);
return obj;
}
static void
gtk_separator_menu_item_class_init (GtkSeparatorMenuItemClass *class)
{
GTK_CONTAINER_CLASS (class)->child_type = NULL;
GTK_WIDGET_CLASS (class)->get_accessible = gtk_separator_menu_item_get_accessible;
gtk_widget_class_set_accessible_role (GTK_WIDGET_CLASS (class), ATK_ROLE_SEPARATOR);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment