X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55ccdb93e4ae4b606a4068cb37492c1ec3ed77a6..a766986f6d443ba1d50e3af25f3306fa56e4518e:/src/gtk1/cursor.cpp?ds=sidebyside diff --git a/src/gtk1/cursor.cpp b/src/gtk1/cursor.cpp index bd1e6ca2bd..3b14510edb 100644 --- a/src/gtk1/cursor.cpp +++ b/src/gtk1/cursor.cpp @@ -31,10 +31,9 @@ extern bool g_isIdle; // wxCursor //----------------------------------------------------------------------------- -class wxCursorRefData: public wxObjectRefData +class wxCursorRefData : public wxGDIRefData { - public: - +public: wxCursorRefData(); virtual ~wxCursorRefData(); @@ -316,14 +315,19 @@ wxCursor::~wxCursor() { } -bool wxCursor::IsOk() const +GdkCursor *wxCursor::GetCursor() const { - return (m_refData != NULL); + return M_CURSORDATA->m_cursor; } -GdkCursor *wxCursor::GetCursor() const +wxGDIRefData *wxCursor::CreateGDIRefData() const { - return M_CURSORDATA->m_cursor; + return new wxCursorRefData; +} + +wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const +{ + return new wxCursorRefData(*wx_static_cast(const wxCursorRefData *, data)); } //-----------------------------------------------------------------------------