X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/gtk/cursor.cpp?ds=inline diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index 152796d630..af25572696 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -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() { }