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:
@@ -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:
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user