]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clipbrd.cpp
fix wxGTK1 compilation after wxTextEntry DoGetValue() change
[wxWidgets.git] / src / gtk / clipbrd.cpp
index 92fb7ecd8a335efd0fd4c72ae16dce3db34f12f4..2938ec3861228f706f606342eee9347baadc7fa1 100644 (file)
@@ -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