is enough and safe.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8781
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/cursor.h"
#include "wx/utils.h"
+#include "wx/app.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
wxSetCursor( gs_savedCursor );
gs_savedCursor = wxNullCursor;
- wxYield();
+ if (wxTheApp)
+ wxTheApp->SendIdleEvents();
}
void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
wxSetCursor( wxCursor(wxCURSOR_WATCH) );
- wxYield();
+ if (wxTheApp)
+ wxTheApp->SendIdleEvents();
}
bool wxIsBusy()
#include "wx/cursor.h"
#include "wx/utils.h"
+#include "wx/app.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
wxSetCursor( gs_savedCursor );
gs_savedCursor = wxNullCursor;
- wxYield();
+ if (wxTheApp)
+ wxTheApp->SendIdleEvents();
}
void wxBeginBusyCursor( wxCursor *WXUNUSED(cursor) )
wxSetCursor( wxCursor(wxCURSOR_WATCH) );
- wxYield();
+ if (wxTheApp)
+ wxTheApp->SendIdleEvents();
}
bool wxIsBusy()