Restore wxBusyCursor::Get{Story,Busy}Cursor() in wxGTK.
Even if these methods are completely useless, we still need to keep them in wxGTK 3.0 for ABI compatibility. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -751,11 +751,7 @@ public:
|
|||||||
~wxBusyCursor()
|
~wxBusyCursor()
|
||||||
{ wxEndBusyCursor(); }
|
{ wxEndBusyCursor(); }
|
||||||
|
|
||||||
// FIXME: These two methods are currently only implemented (and needed?)
|
// Obsolete internal methods, do not use.
|
||||||
// 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.
|
|
||||||
static const wxCursor &GetStoredCursor();
|
static const wxCursor &GetStoredCursor();
|
||||||
static const wxCursor GetBusyCursor();
|
static const wxCursor GetBusyCursor();
|
||||||
};
|
};
|
||||||
|
@@ -310,6 +310,17 @@ wxCursor::CloneGDIRefData(const wxGDIRefData * WXUNUSED(data)) const
|
|||||||
|
|
||||||
static int gs_busyCount = 0;
|
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)
|
void wxBeginBusyCursor(const wxCursor* cursor)
|
||||||
{
|
{
|
||||||
if (gs_busyCount++ == 0)
|
if (gs_busyCount++ == 0)
|
||||||
|
Reference in New Issue
Block a user