accellabel: Use gtk_widget_class_set_accessible_role()

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

View File

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

View File

@ -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 (":>");