]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/cursor.cpp
missing commit
[wxWidgets.git] / src / gtk / cursor.cpp
index 152796d630e992b875fcaf28ef888a332a127834..af25572696ca394ae61a3e32075a19ff1a627bac 100644 (file)
@@ -14,7 +14,6 @@
 
 #ifndef WX_PRECOMP
     #include "wx/window.h"
-    #include "wx/app.h"
     #include "wx/image.h"
     #include "wx/bitmap.h"
     #include "wx/log.h"
@@ -51,10 +50,16 @@ wxCursorRefData::wxCursorRefData()
 
 wxCursorRefData::~wxCursorRefData()
 {
-    if (m_cursor) gdk_cursor_unref( m_cursor );
+    if (m_cursor)
+    {
+#ifdef __WXGTK3__
+        g_object_unref(m_cursor);
+#else
+        gdk_cursor_unref(m_cursor);
+#endif
+    }
 }
 
-
 //-----------------------------------------------------------------------------
 // wxCursor
 //-----------------------------------------------------------------------------
@@ -66,7 +71,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxGDIObject)
 // used in the following two ctors
 extern GtkWidget *wxGetRootWindow();
 
-
 wxCursor::wxCursor()
 {
 }