[cluttermm] BinLayout: Deprecate some of the API.



commit 484e8fa97f7078f69ad64c9c3544aafa9af62440
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Mar 24 09:10:58 2014 +0100

    BinLayout: Deprecate some of the API.

 clutter/src/bin-layout.hg |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/clutter/src/bin-layout.hg b/clutter/src/bin-layout.hg
index a39c4ca..b0b0ec4 100644
--- a/clutter/src/bin-layout.hg
+++ b/clutter/src/bin-layout.hg
@@ -20,9 +20,16 @@
 _DEFS(cluttermm,clutter)
 _PINCLUDE(cluttermm/private/layout-manager_p.h)
 
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
+
 namespace Clutter
 {
 
+/**
+ * @deprecated Use ActorAlign and the Actor API instead.
+ */
 _WRAP_ENUM(BinAlignment, ClutterBinAlignment)
 
 class BinLayout :
@@ -36,12 +43,12 @@ protected:
 public:
   _WRAP_CREATE(BinAlignment x_align, BinAlignment y_align)
 
-  _WRAP_METHOD(void set_alignment(const Glib::RefPtr<Actor>& child, BinAlignment x_align, BinAlignment 
y_align), clutter_bin_layout_set_alignment)
-  _WRAP_METHOD(void get_alignment(const Glib::RefPtr<Actor>& child, BinAlignment &x_align, BinAlignment 
&y_align) const, clutter_bin_layout_get_alignment)
-  _WRAP_METHOD(void add(const Glib::RefPtr<Actor>& child, BinAlignment x_align, BinAlignment y_align), 
clutter_bin_layout_add)
+  _WRAP_METHOD(void set_alignment(const Glib::RefPtr<Actor>& child, BinAlignment x_align, BinAlignment 
y_align), clutter_bin_layout_set_alignment, deprecated "Use the x-align and y-align properties of Actor 
instead.")
+  _WRAP_METHOD(void get_alignment(const Glib::RefPtr<Actor>& child, BinAlignment& x_align, BinAlignment& 
y_align) const, clutter_bin_layout_get_alignment, deprecated "Use the x-align and y-align properties of Actor 
instead.")
+  _WRAP_METHOD(void add(const Glib::RefPtr<Actor>& child, BinAlignment x_align, BinAlignment y_align), 
clutter_bin_layout_add, deprecated "Use Actor::add_child() instead.")
 
-  _WRAP_PROPERTY("x-align", BinAlignment)
-  _WRAP_PROPERTY("y-align", BinAlignment)
+  _WRAP_PROPERTY("x-align", BinAlignment, deprecated "Use the x-align and y-align properties of Actor 
instead.")
+  _WRAP_PROPERTY("y-align", BinAlignment, deprecated "Use the x-align and y-align properties of Actor 
instead.")
 };
 
 } // namespace Clutter


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