Work around a stupid assert in GTK wxGUIEventLoop::Dispatch()
This commit is contained in:
parent
0309228276
commit
cbce4d7663
|
@ -24,6 +24,10 @@
|
||||||
|
|
||||||
#include <widgets/net_selector.h>
|
#include <widgets/net_selector.h>
|
||||||
|
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
#include <gtk/gtk.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <class_board.h>
|
#include <class_board.h>
|
||||||
#include <netinfo.h>
|
#include <netinfo.h>
|
||||||
#include <wx/arrstr.h>
|
#include <wx/arrstr.h>
|
||||||
|
@ -128,7 +132,11 @@ public:
|
||||||
CaptureMouse();
|
CaptureMouse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
gtk_main_iteration(); // work around stupid assert in wxGUIEventLoop::Dispatch()
|
||||||
|
#else
|
||||||
eventLoop.Dispatch();
|
eventLoop.Dispatch();
|
||||||
|
#endif
|
||||||
|
|
||||||
if( m_cancelled || m_selected )
|
if( m_cancelled || m_selected )
|
||||||
break;
|
break;
|
||||||
|
@ -194,7 +202,7 @@ protected:
|
||||||
rebuildList();
|
rebuildList();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accecpt single-click closure from m_netListBox
|
// Accept single-click closure from m_netListBox
|
||||||
void onListBoxMouseClick( wxMouseEvent& aEvent )
|
void onListBoxMouseClick( wxMouseEvent& aEvent )
|
||||||
{
|
{
|
||||||
wxPoint relativePos = m_netListBox->ScreenToClient( wxGetMousePosition() );
|
wxPoint relativePos = m_netListBox->ScreenToClient( wxGetMousePosition() );
|
||||||
|
|
Loading…
Reference in New Issue