forked from AuroraMiddleware/gtk
checkbutton: Use gtk_widget_class_set_accessible_role()
This commit is contained in:
parent
0c9b046af0
commit
d5ef8448bb
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user