[cluttermm] Alpha: Avoid deprecation warnings.



commit ae1ad467e0693fe1387505ad947d4133f548e3da
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Mar 24 08:59:54 2014 +0100

    Alpha: Avoid deprecation warnings.
    
    And slightly improve the deprecation text.

 clutter/src/alpha.hg |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/clutter/src/alpha.hg b/clutter/src/alpha.hg
index 173c60e..cab463f 100644
--- a/clutter/src/alpha.hg
+++ b/clutter/src/alpha.hg
@@ -21,13 +21,16 @@
 _DEFS(cluttermm,clutter)
 _PINCLUDE(glibmm/private/object_p.h)
 
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#define CLUTTER_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
+
 namespace Clutter
 {
 
 /**
- * @deprecated For newly written code, it is recommended to use the
- * "progress-mode" property of Clutter::Timeline, or the 
- * Clutter::Timeline::set_progress_func() method instead of Clutter::Alpha.
+ * @deprecated Use the "progress-mode" property of Clutter::Timeline, or the 
+ * Clutter::Timeline::set_progress_func() method instead.
  */
 class Alpha : public Glib::Object
 {


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