]> git.saurik.com Git - wxWidgets.git/commitdiff
Busy cursor don't need wxYield(), SendIdleEvents()
authorRobert Roebling <robert@roebling.de>
Thu, 23 Nov 2000 21:38:41 +0000 (21:38 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 23 Nov 2000 21:38:41 +0000 (21:38 +0000)
   is enough and safe.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/cursor.cpp
src/gtk1/cursor.cpp

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