checkbutton: Use gtk_widget_class_set_accessible_role()

This commit is contained in:
Benjamin Otte 2011-07-18 18:18:05 +02:00
parent 0c9b046af0
commit d5ef8448bb
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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"),