2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Thu, 30 Oct 2008 17:04:34 +0000 (17:04 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Thu, 30 Oct 2008 17:04:34 +0000 (17:04 +0000)
Bug 1212 - Allow only a single include file for Clutter

* clutter/*.h: Only allow including clutter.h in third
party code.

* clutter/cogl/cogl-color.h:
* clutter/cogl/cogl-fixed.h:
* clutter/cogl/cogl.h.in: Only allow including cogl.h in
third party code.

* clutter/cogl/common/Makefile.am:
* clutter/cogl/gl/Makefile.am:
* clutter/cogl/gles/Makefile.am:
* clutter/eglnative/Makefile.am:
* clutter/eglx/Makefile.am:
* clutter/fruity/Makefile.am:
* clutter/glx/Makefile.am:
* clutter/glx/clutter-glx.h:
* clutter/osx/Makefile.am:
* clutter/pango/Makefile.am:
* clutter/sdl/Makefile.am:
* clutter/win32/Makefile.am:
* clutter/x11/Makefile.am: Fix build environment.

* clutter/x11/clutter-x11-texture-pixmap.h:
* clutter/x11/clutter-x11.h: Fix inclusion rules.

* tests/test-pixmap.c: Fix inclusion of GdkPixbuf header.

* README: Update release notes.

65 files changed:
ChangeLog
README
clutter/clutter-actor.h
clutter/clutter-alpha.h
clutter/clutter-backend.h
clutter/clutter-behaviour-bspline.h
clutter/clutter-behaviour-depth.h
clutter/clutter-behaviour-ellipse.h
clutter/clutter-behaviour-opacity.h
clutter/clutter-behaviour-path.h
clutter/clutter-behaviour-rotate.h
clutter/clutter-behaviour-scale.h
clutter/clutter-behaviour.h
clutter/clutter-child-meta.h
clutter/clutter-clone-texture.h
clutter/clutter-color.h
clutter/clutter-container.h
clutter/clutter-effect.h
clutter/clutter-entry.h
clutter/clutter-event.h
clutter/clutter-feature.h
clutter/clutter-fixed.h
clutter/clutter-frame-source.h
clutter/clutter-group.h
clutter/clutter-id-pool.h
clutter/clutter-label.h
clutter/clutter-list-model.h
clutter/clutter-main.h
clutter/clutter-media.h
clutter/clutter-model.h
clutter/clutter-rectangle.h
clutter/clutter-score.h
clutter/clutter-script.c
clutter/clutter-script.h
clutter/clutter-scriptable.h
clutter/clutter-shader.h
clutter/clutter-stage-manager.h
clutter/clutter-stage-window.h
clutter/clutter-stage.h
clutter/clutter-texture.h
clutter/clutter-timeline.h
clutter/clutter-timeout-pool.h
clutter/clutter-types.h
clutter/clutter-units.h
clutter/clutter-util.h
clutter/clutter.h
clutter/cogl/cogl-color.h
clutter/cogl/cogl-fixed.h
clutter/cogl/cogl.h.in
clutter/cogl/common/Makefile.am
clutter/cogl/gl/Makefile.am
clutter/cogl/gles/Makefile.am
clutter/eglnative/Makefile.am
clutter/eglx/Makefile.am
clutter/fruity/Makefile.am
clutter/glx/Makefile.am
clutter/glx/clutter-glx.h
clutter/osx/Makefile.am
clutter/pango/Makefile.am
clutter/sdl/Makefile.am
clutter/win32/Makefile.am
clutter/x11/Makefile.am
clutter/x11/clutter-x11-texture-pixmap.h
clutter/x11/clutter-x11.h
tests/test-pixmap.c

index af06dc9..3fc3586 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,38 @@
 2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>
 
+       Bug 1212 - Allow only a single include file for Clutter
+
+       * clutter/*.h: Only allow including clutter.h in third
+       party code.
+
+       * clutter/cogl/cogl-color.h:
+       * clutter/cogl/cogl-fixed.h:
+       * clutter/cogl/cogl.h.in: Only allow including cogl.h in
+       third party code.
+
+       * clutter/cogl/common/Makefile.am:
+       * clutter/cogl/gl/Makefile.am:
+       * clutter/cogl/gles/Makefile.am:
+       * clutter/eglnative/Makefile.am:
+       * clutter/eglx/Makefile.am:
+       * clutter/fruity/Makefile.am:
+       * clutter/glx/Makefile.am:
+       * clutter/glx/clutter-glx.h:
+       * clutter/osx/Makefile.am:
+       * clutter/pango/Makefile.am:
+       * clutter/sdl/Makefile.am:
+       * clutter/win32/Makefile.am:
+       * clutter/x11/Makefile.am: Fix build environment.
+
+       * clutter/x11/clutter-x11-texture-pixmap.h:
+       * clutter/x11/clutter-x11.h: Fix inclusion rules.
+
+       * tests/test-pixmap.c: Fix inclusion of GdkPixbuf header.
+
+       * README: Update release notes.
+
+2008-10-30  Emmanuele Bassi  <ebassi@linux.intel.com>
+
        Bug 1211 - Drop ClutterFeatureFlags usage from COGL
 
        * clutter/cogl/cogl.h.in:
diff --git a/README b/README
index 5e7b43a..9fc67a4 100644 (file)
--- a/README
+++ b/README
@@ -170,6 +170,12 @@ wanting to port to newer releases (See NEWS for general new feature info).
 Release Notes for Clutter 1.0
 -------------------------------
 
+* Both Clutter and COGL only allow including <clutter/clutter.h>
+  and <cogl/cogl.h> directly, respectively. This allows avoiding
+  breaking API every time a type definition is moved across
+  headers, and improves the reliability of third party code against
+  internal refactorings.
+
 * COGL has an internal Color type, used to store a color definition
   that can be efficiently used with the least amount of conversions
   by both the GL and GLES implementations. The COGL API has been
index 53b296d..371ce20 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_ACTOR_H
-#define _HAVE_CLUTTER_ACTOR_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_ACTOR_H__
+#define __CLUTTER_ACTOR_H__
 
 /* clutter-actor.h */
 
index ae30260..56991a6 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_ALPHA_H__
 #define __CLUTTER_ALPHA_H__
 
index dbce71a..27f49c4 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_BACKEND_H__
 #define __CLUTTER_BACKEND_H__
 
index a344f4b..644b588 100644 (file)
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_BEHAVIOUR_BSPLINE_H__
 #define __CLUTTER_BEHAVIOUR_BSPLINE_H__
 
index 438a375..859c90a 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_BEHAVIOUR_DEPTH__
 #define __CLUTTER_BEHAVIOUR_DEPTH__
 
index b53f232..7505e64 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_BEHAVIOUR_ELLIPSE_H__
 #define __CLUTTER_BEHAVIOUR_ELLIPSE_H__
 
index a888640..51d675e 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_BEHAVIOUR_OPACITY_H__
 #define __CLUTTER_BEHAVIOUR_OPACITY_H__
 
index 42cef07..8eb425f 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_BEHAVIOUR_PATH_H__
 #define __CLUTTER_BEHAVIOUR_PATH_H__
 
index 59638e6..26928b6 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_BEHAVIOUR_ROTATE_H__
 #define __CLUTTER_BEHAVIOUR_ROTATE_H__
 
index c3b2a93..2421a2a 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_BEHAVIOUR_SCALE_H__
 #define __CLUTTER_BEHAVIOUR_SCALE_H__
 
index b6f2303..c190961 100644 (file)
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_BEHAVIOUR_H
-#define _HAVE_CLUTTER_BEHAVIOUR_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_BEHAVIOUR_H__
+#define __CLUTTER_BEHAVIOUR_H__
 
 #include <glib-object.h>
 #include <clutter/clutter-alpha.h>
index 881d66c..2efee32 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_CHILD_META_H__
 #define __CLUTTER_CHILD_META_H__
 
index f34c779..74f2974 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_CLONE_TEXTURE_H
-#define _HAVE_CLUTTER_CLONE_TEXTURE_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_CLONE_TEXTURE_H__
+#define __CLUTTER_CLONE_TEXTURE_H__
 
 #include <clutter/clutter-actor.h>
 #include <clutter/clutter-texture.h>
 
 G_BEGIN_DECLS
 
-#define CLUTTER_TYPE_CLONE_TEXTURE (clutter_clone_texture_get_type ())
-
-#define CLUTTER_CLONE_TEXTURE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-  CLUTTER_TYPE_CLONE_TEXTURE, ClutterCloneTexture))
-
-#define CLUTTER_CLONE_TEXTURE_CLASS(klass) \
-  (G_TYPE_CHECK_CLASS_CAST ((klass), \
-  CLUTTER_TYPE_CLONE_TEXTURE, ClutterCloneTextureClass))
-
-#define CLUTTER_IS_CLONE_TEXTURE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-  CLUTTER_TYPE_CLONE_TEXTURE))
-
-#define CLUTTER_IS_CLONE_TEXTURE_CLASS(klass) \
-  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
-  CLUTTER_TYPE_CLONE_TEXTURE))
-
-#define CLUTTER_CLONE_TEXTURE_GET_CLASS(obj) \
-  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
-  CLUTTER_TYPE_CLONE_TEXTURE, ClutterCloneTextureClass))
+#define CLUTTER_TYPE_CLONE_TEXTURE              (clutter_clone_texture_get_type ())
+#define CLUTTER_CLONE_TEXTURE(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_CLONE_TEXTURE, ClutterCloneTexture))
+#define CLUTTER_CLONE_TEXTURE_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_CLONE_TEXTURE, ClutterCloneTextureClass))
+#define CLUTTER_IS_CLONE_TEXTURE(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_CLONE_TEXTURE))
+#define CLUTTER_IS_CLONE_TEXTURE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_CLONE_TEXTURE))
+#define CLUTTER_CLONE_TEXTURE_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_CLONE_TEXTURE, ClutterCloneTextureClass))
 
 typedef struct _ClutterCloneTexture        ClutterCloneTexture;
 typedef struct _ClutterCloneTexturePrivate ClutterCloneTexturePrivate;
