[at-spi2-core] Fix for BGO#648130: event host_application should return NULL for the desktop



commit d4d351426d15f0ac8f113d7db419676933936b26
Author: Mike Gorse <mgorse novell com>
Date:   Mon Apr 18 11:44:28 2011 -0500

    Fix for BGO#648130: event host_application should return NULL for the desktop

 atspi/atspi-accessible.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index 9f01868..d163d68 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -726,6 +726,11 @@ atspi_accessible_get_application (AtspiAccessible *obj, GError **error)
       if (root)
       {
         g_object_unref (obj);
+        if (atspi_accessible_get_role (root, NULL) == ATSPI_ROLE_DESKTOP_FRAME)
+        {
+          g_object_unref (root);
+          return NULL;
+        }
         return root;
       }
     }



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