X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8855e47254a28f5141524b3aaaac03c2944e997..bfaee57e812ccfb264170dd9a03f0bb186c1773b:/src/gtk/cursor.cpp diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index cac9e5aaba..9f7329bfee 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -14,16 +14,11 @@ #include "wx/utils.h" #include "wx/app.h" +#include "wx/gtk/private.h" //for idle stuff + #include #include -//----------------------------------------------------------------------------- -// idle system -//----------------------------------------------------------------------------- - -extern void wxapp_install_idle_handler(); -extern bool g_isIdle; - //----------------------------------------------------------------------------- // wxCursor //----------------------------------------------------------------------------- @@ -45,7 +40,7 @@ wxCursorRefData::wxCursorRefData() wxCursorRefData::~wxCursorRefData() { - if (m_cursor) gdk_cursor_destroy( m_cursor ); + if (m_cursor) gdk_cursor_unref( m_cursor ); } //----------------------------------------------------------------------------- @@ -149,8 +144,8 @@ wxCursor::wxCursor(const char bits[], int width, int height, data, mask, fg->GetColor(), bg->GetColor(), hotSpotX, hotSpotY ); - gdk_bitmap_unref( data ); - gdk_bitmap_unref( mask ); + g_object_unref (G_OBJECT (data)); + g_object_unref (G_OBJECT (mask)); } #if wxUSE_IMAGE @@ -301,8 +296,8 @@ wxCursor::wxCursor( const wxImage & image ) hotSpotX, hotSpotY ); - gdk_bitmap_unref( data ); - gdk_bitmap_unref( mask ); + g_object_unref (G_OBJECT (data)); + g_object_unref (G_OBJECT (mask)); delete [] bits; delete [] maskBits; }