@@ -59,14 +46,15 @@ typedef struct _ClutterCloneTextureClass   ClutterCloneTextureClass;
 
 struct _ClutterCloneTexture
 {
+  /*< private >*/
   ClutterActor                 parent;
-  
-  /*< priv >*/
+
   ClutterCloneTexturePrivate    *priv;
 };
 
 struct _ClutterCloneTextureClass 
 {
+  /*< private >*/
   ClutterActorClass parent_class;
 
   /* padding for future expansion */
@@ -85,4 +73,4 @@ void            clutter_clone_texture_set_parent_texture (ClutterCloneTexture *c
 
 G_END_DECLS
 
-#endif
+#endif /* __CLUTTER_CLONE_TEXTURE_H__ */
index e07d8fa..5b5a3f2 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_COLOR_H
-#define _HAVE_CLUTTER_COLOR_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_COLOR_H__
+#define __CLUTTER_COLOR_H__
 
 #include <glib-object.h>
 #include <clutter/clutter-fixed.h>
index a9f3471..68cbd71 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  *
  * ClutterContainer: Generic actor container interface.
  * Author: Emmanuele Bassi <ebassi@openedhand.com>
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_CONTAINER_H__
 #define __CLUTTER_CONTAINER_H__
 
index 3c59ad4..0d1fb17 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _CLUTTER_EFFECT
-#define _CLUTTER_EFFECT
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_EFFECT_H__
+#define __CLUTTER_EFFECT_H__
 
 #include <glib-object.h>
 #include <clutter/clutter-actor.h>
@@ -157,4 +159,4 @@ ClutterTimeline *clutter_effect_rotate (ClutterEffectTemplate     *template_,
 
 G_END_DECLS
 
-#endif /* _CLUTTER_EFFECT */
+#endif /* __CLUTTER_EFFECT_H__ */
index 65aefbe..b434085 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_ENTRY_H
-#define _HAVE_CLUTTER_ENTRY_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_ENTRY_H__
+#define __CLUTTER_ENTRY_H__
 
 #include <clutter/clutter-actor.h>
 #include <clutter/clutter-color.h>
@@ -160,4 +162,4 @@ void                  clutter_entry_handle_key_event    (ClutterEntry       *ent
 
 G_END_DECLS
 
-#endif /* _HAVE_CLUTTER_ENTRY_H */
+#endif /* __CLUTTER_ENTRY_H__ */
index 1c2de01..7ad6c7e 100644 (file)
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_EVENT_H
-#define _HAVE_CLUTTER_EVENT_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_EVENT_H__
+#define __CLUTTER_EVENT_H__
 
 #include <glib-object.h>
 #include <clutter/clutter-types.h>
@@ -443,4 +447,4 @@ ClutterStage*       clutter_event_get_stage     (ClutterEvent *event);
 
 G_END_DECLS
 
-#endif
+#endif /* __CLUTTER_EVENT_H__ */
index 89be737..8646066 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
+
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 /**
  * SECTION:clutter-main
  * @short_description: Various 'global' clutter functions.
@@ -30,8 +33,8 @@
  * functions for mainloops, events and threads
  */
 
-#ifndef _HAVE_CLUTTER_FEATURE_H
-#define _HAVE_CLUTTER_FEATURE_H
+#ifndef __CLUTTER_FEATURE_H__
+#define __CLUTTER_FEATURE_H__
 
 #include <glib.h>
 
@@ -74,5 +77,4 @@ ClutterFeatureFlags clutter_feature_get_all         (void);
 
 G_END_DECLS
 
-#endif
-
+#endif /* __CLUTTER_FEATURE_H__ */
index 9bd2c0f..a2412ce 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_FIXED_H
-#define _HAVE_CLUTTER_FIXED_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_FIXED_H__
+#define __CLUTTER_FIXED_H__
 
 #include <glib-object.h>
-#include <cogl/cogl-fixed.h>
+#include <cogl/cogl.h>
 
 G_BEGIN_DECLS
 
@@ -379,4 +381,4 @@ GParamSpec * clutter_param_spec_fixed     (const gchar  *name,
 
 G_END_DECLS
 
-#endif /* _HAVE_CLUTTER_FIXED_H */
+#endif /* __CLUTTER_FIXED_H__ */
index 07c8c95..522bd15 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _CLUTTER_FRAME_SOURCE_H
-#define _CLUTTER_FRAME_SOURCE_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_FRAME_SOURCE_H__
+#define __CLUTTER_FRAME_SOURCE_H__
 
 #include <glib.h>
 
@@ -42,4 +44,4 @@ guint clutter_frame_source_add_full (gint           priority,
 
 G_END_DECLS
 
-#endif /* _CLUTTER_FRAME_SOURCE_H */
+#endif /* __CLUTTER_FRAME_SOURCE_H__ */
index d4a4e6c..ac4d37b 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_GROUP_H__
 #define __CLUTTER_GROUP_H__
 
@@ -92,6 +94,7 @@ ClutterActor *clutter_group_get_nth_child    (ClutterGroup    *self,
 gint          clutter_group_get_n_children   (ClutterGroup    *self);
 void          clutter_group_remove_all       (ClutterGroup    *group);
 
+/* for Mr. Mallum */
 #define clutter_group_add(group,actor)                  G_STMT_START {  \
   if (CLUTTER_IS_GROUP ((group)) && CLUTTER_IS_ACTOR ((actor)))         \
     {                                                                   \
index 857cf6d..114f0b6 100644 (file)
@@ -18,9 +18,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  *
  * ClutterIDPool: pool of reusable integer ids associated with pointers.
  *
index d8352c1..d6021c2 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_LABEL_H
-#define _HAVE_CLUTTER_LABEL_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_LABEL_H__
+#define __CLUTTER_LABEL_H__
 
 #include <clutter/clutter-actor.h>
 #include <clutter/clutter-color.h>
@@ -123,4 +125,4 @@ gboolean              clutter_label_get_justify        (ClutterLabel       *labe
 
 G_END_DECLS
 
-#endif /* _HAVE_CLUTTER_LABEL_H */
+#endif /* __CLUTTER_LABEL_H__ */
index ed088fa..f5fd826 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  *
  * NB: Inspiration for column storage taken from GtkListStore
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_LIST_MODEL_H__
 #define __CLUTTER_LIST_MODEL_H__
 
index eeef5a2..7a9106f 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_MAIN_H
-#define _HAVE_CLUTTER_MAIN_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_MAIN_H__
+#define __CLUTTER_MAIN_H__
 
 #include <clutter/clutter-actor.h>
 #include <clutter/clutter-stage.h>
@@ -165,4 +167,4 @@ void             clutter_ungrab_pointer_for_device   (gint id);
 
 G_END_DECLS
 
-#endif /* _HAVE_CLUTTER_MAIN_H */
+#endif /* _CLUTTER_MAIN_H__ */
index 2f585fa..f930e3f 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_MEDIA_H
-#define _HAVE_CLUTTER_MEDIA_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_MEDIA_H__
+#define __CLUTTER_MEDIA_H__
 
 #include <glib-object.h>
 
 G_BEGIN_DECLS
 
-#define CLUTTER_TYPE_MEDIA clutter_media_get_type()
-
-#define CLUTTER_MEDIA(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-  CLUTTER_TYPE_MEDIA, ClutterMedia))
-
-#define CLUTTER_IS_MEDIA(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-  CLUTTER_TYPE_MEDIA))
+#define CLUTTER_TYPE_MEDIA                      (clutter_media_get_type ())
+#define CLUTTER_MEDIA(obj)                      (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_MEDIA, ClutterMedia))
+#define CLUTTER_IS_MEDIA(obj)                   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_MEDIA))
+#define CLUTTER_MEDIA_GET_INTERFACE(obj)        (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CLUTTER_TYPE_MEDIA, ClutterMediaInterface))
 
-#define CLUTTER_MEDIA_GET_INTERFACE(obj) \
-  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), \
-  CLUTTER_TYPE_MEDIA, ClutterMediaInterface))
-
-typedef struct _ClutterMedia           ClutterMedia;      
+typedef struct _ClutterMedia           ClutterMedia; /* dummy typedef */
 typedef struct _ClutterMediaInterface  ClutterMediaInterface;
 
 struct _ClutterMediaInterface
 {
+  /*< private >*/
   GTypeInterface           base_iface;
+
+  /*< public >*/
   void (*set_uri)           (ClutterMedia *media,
                             const char   *uri);
   const char *(*get_uri)    (ClutterMedia *media);
@@ -73,7 +69,7 @@ struct _ClutterMediaInterface
 };
 
 
-GType clutter_media_get_type     (void);
+GType clutter_media_get_type     (void) G_GNUC_CONST;
 
 void
 clutter_media_set_uri            (ClutterMedia *media,
@@ -117,4 +113,4 @@ clutter_media_set_filename       (ClutterMedia *media,
 
 G_END_DECLS
 
-#endif
+#endif /* __CLUTTER_MEDIA_H__ */
index 94c8326..d20335f 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_MODEL_H__
 #define __CLUTTER_MODEL_H__
 
-#include <glib.h>
 #include <glib-object.h>
 
 G_BEGIN_DECLS
index 385a9b7..4d79e30 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_RECTANGLE_H
-#define _HAVE_CLUTTER_RECTANGLE_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_RECTANGLE_H__
+#define __CLUTTER_RECTANGLE_H__
 
 #include <glib-object.h>
 #include <clutter/clutter-actor.h>
 
 G_BEGIN_DECLS
 
-#define CLUTTER_TYPE_RECTANGLE clutter_rectangle_get_type()
-
-#define CLUTTER_RECTANGLE(obj) \
-  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
-  CLUTTER_TYPE_RECTANGLE, ClutterRectangle))
-
-#define CLUTTER_RECTANGLE_CLASS(klass) \
-  (G_TYPE_CHECK_CLASS_CAST ((klass), \
-  CLUTTER_TYPE_RECTANGLE, ClutterRectangleClass))
-
-#define CLUTTER_IS_RECTANGLE(obj) \
-  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
-  CLUTTER_TYPE_RECTANGLE))
-
-#define CLUTTER_IS_RECTANGLE_CLASS(klass) \
-  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
-  CLUTTER_TYPE_RECTANGLE))
-
-#define CLUTTER_RECTANGLE_GET_CLASS(obj) \
-  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
-  CLUTTER_TYPE_RECTANGLE, ClutterRectangleClass))
+#define CLUTTER_TYPE_RECTANGLE                  (clutter_rectangle_get_type())
+#define CLUTTER_RECTANGLE(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_RECTANGLE, ClutterRectangle))
+#define CLUTTER_RECTANGLE_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_RECTANGLE, ClutterRectangleClass))
+#define CLUTTER_IS_RECTANGLE(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_RECTANGLE))
+#define CLUTTER_IS_RECTANGLE_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_RECTANGLE))
+#define CLUTTER_RECTANGLE_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_RECTANGLE, ClutterRectangleClass))
 
 typedef struct _ClutterRectangle        ClutterRectangle;
 typedef struct _ClutterRectangleClass   ClutterRectangleClass;
