From 4ae36f1e5f2374d10f683720c0c876e952636755 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 27 Feb 2012 15:21:07 +0000 Subject: [PATCH] Add a deprecated header for ClutterAnimatable --- clutter/Makefile.am | 1 + clutter/clutter-animatable.h | 9 ----- clutter/clutter-deprecated.h | 1 + clutter/deprecated/clutter-animatable.h | 47 +++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 9 deletions(-) create mode 100644 clutter/deprecated/clutter-animatable.h diff --git a/clutter/Makefile.am b/clutter/Makefile.am index a47cbe34d..27fde63ec 100644 --- a/clutter/Makefile.am +++ b/clutter/Makefile.am @@ -232,6 +232,7 @@ source_c_priv = \ # deprecated installed headers deprecated_h = \ $(srcdir)/deprecated/clutter-actor.h \ + $(srcdir)/deprecated/clutter-animatable.h \ $(srcdir)/deprecated/clutter-backend.h \ $(srcdir)/deprecated/clutter-behaviour.h \ $(srcdir)/deprecated/clutter-behaviour-depth.h \ diff --git a/clutter/clutter-animatable.h b/clutter/clutter-animatable.h index 8bd3d37a8..945431b44 100644 --- a/clutter/clutter-animatable.h +++ b/clutter/clutter-animatable.h @@ -97,15 +97,6 @@ struct _ClutterAnimatableIface GType clutter_animatable_get_type (void) G_GNUC_CONST; -CLUTTER_DEPRECATED_FOR(clutter_animatable_interpolate_value) -gboolean clutter_animatable_animate_property (ClutterAnimatable *animatable, - ClutterAnimation *animation, - const gchar *property_name, - const GValue *initial_value, - const GValue *final_value, - gdouble progress, - GValue *value); - GParamSpec *clutter_animatable_find_property (ClutterAnimatable *animatable, const gchar *property_name); void clutter_animatable_get_initial_state (ClutterAnimatable *animatable, diff --git a/clutter/clutter-deprecated.h b/clutter/clutter-deprecated.h index 46cad8e70..6ca93b083 100644 --- a/clutter/clutter-deprecated.h +++ b/clutter/clutter-deprecated.h @@ -4,6 +4,7 @@ #define __CLUTTER_DEPRECATED_H_INSIDE__ #include "deprecated/clutter-actor.h" +#include "deprecated/clutter-animatable.h" #include "deprecated/clutter-backend.h" #include "deprecated/clutter-behaviour.h" #include "deprecated/clutter-behaviour-depth.h" diff --git a/clutter/deprecated/clutter-animatable.h b/clutter/deprecated/clutter-animatable.h new file mode 100644 index 000000000..df40e288e --- /dev/null +++ b/clutter/deprecated/clutter-animatable.h @@ -0,0 +1,47 @@ +/* + * Clutter. + * + * An OpenGL based 'interactive canvas' library. + * + * Copyright (C) 2009 Intel Corporation. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * 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, see . + * + * Author: + * Emmanuele Bassi + */ + +#ifndef __CLUTTER_ANIMATABLE_DEPRECATED_H__ +#define __CLUTTER_ANIMATABLE_DEPRECATED_H__ + +#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) +#error "Only can be included directly." +#endif + +#include + +G_BEGIN_DECLS + +CLUTTER_DEPRECATED_IN_1_8_FOR(clutter_animatable_interpolate_value) +gboolean clutter_animatable_animate_property (ClutterAnimatable *animatable, + ClutterAnimation *animation, + const gchar *property_name, + const GValue *initial_value, + const GValue *final_value, + gdouble progress, + GValue *value); + +G_END_DECLS + +#endif /* __CLUTTER_ANIMATABLE_DEPRECATED_H__ */