[cluttermm] Backend: Deprecate many methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Backend: Deprecate many methods.
- Date: Sun, 23 Mar 2014 21:42:30 +0000 (UTC)
commit 04fefceb51099701cd63e2ff659d2ba19a733a1c
Author: Murray Cumming <murrayc murrayc com>
Date: Sun Mar 23 22:28:38 2014 +0100
Backend: Deprecate many methods.
Although we have not yet added the replacements.
clutter/src/backend.hg | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/clutter/src/backend.hg b/clutter/src/backend.hg
index 160ad2c..46560c0 100644
--- a/clutter/src/backend.hg
+++ b/clutter/src/backend.hg
@@ -21,6 +21,10 @@
_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
{
@@ -35,20 +39,20 @@ protected:
public:
_WRAP_METHOD(static Glib::RefPtr<Backend> get_default(), clutter_get_default_backend, refreturn)
- _WRAP_METHOD(double get_resolution() const, clutter_backend_get_resolution)
- _WRAP_METHOD(void set_resolution(double dpi), clutter_backend_set_resolution)
+ _WRAP_METHOD(double get_resolution() const, clutter_backend_get_resolution, deprecated "Use Settings's
front-dpi property instead.")
+ _WRAP_METHOD(void set_resolution(double dpi), clutter_backend_set_resolution, deprecated "Use Settings's
front-dpi property instead.")
- _WRAP_METHOD(guint get_double_click_time() const, clutter_backend_get_double_click_time)
- _WRAP_METHOD(void set_double_click_time(guint msec), clutter_backend_set_double_click_time)
+ _WRAP_METHOD(guint get_double_click_time() const, clutter_backend_get_double_click_time, deprecated "Use
Settings's double-click-time property instead.")
+ _WRAP_METHOD(void set_double_click_time(guint msec), clutter_backend_set_double_click_time, deprecated
"Use Settings's double-click-time property instead.")
- _WRAP_METHOD(guint get_double_click_distance() const, clutter_backend_get_double_click_distance)
- _WRAP_METHOD(void set_double_click_distance(guint distance), clutter_backend_set_double_click_distance)
+ _WRAP_METHOD(guint get_double_click_distance() const, clutter_backend_get_double_click_distance,
deprecated "Use Settings's double-click-distance property instead.")
+ _WRAP_METHOD(void set_double_click_distance(guint distance), clutter_backend_set_double_click_distance,
deprecated "Use Settings's double-click-distance property instead.")
_WRAP_METHOD(::Cairo::FontOptions get_font_options() const, clutter_backend_get_font_options)
_WRAP_METHOD(void set_font_options(const ::Cairo::FontOptions& options), clutter_backend_set_font_options)
- _WRAP_METHOD(Glib::ustring get_font_name() const, clutter_backend_get_font_name)
- _WRAP_METHOD(void set_font_name(const Glib::ustring& font_name), clutter_backend_set_font_name)
+ _WRAP_METHOD(Glib::ustring get_font_name() const, clutter_backend_get_font_name, deprecated "Use
Settings's font-name property instead.")
+ _WRAP_METHOD(void set_font_name(const Glib::ustring& font_name), clutter_backend_set_font_name, deprecated
"Use Settings's font-name property instead.")
//We use no_default_handler because the C class struct is hidden.
_WRAP_SIGNAL(void font_changed(), "font-changed", no_default_handler)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]