[gnome-shell] a11y: StLabelAccessible needs to notify accessible-name change



commit 1b64b09532c5634c480ebb6b6a8929d2a3754ab2
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Thu Jan 26 20:11:30 2012 +0100

    a11y: StLabelAccessible needs to notify accessible-name change
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667376

 src/st/st-label.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-label.c b/src/st/st-label.c
index ce11304..485c5b3 100644
--- a/src/st/st-label.c
+++ b/src/st/st-label.c
@@ -482,11 +482,23 @@ st_label_accessible_init (StLabelAccessible *self)
 }
 
 static void
+label_text_notify_cb (StLabel    *label,
+                      GParamSpec *pspec,
+                      AtkObject  *accessible)
+{
+  g_object_notify (G_OBJECT (accessible), "accessible-name");
+}
+
+static void
 st_label_accessible_initialize (AtkObject *obj,
                                 gpointer   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;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]