diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-01-03 22:59:37 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-01-04 10:54:03 -0500 |
commit | 5845356d660352cc7d800fbf0caf106a51d722eb (patch) | |
tree | 64f1c886bc8cd9e87bd20b290dc51a57b75533e1 /gtk/gtklabel.c | |
parent | 0d9efde30333166b57ee03800311064009bdf5e2 (diff) | |
download | gtk+-5845356d660352cc7d800fbf0caf106a51d722eb.tar.gz |
GtkLabelAccessible: Implement AtkHypertext
This commit makes the label accessible implement AtkHypertext,
which returns a AtkHyperlink object for each link in the text.
At the same time, add AtkHyperlinkImpl objects as children
to the label accessible.
Also some private API to indicate that links have changed, and
call that from GtkLabel when needed.
Adjust expected output of the affected a11y tests.
https://bugzilla.gnome.org/show_bug.cgi?id=721410
https://bugzilla.gnome.org/show_bug.cgi?id=721421
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r-- | gtk/gtklabel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 8f1ef1fe47..8d81de899e 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -2529,6 +2529,7 @@ gtk_label_set_markup_internal (GtkLabel *label, { gtk_label_ensure_select_info (label); priv->select_info->links = g_list_reverse (links); + _gtk_label_accessible_update_links (label); gtk_label_ensure_has_tooltip (label); } @@ -6287,6 +6288,8 @@ gtk_label_clear_links (GtkLabel *label) g_list_free_full (priv->select_info->links, (GDestroyNotify) link_free); priv->select_info->links = NULL; priv->select_info->active_link = NULL; + + _gtk_label_accessible_update_links (label); } static gboolean |