Using abstract atk_object_get_name to check accessible-name notification
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sun, 26 Feb 2012 23:50:32 +0000 (00:50 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 6 Mar 2012 00:08:14 +0000 (01:08 +0100)
atk/atkobject.c

index 251ae6b..4c1b359 100755 (executable)
@@ -1015,7 +1015,7 @@ atk_object_set_name (AtkObject    *accessible,
   if (klass->set_name)
     {
       /* Do not notify for initial name setting. See bug 665870 */
-      notify = (accessible->name != NULL);
+      notify = (atk_object_get_name (accessible) != NULL);
 
       (klass->set_name) (accessible, name);
       if (notify)