From: Robert Roebling Date: Tue, 15 Feb 2000 16:38:01 +0000 (+0000) Subject: Minor wxYield() change. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7741c4e1f58f2371cde5b558847ee1ec4215a34f Minor wxYield() change. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index fcc9087378..52aa11a202 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -93,17 +93,17 @@ bool wxYield() while (gtk_events_pending()) gtk_main_iteration(); - /* it's necessary to call ProcessIdle() to update the frames sizes which - might have been changed (it also will update other things set from - OnUpdateUI() which is a nice (and desired) side effect) */ - while (wxTheApp->ProcessIdle()) { } - if (has_idle) { /* re-add idle handler */ wxTheApp->m_idleTag = gtk_idle_add( wxapp_idle_callback, (gpointer) NULL ); } + /* it's necessary to call ProcessIdle() to update the frames sizes which + might have been changed (it also will update other things set from + OnUpdateUI() which is a nice (and desired) side effect) */ + while (wxTheApp->ProcessIdle()) { } + return TRUE; } diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index fcc9087378..52aa11a202 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -93,17 +93,17 @@ bool wxYield() while (gtk_events_pending()) gtk_main_iteration(); - /* it's necessary to call ProcessIdle() to update the frames sizes which - might have been changed (it also will update other things set from - OnUpdateUI() which is a nice (and desired) side effect) */ - while (wxTheApp->ProcessIdle()) { } - if (has_idle) { /* re-add idle handler */ wxTheApp->m_idleTag = gtk_idle_add( wxapp_idle_callback, (gpointer) NULL ); } + /* it's necessary to call ProcessIdle() to update the frames sizes which + might have been changed (it also will update other things set from + OnUpdateUI() which is a nice (and desired) side effect) */ + while (wxTheApp->ProcessIdle()) { } + return TRUE; }