@@ -60,14 +47,15 @@ typedef struct _ClutterRectanglePrivate ClutterRectanglePrivate;
 
 struct _ClutterRectangle
 {
+  /*< private >*/
   ClutterActor           parent;
 
-  /*< private >*/
   ClutterRectanglePrivate *priv;
 }; 
 
 struct _ClutterRectangleClass 
 {
+  /*< private >*/
   ClutterActorClass parent_class;
 
   /* padding for future expansion */
@@ -96,4 +84,4 @@ void          clutter_rectangle_set_border_color (ClutterRectangle   *rectangle,
 
 G_END_DECLS
 
-#endif
+#endif /* __CLUTTER_RECTANGLE_H__ */
index 3b5eddc..1bd648c 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_SCORE_H__
 #define __CLUTTER_SCORE_H__
 
index 1a8fc98..25f66d6 100644 (file)
 #include <glib-object.h>
 #include <gmodule.h>
 
+#ifdef USE_GDKPIXBUF
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#endif
+
 #include "clutter-actor.h"
 #include "clutter-alpha.h"
 #include "clutter-behaviour.h"
index d53fcef..ad94c62 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_SCRIPT_H__
 #define __CLUTTER_SCRIPT_H__
 
index fe78606..12cf942 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_SCRIPTABLE_H__
 #define __CLUTTER_SCRIPTABLE_H__
 
index b46ec0c..f4bdb7c 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
 
 #ifndef __CLUTTER_SHADER_H__
 #define __CLUTTER_SHADER_H__
index 1b4a7b5..f2484d7 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_STAGE_MANAGER_H__
 #define __CLUTTER_STAGE_MANAGER_H__
 
-#include <glib.h>
 #include <glib-object.h>
 #include <clutter/clutter-stage.h>
 
@@ -44,6 +45,7 @@ typedef struct _ClutterStageManagerClass        ClutterStageManagerClass;
 
 struct _ClutterStageManagerClass
 {
+  /*< private >*/
   GObjectClass parent_class;
 
   void (* stage_added)   (ClutterStageManager *stage_manager,
index 641e8fb..8efdbd2 100644 (file)
@@ -2,9 +2,6 @@
 #define __CLUTTER_STAGE_WINDOW_H__
 
 #include <clutter/clutter-actor.h>
-#ifdef USE_GDKPIXBUF
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#endif
 
 G_BEGIN_DECLS
 
index 36abf9e..cb8ca90 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_STAGE_H__
 #define __CLUTTER_STAGE_H__
 
 #include <clutter/clutter-color.h>
 #include <clutter/clutter-event.h>
 
-#ifdef USE_GDKPIXBUF
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#endif
-
 G_BEGIN_DECLS
 
 #define CLUTTER_TYPE_PERSPECTIVE        (clutter_perspective_get_type ())
@@ -64,7 +62,7 @@ G_BEGIN_DECLS
 /**
  * CLUTTER_STAGE_WIDTH:
  *
- * Macro that evaluates to the current stage width
+ * Macro that evaluates to the width of the default stage
  *
  * Since: 0.2
  */
@@ -74,7 +72,7 @@ G_BEGIN_DECLS
 /**
  * CLUTTER_STAGE_HEIGHT:
  *
- * Macro that evaluates to the current stage height
+ * Macro that evaluates to the height of the default stage
  *
  * Since: 0.2
  */
index b66c212..84f6889 100644 (file)
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_TEXTURE_H
-#define _HAVE_CLUTTER_TEXTURE_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_TEXTURE_H__
+#define __CLUTTER_TEXTURE_H__
 
 #include <clutter/clutter-actor.h>
 #include <cogl/cogl.h>
@@ -180,4 +184,4 @@ void                  clutter_texture_set_cogl_texture      (ClutterTexture
 
 G_END_DECLS
 
-#endif /* _HAVE_CLUTTER_TEXTURE_H */
+#endif /* __CLUTTER_TEXTURE_H__ */
index 07014d5..948c641 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_TIMELINE_H
-#define _HAVE_CLUTTER_TIMELINE_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_TIMELINE_H__
+#define __CLUTTER_TIMELINE_H__
 
 #include <glib-object.h>
 #include <clutter/clutter-fixed.h>
@@ -161,4 +163,4 @@ void             clutter_timeline_advance_to_marker     (ClutterTimeline *timeli
 
 G_END_DECLS
 
-#endif /* _HAVE_CLUTTER_TIMELINE_H */
+#endif /* _CLUTTER_TIMELINE_H__ */
index d7e5f5d..7e07bd2 100644 (file)
@@ -18,9 +18,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  *
  * ClutterTimeoutPool: pool of timeout functions using the same slice of
  *                     the GLib main loop
  * Based on similar code by Tristan van Berkom
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_TIMEOUT_POOL_H__
 #define __CLUTTER_TIMEOUT_POOL_H__
 
index 5ef1e8d..34dd121 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
 #ifndef __CLUTTER_TYPES_H__
 #define __CLUTTER_TYPES_H__
 
index aa08b94..8337d19 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_UNITS_H
-#define _HAVE_CLUTTER_UNITS_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly.h"
+#endif
+
+#ifndef __CLUTTER_UNITS_H__
+#define __CLUTTER_UNITS_H__
 
 #include <glib-object.h>
 #include <clutter/clutter-fixed.h>
@@ -213,4 +215,4 @@ GParamSpec *clutter_param_spec_unit (const gchar *name,
 
 G_END_DECLS
 
-#endif /* _HAVE_CLUTTER_UNITS_H */
+#endif /* __CLUTTER_UNITS_H__ */
index 7d62d31..ab7846c 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef _HAVE_CLUTTER_UTIL_H
-#define _HAVE_CLUTTER_UTIL_H
+#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <clutter/clutter.h> can be included directly."
+#endif
+
+#ifndef __CLUTTER_UTIL_H__
+#define __CLUTTER_UTIL_H__
 
 #include <glib.h>
 
index 8732534..cb29599 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef _HAVE_CLUTTER_H
-#define _HAVE_CLUTTER_H
+#ifndef __CLUTTER_H__
+#define __CLUTTER_H__
+
+#define __CLUTTER_H_INSIDE__
 
 #include "clutter-actor.h"
 #include "clutter-alpha.h"
@@ -70,4 +72,6 @@
 
 #include "clutter-enum-types.h"
 
-#endif
+#undef __CLUTTER_H_INSIDE__
+
+#endif /* __CLUTTER_H__ */
index 14c5d84..56f75a8 100644 (file)
@@ -1,3 +1,7 @@
+#if !defined(__COGL_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <cogl/cogl.h> can be included directly."
+#endif
+
 #ifndef __COGL_COLOR_H__
 #define __COGL_COLOR_H__
 
index b1542bc..1e27095 100644 (file)
@@ -1,3 +1,7 @@
+#if !defined(__COGL_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
+#error "Only <cogl/cogl.h> can be included directly."
+#endif
+
 #ifndef __COGL_FIXED_H__
 #define __COGL_FIXED_H__
 
index 3f23621..5b57a7e 100644 (file)
@@ -42,6 +42,8 @@
 #ifndef __COGL_H__
 #define __COGL_H__
 
+#define __COGL_H_INSIDE__
+
 #include <glib.h>
 
 #include <cogl/cogl-defines-@CLUTTER_COGL@.h>
@@ -1587,4 +1589,6 @@ void            cogl_draw_buffer              (CoglBufferTarget    target,
 
 G_END_DECLS
 
+#undef __COGL_H_INSIDE__
+
 #endif /* __COGL_H__ */
index 5a52418..7e3d7df 100644 (file)
@@ -5,6 +5,7 @@ INCLUDES = \
        -I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \
        -I$(top_builddir)/clutter \
        -I$(top_builddir)/clutter/cogl \
+        -DCLUTTER_COMPILATION \
        $(CLUTTER_CFLAGS) \
        $(CLUTTER_DEBUG_CFLAGS) \
        $(GCC_FLAGS)
index 2b22730..d2a1b4a 100644 (file)
@@ -13,6 +13,7 @@ INCLUDES = \
        -I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \
        -I$(top_builddir)/clutter \
        -I$(top_builddir)/clutter/cogl \
+        -DCLUTTER_COMPILATION \
        $(CLUTTER_CFLAGS) \
        $(CLUTTER_DEBUG_CFLAGS) \
        $(GCC_FLAGS)
index 1ac969e..29e25dd 100644 (file)
@@ -13,6 +13,7 @@ INCLUDES = \
        -I$(top_srcdir)/clutter/cogl/$(CLUTTER_COGL) \
        -I$(top_builddir)/clutter \
        -I$(top_builddir)/clutter/cogl \
+        -DCLUTTER_COMPILATION \
        $(CLUTTER_CFLAGS) \
        $(CLUTTER_DEBUG_CFLAGS) \
        $(GCC_FLAGS)
index 6ff0704..f431197 100644 (file)
@@ -3,6 +3,7 @@ libclutterinclude_HEADERS = clutter-egl.h
 
 INCLUDES = \
        -DG_LOG_DOMAIN=\"ClutterEGL\" \
+        -DCLUTTER_COMPILATION \
        -I$(top_srcdir) \
        $(CLUTTER_CFLAGS) \
        $(CLUTTER_DEBUG_CFLAGS) \
index f988dfc..329dc90 100644 (file)
@@ -3,6 +3,7 @@ libclutterinclude_HEADERS = clutter-eglx.h
 
 INCLUDES = \
        -DG_LOG_DOMAIN=\"ClutterEGL\" \
+        -DCLUTTER_COMPILATION \
        -I$(top_srcdir) \
        -I$(top_srcdir)/clutter \
        -I$(top_srcdir)/clutter/x11 \
index eded388..7f4d8ec 100644 (file)
@@ -2,6 +2,7 @@ libclutterincludedir = $(includedir)/clutter-@CLUTTER_MAJORMINOR@/clutter
 
 INCLUDES = \
        -DG_LOG_DOMAIN=\"ClutterFruity\" \
+        -DCLUTTER_COMPILATION \
        -I$(top_srcdir) \
        -I$(top_srcdir)/clutter \
        $(CLUTTER_CFLAGS) \
index 0db1a16..6058acb 100644 (file)
@@ -7,6 +7,7 @@ INCLUDES = \
        -I$(top_srcdir)/clutter \
        -I$(top_srcdir)/clutter/x11 \
        -I$(top_builddir)/clutter \
+        -DCLUTTER_COMPILATION \
        $(CLUTTER_CFLAGS) \
        $(CLUTTER_DEBUG_CFLAGS) \
        $(GCC_FLAGS)
index e07b0b6..bb2455b 100644 (file)
@@ -40,7 +40,7 @@
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
-#include <clutter/clutter-stage.h>
+#include <clutter/clutter.h>
 #include <clutter/glx/clutter-glx-texture-pixmap.h>
 
 G_BEGIN_DECLS
index 018bd9b..762e1a7 100644 (file)
@@ -3,6 +3,7 @@ libclutterinclude_HEADERS = clutter-osx.h
 
 INCLUDES = \
        -DG_LOG_DOMAIN=\"ClutterOSX\" \
+        -DCLUTTER_COMPILATION \
        -I$(top_srcdir) \
        -I$(top_srcdir)/clutter \
        -I$(top_builddir)/clutter \
index 4a46575..ef052d5 100644 (file)
@@ -16,6 +16,7 @@ libpangoclutter_la_SOURCES = $(source_c)     \
 INCLUDES = \
        @GCC_FLAGS@ @CLUTTER_CFLAGS@                    \
        $(CLUTTER_DEBUG_CFLAGS)                         \
+        -DCLUTTER_COMPILATION                           \
        -I$(top_srcdir)                                 \
        -I$(top_srcdir)/clutter                         \
        -I$(top_builddir)/clutter
index fb944c5..787bd62 100644 (file)
@@ -3,6 +3,7 @@ libclutterinclude_HEADERS = clutter-sdl.h
 
 INCLUDES = \
        -DG_LOG_DOMAIN=\"ClutterSDL\" \
+        -DCLUTTER_COMPILATION \
        -I$(top_srcdir) \
        -I$(top_srcdir)/clutter/ \
        -I$(top_builddir)/clutter/ \
index 43f665c..4cfff8a 100644 (file)
@@ -9,6 +9,7 @@ pkgconfigdir   = $(libdir)/pkgconfig
 
 INCLUDES = \
        -DG_LOG_DOMAIN=\"ClutterWin32\" \
+        -DCLUTTER_COMPILATION \
        -I$(top_srcdir) \
        -I$(top_srcdir)/clutter \
        -I$(top_builddir)/clutter \
index 52aeb31..2a55a03 100644 (file)
@@ -1,10 +1,11 @@
 INCLUDES = \
-       -DG_LOG_DOMAIN=\"ClutterX11\" \
-       -I$(top_srcdir) \
+       -DG_LOG_DOMAIN=\"ClutterX11\"           \
+        -DCLUTTER_COMPILATION                   \
+       -I$(top_srcdir)                         \
        -I$(top_srcdir)/clutter                 \
        -I$(top_builddir)/clutter               \
-       $(CLUTTER_CFLAGS) \
-       $(CLUTTER_DEBUG_CFLAGS) \
+       $(CLUTTER_CFLAGS)                       \
+       $(CLUTTER_DEBUG_CFLAGS)                 \
        $(GCC_FLAGS)
 
 LDADD = $(CLUTTER_LIBS)
index c24e900..76ede48 100644 (file)
@@ -28,9 +28,7 @@
 
 #include <glib.h>
 #include <glib-object.h>
-
-
-#include <clutter/clutter-texture.h>
+#include <clutter/clutter.h>
 #include <X11/Xlib.h>
 
 G_BEGIN_DECLS
index e523bff..e7161c2 100644 (file)
@@ -41,7 +41,7 @@
 #include <X11/Xlib.h>
 #include <X11/Xatom.h>
 #include <X11/Xutil.h>
-#include <clutter/clutter-stage.h>
+#include <clutter/clutter.h>
 #include <clutter/x11/clutter-x11-enum-types.h>
 #include <clutter/x11/clutter-x11-texture-pixmap.h>
 
index 52664b7..262bf83 100644 (file)
@@ -18,6 +18,8 @@
 #define IMAGE "redhand.png"
 
 # ifdef USE_GDKPIXBUF
+# include <gdk-pixbuf/gdk-pixbuf.h>
+
 static gboolean disable_x11 = FALSE;
 static gboolean disable_glx = FALSE;