[cluttermm] Stage: Deprecate get_is_default() and avoid deprecation warnings.



commit 5d6904b68c613cecb55eeeab5a332ffa1de80d9b
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 28 09:35:32 2014 +0100

    Stage: Deprecate get_is_default() and avoid deprecation warnings.

 clutter/src/stage.hg |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/clutter/src/stage.hg b/clutter/src/stage.hg
index c9357fb..62b3b39 100644
--- a/clutter/src/stage.hg
+++ b/clutter/src/stage.hg
@@ -21,11 +21,18 @@
 _DEFS(cluttermm,clutter)
 _PINCLUDE(cluttermm/private/group_p.h)
 
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
+
 namespace Clutter
 {
 
 _WRAP_ENUM(PickMode, ClutterPickMode)
 
+/**
+ * @deprecated Fog settings are ignored.
+ */
 typedef ClutterFog Fog;
 
 class Perspective
@@ -127,7 +134,7 @@ public:
   _WRAP_METHOD(void get_fog(Fog& fog) const, clutter_stage_get_fog, deprecated "This function will always 
return default values.")
 
   _WRAP_METHOD(void stage_event(Event* event), clutter_stage_event)
-  _WRAP_METHOD(bool is_default() const, clutter_stage_is_default)
+  _WRAP_METHOD(bool is_default() const, clutter_stage_is_default, deprecated "Track the stage pointer inside 
your application code, or use Actor::get_stage() to retrieve the stage for a given actor.")
   _WRAP_METHOD(void ensure_current(), clutter_stage_ensure_current)
   _WRAP_METHOD(void ensure_viewport(), clutter_stage_ensure_viewport)
 


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