a11y: StLabelAccessible needs to notify accessible-name change
https://bugzilla.gnome.org/show_bug.cgi?id=667376
This commit is contained in:
parent
74dd298891
commit
1b64b09532
@ -481,12 +481,24 @@ st_label_accessible_init (StLabelAccessible *self)
|
|||||||
/* initialization done on AtkObject->initialize */
|
/* initialization done on AtkObject->initialize */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
label_text_notify_cb (StLabel *label,
|
||||||
|
GParamSpec *pspec,
|
||||||
|
AtkObject *accessible)
|
||||||
|
{
|
||||||
|
g_object_notify (G_OBJECT (accessible), "accessible-name");
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
st_label_accessible_initialize (AtkObject *obj,
|
st_label_accessible_initialize (AtkObject *obj,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
ATK_OBJECT_CLASS (st_label_accessible_parent_class)->initialize (obj, data);
|
ATK_OBJECT_CLASS (st_label_accessible_parent_class)->initialize (obj, data);
|
||||||
|
|
||||||
|
g_signal_connect (data, "notify::text",
|
||||||
|
G_CALLBACK (label_text_notify_cb),
|
||||||
|
obj);
|
||||||
|
|
||||||
obj->role = ATK_ROLE_LABEL;
|
obj->role = ATK_ROLE_LABEL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user