don't east 100% of CPU when showing popup menu (patch 762500)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ee5749a6c1
commit
a03cac3f78
@ -117,7 +117,9 @@ wxGTK:
|
||||
- added wxEVT_MENU_OPEN event generation
|
||||
- fixed bug in generic file selector causing incomplete file extensions to
|
||||
be appended to filenames with no extension
|
||||
- added SetSelection implementation for GTK+ 2
|
||||
- added wxTextCtrl::SetSelection implementation for GTK+ 2
|
||||
- fixed wxTextCtrl::IsEditable() for GTK+ 2
|
||||
- don't consume 100% CPU when showing a poup menu
|
||||
|
||||
wxMac:
|
||||
|
||||
|
@ -4214,8 +4214,7 @@ bool wxWindowGTK::DoPopupMenu( wxMenu *menu, int x, int y )
|
||||
|
||||
while (is_waiting)
|
||||
{
|
||||
while (gtk_events_pending())
|
||||
gtk_main_iteration();
|
||||
gtk_main_iteration();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
@ -4214,8 +4214,7 @@ bool wxWindowGTK::DoPopupMenu( wxMenu *menu, int x, int y )
|
||||
|
||||
while (is_waiting)
|
||||
{
|
||||
while (gtk_events_pending())
|
||||
gtk_main_iteration();
|
||||
gtk_main_iteration();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user