[clutter] Make clutter-stage-window.h a private header



commit b248fbd010d428ec103f2b5cde906403d1eac3f0
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Mar 1 11:06:04 2012 +0000

    Make clutter-stage-window.h a private header
    
    It should have never been public in the first place; nothing can
    implement the ClutterStageWindow interface and use it, so this is
    not a break.

 clutter/Makefile.am            |    2 +-
 clutter/clutter-stage-window.c |    2 ++
 clutter/clutter-stage-window.h |   23 +++++------------------
 clutter/clutter.h              |    1 -
 clutter/clutter.symbols        |    1 -
 5 files changed, 8 insertions(+), 21 deletions(-)
---
diff --git a/clutter/Makefile.am b/clutter/Makefile.am
index 9579611..50260e1 100644
--- a/clutter/Makefile.am
+++ b/clutter/Makefile.am
@@ -110,7 +110,6 @@ source_h =					\
 	$(srcdir)/clutter-snap-constraint.h	\
 	$(srcdir)/clutter-stage.h 		\
 	$(srcdir)/clutter-stage-manager.h	\
-	$(srcdir)/clutter-stage-window.h	\
 	$(srcdir)/clutter-state.h		\
 	$(srcdir)/clutter-table-layout.h	\
 	$(srcdir)/clutter-texture.h 		\
@@ -218,6 +217,7 @@ source_h_priv = \
 	$(srcdir)/clutter-settings-private.h		\
 	$(srcdir)/clutter-stage-manager-private.h	\
 	$(srcdir)/clutter-stage-private.h		\
+	$(srcdir)/clutter-stage-window.h		\
 	$(NULL)
 
 # private source code; these should not be introspected
diff --git a/clutter/clutter-stage-window.c b/clutter/clutter-stage-window.c
index 1b35103..3ba3c99 100644
--- a/clutter/clutter-stage-window.c
+++ b/clutter/clutter-stage-window.c
@@ -8,6 +8,8 @@
 #include "clutter-stage-window.h"
 #include "clutter-private.h"
 
+#define clutter_stage_window_get_type   _clutter_stage_window_get_type
+
 typedef ClutterStageWindowIface ClutterStageWindowInterface;
 
 G_DEFINE_INTERFACE (ClutterStageWindow, clutter_stage_window, G_TYPE_OBJECT);
diff --git a/clutter/clutter-stage-window.h b/clutter/clutter-stage-window.h
index 3d82f5c..041a255 100644
--- a/clutter/clutter-stage-window.h
+++ b/clutter/clutter-stage-window.h
@@ -1,30 +1,17 @@
 #ifndef __CLUTTER_STAGE_WINDOW_H__
 #define __CLUTTER_STAGE_WINDOW_H__
 
-#include <clutter/clutter-actor.h>
 #include <cogl/cogl.h>
-#include <cairo.h>
-
-/* XXX: Some of the private parts in this header expect the
- * CoglFramebuffer typedef from Cogl, but its possible for this header
- * to be included without the experimental Cogl api having been
- * selected by defining COGL_ENABLE_EXPERIMENTAL_API or
- * COGL_ENABLE_EXPERIMENTAL_2_0_API.
- *
- * We declare a  place holder type ourselves in this case...
- */
-#ifndef COGL_ENABLE_EXPERIMENTAL_API
-typedef struct _CoglFramebuffer CoglFramebuffer;
-#endif
+#include <clutter/clutter-types.h>
 
 G_BEGIN_DECLS
 
-#define CLUTTER_TYPE_STAGE_WINDOW               (clutter_stage_window_get_type ())
+#define CLUTTER_TYPE_STAGE_WINDOW               (_clutter_stage_window_get_type ())
 #define CLUTTER_STAGE_WINDOW(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_WINDOW, ClutterStageWindow))
 #define CLUTTER_IS_STAGE_WINDOW(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_STAGE_WINDOW))
 #define CLUTTER_STAGE_WINDOW_GET_IFACE(obj)     (G_TYPE_INSTANCE_GET_INTERFACE ((obj), CLUTTER_TYPE_STAGE_WINDOW, ClutterStageWindowIface))
 
-/**
+/*
  * ClutterStageWindow: (skip)
  *
  * <structname>ClutterStageWindow</structname> is an opaque structure
@@ -35,7 +22,7 @@ G_BEGIN_DECLS
 typedef struct _ClutterStageWindow      ClutterStageWindow; /* dummy */
 typedef struct _ClutterStageWindowIface ClutterStageWindowIface;
 
-/**
+/*
  * ClutterStageWindowIface: (skip)
  *
  * The interface implemented by backends for stage windows
@@ -91,7 +78,7 @@ struct _ClutterStageWindowIface
   gboolean          (* can_clip_redraws)        (ClutterStageWindow *stage_window);
 };
 
-GType clutter_stage_window_get_type (void) G_GNUC_CONST;
+GType _clutter_stage_window_get_type (void) G_GNUC_CONST;
 
 ClutterActor *    _clutter_stage_window_get_wrapper        (ClutterStageWindow *window);
 
diff --git a/clutter/clutter.h b/clutter/clutter.h
index eb5c7c0..e767bd6 100644
--- a/clutter/clutter.h
+++ b/clutter/clutter.h
@@ -90,7 +90,6 @@
 #include "clutter-snap-constraint.h"
 #include "clutter-stage.h"
 #include "clutter-stage-manager.h"
-#include "clutter-stage-window.h"
 #include "clutter-state.h"
 #include "clutter-table-layout.h"
 #include "clutter-texture.h"
diff --git a/clutter/clutter.symbols b/clutter/clutter.symbols
index 4d6773d..89cb94b 100644
--- a/clutter/clutter.symbols
+++ b/clutter/clutter.symbols
@@ -1069,7 +1069,6 @@ clutter_stage_set_use_alpha
 clutter_stage_set_use_fog
 clutter_stage_state_get_type
 clutter_stage_show_cursor
-clutter_stage_window_get_type
 clutter_state_get_animator
 clutter_state_get_duration
 clutter_state_get_keys



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