X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/gtk/clipbrd.cpp diff --git a/src/gtk/clipbrd.cpp b/src/gtk/clipbrd.cpp index 92fb7ecd8a..2938ec3861 100644 --- a/src/gtk/clipbrd.cpp +++ b/src/gtk/clipbrd.cpp @@ -32,6 +32,7 @@ #include "wx/scopedarray.h" #include "wx/scopeguard.h" +#include "wx/evtloop.h" #include "wx/gtk/private.h" @@ -75,7 +76,7 @@ public: ~wxClipboardSync() { while (ms_clipboard) - wxTheApp->YieldFor(wxEVT_CATEGORY_CLIPBOARD); + wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_CLIPBOARD); } // this method must be called by GTK+ callbacks to indicate that we got the