Make clutter-stage-window.h a private header
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 1 Mar 2012 11:06:04 +0000 (11:06 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 1 Mar 2012 15:07:44 +0000 (15:07 +0000)
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
clutter/clutter-stage-window.c
clutter/clutter-stage-window.h
clutter/clutter.h
clutter/clutter.symbols

index 9579611..50260e1 100644 (file)
@@ -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
index 1b35103..3ba3c99 100644 (file)
@@ -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);
index 3d82f5c..041a255 100644 (file)
@@ -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);
 
index eb5c7c0..e767bd6 100644 (file)
@@ -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"
index 4d6773d..89cb94b 100644 (file)
@@ -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