diff --git a/include/wx/utils.h b/include/wx/utils.h index 92701eae15..91688f5fad 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -751,11 +751,7 @@ public: ~wxBusyCursor() { wxEndBusyCursor(); } - // FIXME: These two methods are currently only implemented (and needed?) - // in wxGTK. BusyCursor handling should probably be moved to - // common code since the wxGTK and wxMSW implementations are very - // similar except for wxMSW using HCURSOR directly instead of - // wxCursor.. -- RL. + // Obsolete internal methods, do not use. static const wxCursor &GetStoredCursor(); static const wxCursor GetBusyCursor(); }; diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index 245dc76f9d..c84da466c4 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -310,6 +310,17 @@ wxCursor::CloneGDIRefData(const wxGDIRefData * WXUNUSED(data)) const static int gs_busyCount = 0; +const wxCursor &wxBusyCursor::GetStoredCursor() +{ + static wxCursor s_storedCursor; + return s_storedCursor; +} + +const wxCursor wxBusyCursor::GetBusyCursor() +{ + return wxCursor(wxCURSOR_WATCH); +} + void wxBeginBusyCursor(const wxCursor* cursor) { if (gs_busyCount++ == 0)