// Name: src/gtk/cursor.cpp
// Purpose: wxCursor implementation
// Author: Robert Roebling
-// Id: $Id$
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef WX_PRECOMP
#include "wx/window.h"
- #include "wx/app.h"
#include "wx/image.h"
#include "wx/bitmap.h"
#include "wx/log.h"
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
//-----------------------------------------------------------------------------
// used in the following two ctors
extern GtkWidget *wxGetRootWindow();
-
wxCursor::wxCursor()
{
}