[gtk+/gtk-3-22] Fix updating the widget accessible description when using its tooltip
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] Fix updating the widget accessible description when using its tooltip
- Date: Sun, 10 Dec 2017 02:28:56 +0000 (UTC)
commit 75768a4d0097c1892a4cb0f634d76fdc7b400664
Author: Colomban Wendling <cwendling hypra fr>
Date: Mon Feb 20 17:39:40 2017 +0100
Fix updating the widget accessible description when using its tooltip
We need to notify ATK the description changed when the tooltip text associated
with the widget changes and gtk_widget_accessible_get_description() would use
it as the description.
https://bugzilla.gnome.org/show_bug.cgi?id=779009
gtk/a11y/gtkwidgetaccessible.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/a11y/gtkwidgetaccessible.c b/gtk/a11y/gtkwidgetaccessible.c
index ffa42a2..3b44aba 100644
--- a/gtk/a11y/gtkwidgetaccessible.c
+++ b/gtk/a11y/gtkwidgetaccessible.c
@@ -483,6 +483,9 @@ gtk_widget_accessible_notify_gtk (GObject *obj,
{
gtk_widget_accessible_update_tooltip (GTK_WIDGET_ACCESSIBLE (atk_obj),
widget);
+
+ if (atk_obj->description == NULL)
+ g_object_notify (G_OBJECT (atk_obj), "accessible-description");
return;
}
else if (g_strcmp0 (pspec->name, "visible") == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]