Commit d5ef8448 authored by Benjamin Otte's avatar Benjamin Otte

checkbutton: Use gtk_widget_class_set_accessible_role()

parent 0c9b046a
......@@ -48,10 +48,7 @@ gtk_toggle_button_accessible_initialize (AtkObject *obj,
g_signal_connect (data, "toggled",
G_CALLBACK (gtk_toggle_button_accessible_toggled), NULL);
if (GTK_IS_CHECK_BUTTON (data))
obj->role = ATK_ROLE_CHECK_BOX;
else
obj->role = ATK_ROLE_TOGGLE_BUTTON;
obj->role = ATK_ROLE_TOGGLE_BUTTON;
}
static void
......
......@@ -87,6 +87,8 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
class->draw_indicator = gtk_real_check_button_draw_indicator;
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_CHECK_BOX);
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("indicator-size",
P_("Indicator Size"),
......
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