Only check for plug if atkplug.h has been included
authorMike Gorse <mgorse@novell.com>
Fri, 11 Dec 2009 16:40:57 +0000 (11:40 -0500)
committerMike Gorse <mgorse@novell.com>
Fri, 11 Dec 2009 16:41:41 +0000 (11:41 -0500)
atk-adaptor/accessible-marshaller.c

index 92d1700..3646d60 100644 (file)
@@ -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 ();