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:
Vadim Zeitlin
2003-07-06 23:26:19 +00:00
parent ee5749a6c1
commit a03cac3f78
3 changed files with 5 additions and 5 deletions

View File

@@ -117,7 +117,9 @@ wxGTK:
- added wxEVT_MENU_OPEN event generation - added wxEVT_MENU_OPEN event generation
- fixed bug in generic file selector causing incomplete file extensions to - fixed bug in generic file selector causing incomplete file extensions to
be appended to filenames with no extension 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: wxMac:

View File

@@ -4214,8 +4214,7 @@ bool wxWindowGTK::DoPopupMenu( wxMenu *menu, int x, int y )
while (is_waiting) while (is_waiting)
{ {
while (gtk_events_pending()) gtk_main_iteration();
gtk_main_iteration();
} }
return TRUE; return TRUE;

View File

@@ -4214,8 +4214,7 @@ bool wxWindowGTK::DoPopupMenu( wxMenu *menu, int x, int y )
while (is_waiting) while (is_waiting)
{ {
while (gtk_events_pending()) gtk_main_iteration();
gtk_main_iteration();
} }
return TRUE; return TRUE;