return false from Dispatch() if gtk_main_quit() was called (patch 1864846)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -318,6 +318,11 @@ wxMSW:
|
|||||||
- Fix rare bug with messages delivered to wrong wxSocket (Tim Kosse)
|
- Fix rare bug with messages delivered to wrong wxSocket (Tim Kosse)
|
||||||
- Fix setting icons when they have non-default (16*16 and 32*32) sizes
|
- Fix setting icons when they have non-default (16*16 and 32*32) sizes
|
||||||
|
|
||||||
|
wxGTK:
|
||||||
|
|
||||||
|
- Return false from wxEventLoop::Dispatch() if gtk_main_quit() was called and
|
||||||
|
so the loop should exit (Rodolfo Schulz de Lima)
|
||||||
|
|
||||||
|
|
||||||
2.8.7
|
2.8.7
|
||||||
-----
|
-----
|
||||||
|
@@ -112,7 +112,6 @@ bool wxGUIEventLoop::Dispatch()
|
|||||||
{
|
{
|
||||||
wxCHECK_MSG( IsRunning(), false, _T("can't call Dispatch() if not running") );
|
wxCHECK_MSG( IsRunning(), false, _T("can't call Dispatch() if not running") );
|
||||||
|
|
||||||
gtk_main_iteration();
|
// gtk_main_iteration() returns TRUE only if gtk_main_quit() was called
|
||||||
|
return !gtk_main_iteration();
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user