]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clipbrd.cpp
remove wxAppConsoleBase::OInitGui and leave it only in wxApp[Base] class
[wxWidgets.git] / src / gtk / clipbrd.cpp
index 96d6da0c0f3a4526642ce46adf5db0b69fe64790..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
@@ -102,7 +103,7 @@ public:
 private:
     static wxClipboard *ms_clipboard;
 
-    DECLARE_NO_COPY_CLASS(wxClipboardSync)
+    wxDECLARE_NO_COPY_CLASS(wxClipboardSync);
 };
 
 wxClipboard *wxClipboardSync::ms_clipboard = NULL;