From 9613374c73984a76e8d7780105004dde2ac3448e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 27 Feb 2012 15:16:38 +0000 Subject: [PATCH] Add deprecated header for ClutterStageManager --- clutter/Makefile.am | 1 + clutter/clutter-deprecated.h | 1 + clutter/clutter-stage-manager.h | 7 +--- clutter/deprecated/clutter-stage-manager.h | 42 ++++++++++++++++++++++ 4 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 clutter/deprecated/clutter-stage-manager.h diff --git a/clutter/Makefile.am b/clutter/Makefile.am index fd058e132..a47cbe34d 100644 --- a/clutter/Makefile.am +++ b/clutter/Makefile.am @@ -250,6 +250,7 @@ deprecated_h = \ $(srcdir)/deprecated/clutter-rectangle.h \ $(srcdir)/deprecated/clutter-score.h \ $(srcdir)/deprecated/clutter-shader.h \ + $(srcdir)/deprecated/clutter-stage-manager.h \ $(srcdir)/deprecated/clutter-stage.h \ $(srcdir)/deprecated/clutter-timeline.h \ $(srcdir)/deprecated/clutter-timeout-pool.h \ diff --git a/clutter/clutter-deprecated.h b/clutter/clutter-deprecated.h index f58033231..46cad8e70 100644 --- a/clutter/clutter-deprecated.h +++ b/clutter/clutter-deprecated.h @@ -22,6 +22,7 @@ #include "deprecated/clutter-rectangle.h" #include "deprecated/clutter-score.h" #include "deprecated/clutter-shader.h" +#include "deprecated/clutter-stage-manager.h" #include "deprecated/clutter-stage.h" #include "deprecated/clutter-timeline.h" #include "deprecated/clutter-timeout-pool.h" diff --git a/clutter/clutter-stage-manager.h b/clutter/clutter-stage-manager.h index 4baf184fe..b9174b1fc 100644 --- a/clutter/clutter-stage-manager.h +++ b/clutter/clutter-stage-manager.h @@ -28,8 +28,7 @@ #ifndef __CLUTTER_STAGE_MANAGER_H__ #define __CLUTTER_STAGE_MANAGER_H__ -#include -#include +#include G_BEGIN_DECLS @@ -77,10 +76,6 @@ ClutterStage * clutter_stage_manager_get_default_stage (ClutterStageManage GSList * clutter_stage_manager_list_stages (ClutterStageManager *stage_manager); const GSList * clutter_stage_manager_peek_stages (ClutterStageManager *stage_manager); -CLUTTER_DEPRECATED -void clutter_stage_manager_set_default_stage (ClutterStageManager *stage_manager, - ClutterStage *stage); - G_END_DECLS #endif /* __CLUTTER_STAGE_MANAGER_H__ */ diff --git a/clutter/deprecated/clutter-stage-manager.h b/clutter/deprecated/clutter-stage-manager.h new file mode 100644 index 000000000..df19298dd --- /dev/null +++ b/clutter/deprecated/clutter-stage-manager.h @@ -0,0 +1,42 @@ +/* + * Clutter. + * + * An OpenGL based 'interactive canvas' library. + * + * Copyright (C) 2008 OpenedHand + * + * 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 + */ + +#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION) +#error "Only can be included directly." +#endif + +#ifndef __CLUTTER_STAGE_MANAGER_DEPRECATED_H__ +#define __CLUTTER_STAGE_MANAGER_DEPRECATED_H__ + +#include + +G_BEGIN_DECLS + +CLUTTER_DEPRECATED_IN_1_2 +void clutter_stage_manager_set_default_stage (ClutterStageManager *stage_manager, + ClutterStage *stage); + +G_END_DECLS + +#endif /*__CLUTTER_STAGE_MANAGER_DEPRECATED_H__ */ +