Do not include atk.h from a public header
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 28 Dec 2012 16:37:17 +0000 (16:37 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 28 Dec 2012 16:44:17 +0000 (16:44 +0000)
It creates a circular dependency on the headers, and tricks the
introspection scanner to try and resolve the header multiple times.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Tested-by: Emmanuele Bassi <ebassi@gnome.org>
atk/atkgobjectaccessible.c
atk/atkgobjectaccessible.h

index e9ba0f3..ba87480 100644 (file)
@@ -18,6 +18,8 @@
  */
 
 #include <atk/atkgobjectaccessible.h>
+#include <atk/atkregistry.h>
+#include <atk/atkutil.h>
 
 static void       atk_gobject_accessible_class_init       (AtkGObjectAccessibleClass   *klass);
 static void       atk_real_gobject_accessible_initialize  (AtkObject         *atk_obj,
index 13950ae..2901291 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef __ATK_GOBJECT_ACCESSIBLE_H__
 #define __ATK_GOBJECT_ACCESSIBLE_H__
 
-#include <atk/atk.h>
+#include <atk/atkobject.h>
 
 G_BEGIN_DECLS