[gtk+/gtk-2-24] 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-2-24] Fix updating the widget accessible description when using its tooltip
- Date: Sun, 10 Dec 2017 02:42:47 +0000 (UTC)
commit 61d5c82f5ca7d4f00f8182d17d30c350f43a4424
Author: Colomban Wendling <cwendling hypra fr>
Date: Mon Feb 20 11:29:10 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 gail_widget_get_description()
would use it as the description.
https://bugzilla.gnome.org/show_bug.cgi?id=779009
modules/other/gail/gailwidget.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/modules/other/gail/gailwidget.c b/modules/other/gail/gailwidget.c
index b700b29..752888a 100644
--- a/modules/other/gail/gailwidget.c
+++ b/modules/other/gail/gailwidget.c
@@ -983,6 +983,12 @@ gail_widget_real_notify_gtk (GObject *obj,
* focus changes so we ignore this.
*/
return;
+ else if (atk_obj->description == NULL &&
+ strcmp (pspec->name, "tooltip-text") == 0)
+ {
+ g_object_notify (G_OBJECT (atk_obj), "accessible-description");
+ return;
+ }
else if (strcmp (pspec->name, "visible") == 0)
{
state = ATK_STATE_VISIBLE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]