forked from AuroraMiddleware/gtk
accellabel: Use gtk_widget_class_set_accessible_role()
This commit is contained in:
parent
f2626b6183
commit
0c9b046af0
@ -63,10 +63,7 @@ gtk_label_accessible_initialize (AtkObject *obj,
|
||||
}
|
||||
}
|
||||
|
||||
if (GTK_IS_ACCEL_LABEL (widget))
|
||||
obj->role = ATK_ROLE_ACCEL_LABEL;
|
||||
else
|
||||
obj->role = ATK_ROLE_LABEL;
|
||||
obj->role = ATK_ROLE_LABEL;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -144,6 +144,8 @@ gtk_accel_label_class_init (GtkAccelLabelClass *class)
|
||||
widget_class->get_preferred_width = gtk_accel_label_get_preferred_width;
|
||||
widget_class->destroy = gtk_accel_label_destroy;
|
||||
|
||||
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_ACCEL_LABEL);
|
||||
|
||||
class->signal_quote1 = g_strdup ("<:");
|
||||
class->signal_quote2 = g_strdup (":>");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user