[gtkmm] Replace a used of (removed from GTK+) gdk_spawn_*() API.



commit 03e1a3b466d6d439fbe987649e59bd9cfdd7bc46
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Jan 5 01:51:48 2011 +0100

    Replace a used of (removed from GTK+) gdk_spawn_*() API.
    
    * glom/application.cc: This partially fixes the build.

 ChangeLog         |    7 +++++++
 gdk/src/cursor.hg |    8 +++++++-
 2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cd69d9f..c26685f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-01-05  Murray Cumming  <murrayc murrayc com>
 
+	Cursor: Add create() methods.
+
+	* gdk/src/cursor.hg: Add create() methods, making the constructors protected, 
+	because this should now be used via RefPtr.
+
+2011-01-05  Murray Cumming  <murrayc murrayc com>
+
 	Minor corrections to previous commit to make things clearer.
 
 	* gtk/src/image.hg:
diff --git a/gdk/src/cursor.hg b/gdk/src/cursor.hg
index 1f14ced..d467f72 100644
--- a/gdk/src/cursor.hg
+++ b/gdk/src/cursor.hg
@@ -40,7 +40,7 @@ class Cursor : public Glib::Object
   _DO_NOT_DERIVE_GTYPE //We use DO_NOT_DERIVE_GTYPE because glib does not allow us to derive from a non-fundamental (abstract) type, for some reason.
   _IGNORE(gdk_cursor_ref, gdk_cursor_unref) //deprecated
 
-public:
+protected:
   explicit Cursor(CursorType cursor_type);
   _IGNORE(gdk_cursor_new)
 
@@ -52,6 +52,12 @@ public:
 
   explicit Cursor(const Glib::RefPtr<Display>& display, const Glib::ustring& name);
   _IGNORE(gdk_cursor_new_from_name)
+  
+protected:
+  _WRAP_CREATE(CursorType cursor_type)
+  _WRAP_CREATE(const Glib::RefPtr<Display>& display, CursorType cursor_type)
+  _WRAP_CREATE(const Glib::RefPtr<Display>& display, const Glib::RefPtr<Pixbuf>& pixbuf, int x, int y)
+  _WRAP_CREATE(const Glib::RefPtr<Display>& display, const Glib::ustring& name)
 
   _WRAP_METHOD(Glib::RefPtr<Display> get_display(), gdk_cursor_get_display, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Display> get_display() const, gdk_cursor_get_display, refreturn, constversion)



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