[gtkmm] cursor: Deprecated the constructor that takes no Display.



commit 4be3e957e07095b83b0ff14fbdc076c4e52f5dd0
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Nov 3 12:04:11 2014 +0100

    cursor: Deprecated the constructor that takes no Display.
    
    Because gdk_cursor_new() is now deprecated.

 gdk/src/cursor.hg |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gdk/src/cursor.hg b/gdk/src/cursor.hg
index 8d081a7..a5edb6c 100644
--- a/gdk/src/cursor.hg
+++ b/gdk/src/cursor.hg
@@ -23,6 +23,10 @@
 _DEFS(gdkmm,gdk)
 _PINCLUDE(glibmm/private/object_p.h)
 
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#undef GDK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
 
 namespace Gdk
 {
@@ -48,7 +52,8 @@ public:
   //but constructors assume that they own the instance.
   //And we would have to have to use the gdk_cursor_new_*() functions in the constructors anyway,
   //because they do more than just call g_object_new().
-  _WRAP_METHOD(static Glib::RefPtr<Cursor> create(CursorType cursor_type), gdk_cursor_new)
+  _WRAP_METHOD(static Glib::RefPtr<Cursor> create(CursorType cursor_type), gdk_cursor_new, deprecated "Use 
the constructor that takes a Display instead.")
+
   _WRAP_METHOD(static Glib::RefPtr<Cursor> create(const Glib::RefPtr<Display>& display, CursorType 
cursor_type), gdk_cursor_new_for_display)
   _WRAP_METHOD(static Glib::RefPtr<Cursor> create(const Glib::RefPtr<Display>& display, const 
Glib::RefPtr<Pixbuf>& pixbuf, int x, int y), gdk_cursor_new_from_pixbuf)
 


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