Busy cursor don't need wxYield(), SendIdleEvents()

is enough and safe.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-11-23 21:38:41 +00:00
parent 42b3e73ede
commit d1dea842a0
2 changed files with 10 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
#include "wx/cursor.h" #include "wx/cursor.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h"
#include <gdk/gdk.h> #include <gdk/gdk.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
@@ -204,7 +205,8 @@ void wxEndBusyCursor()
wxSetCursor( gs_savedCursor ); wxSetCursor( gs_savedCursor );
gs_savedCursor = wxNullCursor; gs_savedCursor = wxNullCursor;
wxYield(); if (wxTheApp)
wxTheApp->SendIdleEvents();
} }
void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
@@ -219,7 +221,8 @@ void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
wxSetCursor( wxCursor(wxCURSOR_WATCH) ); wxSetCursor( wxCursor(wxCURSOR_WATCH) );
wxYield(); if (wxTheApp)
wxTheApp->SendIdleEvents();
} }
bool wxIsBusy() bool wxIsBusy()

View File

@@ -14,6 +14,7 @@
#include "wx/cursor.h" #include "wx/cursor.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h"
#include <gdk/gdk.h> #include <gdk/gdk.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
@@ -204,7 +205,8 @@ void wxEndBusyCursor()
wxSetCursor( gs_savedCursor ); wxSetCursor( gs_savedCursor );
gs_savedCursor = wxNullCursor; gs_savedCursor = wxNullCursor;
wxYield(); if (wxTheApp)
wxTheApp->SendIdleEvents();
} }
void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) ) void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
@@ -219,7 +221,8 @@ void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
wxSetCursor( wxCursor(wxCURSOR_WATCH) ); wxSetCursor( wxCursor(wxCURSOR_WATCH) );
wxYield(); if (wxTheApp)
wxTheApp->SendIdleEvents();
} }
bool wxIsBusy() bool wxIsBusy()