X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..4521f6c88cbefa7f13e3733d344776b795f981e4:/src/gtk/cursor.cpp diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index 152796d630..aab088f64a 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -2,7 +2,6 @@ // Name: src/gtk/cursor.cpp // Purpose: wxCursor implementation // Author: Robert Roebling -// Id: $Id$ // Copyright: (c) 1998 Robert Roebling // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -14,7 +13,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 +49,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 +70,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxGDIObject) // used in the following two ctors extern GtkWidget *wxGetRootWindow(); - wxCursor::wxCursor() { }