[at-spi2-atk] Only check for plug if atkplug.h has been included



commit 00d164c1420516bbeec2f37dea7c42c8f404e28c
Author: Mike Gorse <mgorse novell com>
Date:   Fri Dec 11 11:40:57 2009 -0500

    Only check for plug if atkplug.h has been included

 atk-adaptor/accessible-marshaller.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/atk-adaptor/accessible-marshaller.c b/atk-adaptor/accessible-marshaller.c
index 92d1700..3646d60 100644
--- a/atk-adaptor/accessible-marshaller.c
+++ b/atk-adaptor/accessible-marshaller.c
@@ -272,7 +272,11 @@ spi_atk_append_accessible(AtkObject *obj, gpointer data)
       if (parent == NULL)
         {
           /* TODO: Support getting parent of an AtkPlug */
+#ifdef __ATK_PLUG_H__
           if (role != Accessibility_ROLE_APPLICATION && !ATK_IS_PLUG (obj))
+#else
+          if (role != Accessibility_ROLE_APPLICATION)
+#endif
             path_parent = g_strdup (SPI_DBUS_PATH_NULL);
           else
             path_parent = atk_dbus_desktop_object_path ();



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