Do not include cogl-pango.h multiple times
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 22 Dec 2008 13:24:52 +0000 (13:24 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 22 Dec 2008 13:24:52 +0000 (13:24 +0000)
The clutter-private.h header already includes cogl-pango.h with
the correct inclusion path, because the main context stores a
pointer to the font map.

There is no need for clutter-text.c to include cogl-pango.h
again since it already includes clutter-private.h.

clutter/clutter-private.h
clutter/clutter-text.c

index 81e030a..fb8aea9 100644 (file)
@@ -38,6 +38,8 @@
 
 #include <glib.h>
 
+#include "pango/cogl-pango.h"
+
 #include "clutter-backend.h"
 #include "clutter-event.h"
 #include "clutter-feature.h"
@@ -45,7 +47,6 @@
 #include "clutter-stage-manager.h"
 #include "clutter-stage-window.h"
 #include "clutter-stage.h"
-#include "pango/cogl-pango.h"
 
 G_BEGIN_DECLS
 
index e9eb6e1..ab2e323 100644 (file)
 #include "clutter-enum-types.h"
 #include "clutter-keysyms.h"
 #include "clutter-main.h"
-#include "clutter-private.h"
+#include "clutter-private.h"    /* includes pango/cogl-pango.h */
 #include "clutter-units.h"
 
-#include "cogl-pango.h"
-
 #define DEFAULT_FONT_NAME      "Sans 10"
 
 /* cursor width in pixels */