[at-spi2-atk] List org.a11y.atspi.Application in interfaces for applications



commit 58dc2993f9bed48102566a5092593c76ef1844d8
Author: Mike Gorse <mgorse novell com>
Date:   Thu Mar 4 10:27:40 2010 -0500

    List org.a11y.atspi.Application in interfaces for applications
    
    List application interface for objects with their role set to
    ATK_ROLE_APPLICATION.

 atk-adaptor/object.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/atk-adaptor/object.c b/atk-adaptor/object.c
index 33c50d9..0e6b6e2 100644
--- a/atk-adaptor/object.c
+++ b/atk-adaptor/object.c
@@ -176,6 +176,12 @@ spi_object_append_interfaces (DBusMessageIter * iter, AtkObject * obj)
       dbus_message_iter_append_basic (iter, DBUS_TYPE_STRING, &itf);
     }
 
+  if (atk_object_get_role (obj) == ATK_ROLE_APPLICATION)
+    {
+      itf = SPI_DBUS_INTERFACE_APPLICATION;
+      dbus_message_iter_append_basic (iter, DBUS_TYPE_STRING, &itf);
+    }
+
   if (ATK_IS_COMPONENT (obj))
     {
       itf = SPI_DBUS_INTERFACE_COMPONENT;



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