[clutter] Fix missing/redundant declarations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Fix missing/redundant declarations
- Date: Wed, 7 Mar 2012 12:38:35 +0000 (UTC)
commit 2567049ce3899ab8045afd540a333bcd22f6332c
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Wed Mar 7 12:34:06 2012 +0000
Fix missing/redundant declarations
clutter/clutter-actor.c | 13 ++++++++-----
clutter/clutter-animatable.c | 2 ++
clutter/clutter-animation.c | 2 ++
clutter/clutter-backend.c | 2 ++
clutter/clutter-bin-layout.c | 2 ++
clutter/clutter-box-layout.c | 2 ++
clutter/clutter-cairo-texture.c | 2 ++
clutter/clutter-constraint.c | 1 +
clutter/clutter-deform-effect.c | 16 ++++++++--------
clutter/clutter-feature.c | 6 +++---
clutter/clutter-keysyms-table.c | 2 ++
clutter/clutter-list-model.c | 2 ++
clutter/clutter-main.c | 2 +-
clutter/clutter-script.c | 2 +-
clutter/clutter-settings.c | 1 +
clutter/clutter-stage-manager.c | 2 ++
clutter/clutter-table-layout.c | 2 ++
clutter/clutter-texture.c | 5 +++--
clutter/clutter-timeline.c | 5 ++++-
clutter/clutter-util.c | 4 +++-
clutter/deprecated/clutter-frame-source.c | 6 ++++--
21 files changed, 57 insertions(+), 24 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index bd39d47..348bb5c 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -350,6 +350,7 @@
#include "clutter-stage-private.h"
#include "clutter-units.h"
+#include "deprecated/clutter-actor.h"
#include "deprecated/clutter-behaviour.h"
#include "deprecated/clutter-container.h"
@@ -14894,20 +14895,21 @@ _clutter_actor_foreach_child (ClutterActor *self,
return cont;
}
+#if 0
/* For debugging purposes this gives us a simple way to print out
* the scenegraph e.g in gdb using:
* [|
* _clutter_actor_traverse (stage,
* 0,
- * _clutter_debug_print_actor_cb,
+ * clutter_debug_print_actor_cb,
* NULL,
* NULL);
* |]
*/
-ClutterActorTraverseVisitFlags
-_clutter_debug_print_actor_cb (ClutterActor *actor,
- int depth,
- void *user_data)
+static ClutterActorTraverseVisitFlags
+clutter_debug_print_actor_cb (ClutterActor *actor,
+ int depth,
+ void *user_data)
{
g_print ("%*s%s:%p\n",
depth * 2, "",
@@ -14916,6 +14918,7 @@ _clutter_debug_print_actor_cb (ClutterActor *actor,
return CLUTTER_ACTOR_TRAVERSE_VISIT_CONTINUE;
}
+#endif
static void
_clutter_actor_traverse_breadth (ClutterActor *actor,
diff --git a/clutter/clutter-animatable.c b/clutter/clutter-animatable.c
index f4b9a1d..81601d7 100644
--- a/clutter/clutter-animatable.c
+++ b/clutter/clutter-animatable.c
@@ -54,6 +54,8 @@
#include "clutter-debug.h"
#include "clutter-private.h"
+#include "deprecated/clutter-animatable.h"
+
typedef ClutterAnimatableIface ClutterAnimatableInterface;
G_DEFINE_INTERFACE (ClutterAnimatable, clutter_animatable, G_TYPE_OBJECT);
diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c
index aaef03c..f1c4a0f 100644
--- a/clutter/clutter-animation.c
+++ b/clutter/clutter-animation.c
@@ -160,6 +160,8 @@
#include "clutter-scriptable.h"
#include "clutter-script-private.h"
+#include "deprecated/clutter-animation.h"
+
enum
{
PROP_0,
diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c
index b50154a..509f423 100644
--- a/clutter/clutter-backend.c
+++ b/clutter/clutter-backend.c
@@ -42,6 +42,8 @@
#include "config.h"
#endif
+#define CLUTTER_ENABLE_EXPERIMENTAL_API
+
#include "clutter-backend-private.h"
#include "clutter-debug.h"
#include "clutter-event-private.h"
diff --git a/clutter/clutter-bin-layout.c b/clutter/clutter-bin-layout.c
index d09da6b..38bab6f 100644
--- a/clutter/clutter-bin-layout.c
+++ b/clutter/clutter-bin-layout.c
@@ -153,6 +153,8 @@ enum
static GParamSpec *layer_props[PROP_LAYER_LAST] = { NULL, };
static GParamSpec *bin_props[PROP_LAST] = { NULL, };
+GType clutter_bin_layer_get_type (void);
+
G_DEFINE_TYPE (ClutterBinLayer,
clutter_bin_layer,
CLUTTER_TYPE_LAYOUT_META);
diff --git a/clutter/clutter-box-layout.c b/clutter/clutter-box-layout.c
index 4d18585..e532802 100644
--- a/clutter/clutter-box-layout.c
+++ b/clutter/clutter-box-layout.c
@@ -157,6 +157,8 @@ enum
static GParamSpec *obj_props[PROP_LAST] = { NULL, };
+GType clutter_box_child_get_type (void);
+
G_DEFINE_TYPE (ClutterBoxChild,
clutter_box_child,
CLUTTER_TYPE_LAYOUT_META);
diff --git a/clutter/clutter-cairo-texture.c b/clutter/clutter-cairo-texture.c
index 100a6a1..c1c31e7 100644
--- a/clutter/clutter-cairo-texture.c
+++ b/clutter/clutter-cairo-texture.c
@@ -79,6 +79,8 @@
#include "clutter-marshal.h"
#include "clutter-private.h"
+#include "deprecated/clutter-cairo-texture.h"
+
G_DEFINE_TYPE (ClutterCairoTexture,
clutter_cairo_texture,
CLUTTER_TYPE_TEXTURE);
diff --git a/clutter/clutter-constraint.c b/clutter/clutter-constraint.c
index 92de2b0..b68794d 100644
--- a/clutter/clutter-constraint.c
+++ b/clutter/clutter-constraint.c
@@ -143,6 +143,7 @@
#include "clutter-actor.h"
#include "clutter-actor-meta-private.h"
+#include "clutter-private.h"
G_DEFINE_ABSTRACT_TYPE (ClutterConstraint,
clutter_constraint,
diff --git a/clutter/clutter-deform-effect.c b/clutter/clutter-deform-effect.c
index f1dac52..cc5e256 100644
--- a/clutter/clutter-deform-effect.c
+++ b/clutter/clutter-deform-effect.c
@@ -119,11 +119,11 @@ clutter_deform_effect_real_deform_vertex (ClutterDeformEffect *effect,
G_OBJECT_TYPE_NAME (effect));
}
-void
-_clutter_deform_effect_deform_vertex (ClutterDeformEffect *effect,
- gfloat width,
- gfloat height,
- CoglTextureVertex *vertex)
+static void
+clutter_deform_effect_deform_vertex (ClutterDeformEffect *effect,
+ gfloat width,
+ gfloat height,
+ CoglTextureVertex *vertex)
{
CLUTTER_DEFORM_EFFECT_GET_CLASS (effect)->deform_vertex (effect,
width, height,
@@ -241,9 +241,9 @@ clutter_deform_effect_paint_target (ClutterOffscreenEffect *effect)
cogl_color_init_from_4ub (&vertex.color, 255, 255, 255, opacity);
- _clutter_deform_effect_deform_vertex (self,
- width, height,
- &vertex);
+ clutter_deform_effect_deform_vertex (self,
+ width, height,
+ &vertex);
vertex_out = verts + i * (priv->x_tiles + 1) + j;
diff --git a/clutter/clutter-feature.c b/clutter/clutter-feature.c
index b70f7ca..45329dc 100644
--- a/clutter/clutter-feature.c
+++ b/clutter/clutter-feature.c
@@ -61,8 +61,8 @@ typedef struct ClutterFeatures
static ClutterFeatures* __features = NULL;
-ClutterFeatureFlags
-_clutter_features_from_cogl (guint cogl_flags)
+static ClutterFeatureFlags
+clutter_features_from_cogl (guint cogl_flags)
{
ClutterFeatureFlags clutter_flags = 0;
@@ -107,7 +107,7 @@ _clutter_feature_init (GError **error)
if (!_clutter_backend_create_context (context->backend, error))
return FALSE;
- __features->flags = (_clutter_features_from_cogl (cogl_get_features ())
+ __features->flags = (clutter_features_from_cogl (cogl_get_features ())
| _clutter_backend_get_features (context->backend));
__features->features_set = TRUE;
diff --git a/clutter/clutter-keysyms-table.c b/clutter/clutter-keysyms-table.c
index 27ce45e..785059c 100644
--- a/clutter/clutter-keysyms-table.c
+++ b/clutter/clutter-keysyms-table.c
@@ -1,5 +1,7 @@
#include <glib.h>
+#include "clutter-event.h"
+
/* Code below from GDK, which contains following comment:
*
* Thanks to Markus G. Kuhn <mkuhn acm org> for the ksysym<->Unicode
diff --git a/clutter/clutter-list-model.c b/clutter/clutter-list-model.c
index ba42f19..aac0b3f 100644
--- a/clutter/clutter-list-model.c
+++ b/clutter/clutter-list-model.c
@@ -94,6 +94,8 @@ struct _ClutterListModelIter
+GType clutter_list_model_iter_get_type (void);
+
/*
* ClutterListModel
*/
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index 4ffbab1..76cc3dc 100644
--- a/clutter/clutter-main.c
+++ b/clutter/clutter-main.c
@@ -102,7 +102,7 @@
#include "clutter-config.h"
#include "clutter-debug.h"
#include "clutter-device-manager-private.h"
-#include "clutter-event.h"
+#include "clutter-event-private.h"
#include "clutter-feature.h"
#include "clutter-frame-source.h"
#include "clutter-main.h"
diff --git a/clutter/clutter-script.c b/clutter/clutter-script.c
index ec88c0b..ee2aaf3 100644
--- a/clutter/clutter-script.c
+++ b/clutter/clutter-script.c
@@ -319,7 +319,7 @@ property_info_free (gpointer data)
}
}
-void
+static void
signal_info_free (gpointer data)
{
if (G_LIKELY (data))
diff --git a/clutter/clutter-settings.c b/clutter/clutter-settings.c
index d61620f..45d4f29 100644
--- a/clutter/clutter-settings.c
+++ b/clutter/clutter-settings.c
@@ -30,6 +30,7 @@
#endif /* HAVE_PANGO_FT2 */
#include "clutter-debug.h"
+#include "clutter-settings-private.h"
#include "clutter-private.h"
#define DEFAULT_FONT_NAME "Sans 12"
diff --git a/clutter/clutter-stage-manager.c b/clutter/clutter-stage-manager.c
index a600594..e743653 100644
--- a/clutter/clutter-stage-manager.c
+++ b/clutter/clutter-stage-manager.c
@@ -47,6 +47,8 @@
#include "clutter-private.h"
#include "clutter-version.h"
+#include "deprecated/clutter-stage-manager.h"
+
enum
{
PROP_0,
diff --git a/clutter/clutter-table-layout.c b/clutter/clutter-table-layout.c
index 0062a03..4b1bb1b 100644
--- a/clutter/clutter-table-layout.c
+++ b/clutter/clutter-table-layout.c
@@ -189,6 +189,8 @@ enum
PROP_EASING_DURATION
};
+GType clutter_table_child_get_type (void);
+
G_DEFINE_TYPE (ClutterTableChild,
clutter_table_child,
CLUTTER_TYPE_LAYOUT_META);
diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c
index c1c2c68..0cd3ef4 100644
--- a/clutter/clutter-texture.c
+++ b/clutter/clutter-texture.c
@@ -71,8 +71,9 @@
#include "clutter-scriptable.h"
#include "clutter-stage-private.h"
-#include "clutter-shader.h"
-#include "clutter-util.h"
+#include "deprecated/clutter-shader.h"
+#include "deprecated/clutter-texture.h"
+#include "deprecated/clutter-util.h"
static void clutter_scriptable_iface_init (ClutterScriptableIface *iface);
diff --git a/clutter/clutter-timeline.c b/clutter/clutter-timeline.c
index 20c0ab2..82a7c83 100644
--- a/clutter/clutter-timeline.c
+++ b/clutter/clutter-timeline.c
@@ -97,6 +97,8 @@
#include "config.h"
#endif
+#include "clutter-timeline.h"
+
#include "clutter-debug.h"
#include "clutter-easing.h"
#include "clutter-enum-types.h"
@@ -105,7 +107,8 @@
#include "clutter-master-clock.h"
#include "clutter-private.h"
#include "clutter-scriptable.h"
-#include "clutter-timeline.h"
+
+#include "deprecated/clutter-timeline.h"
static void clutter_scriptable_iface_init (ClutterScriptableIface *iface);
diff --git a/clutter/clutter-util.c b/clutter/clutter-util.c
index 2c754a0..eeecb63 100644
--- a/clutter/clutter-util.c
+++ b/clutter/clutter-util.c
@@ -36,8 +36,10 @@
#include <glib/gi18n-lib.h>
-#include "deprecated/clutter-util.h"
#include "clutter-main.h"
+#include "clutter-private.h"
+
+#include "deprecated/clutter-util.h"
/**
* clutter_util_next_p2:
diff --git a/clutter/deprecated/clutter-frame-source.c b/clutter/deprecated/clutter-frame-source.c
index cba050a..cd2fb06 100644
--- a/clutter/deprecated/clutter-frame-source.c
+++ b/clutter/deprecated/clutter-frame-source.c
@@ -29,10 +29,12 @@
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
-#include "clutter-frame-source.h"
-#include "clutter-timeout-interval.h"
+#include "clutter-main.h"
#include "clutter-private.h"
+#include "deprecated/clutter-frame-source.h"
+#include "deprecated/clutter-timeout-interval.h"
+
typedef struct _ClutterFrameSource ClutterFrameSource;
struct _ClutterFrameSource
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]