mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 22:39:11 +02:00
Gtk3: we'll use g_main_context_iteration(), better fits our needs.
This commit is contained in:
parent
27bd792656
commit
6ab7bd1d7c
@ -560,7 +560,8 @@ begin
|
||||
{$IFDEF GTK3DEBUGCORE}
|
||||
DebugLn('TGtk3WidgetSet.AppWaitMessage');
|
||||
{$ENDIF}
|
||||
gtk_main_iteration;
|
||||
if not g_main_context_pending(nil) then
|
||||
g_main_context_iteration(nil, True);
|
||||
end;
|
||||
|
||||
procedure TGtk3WidgetSet.AppProcessMessages;
|
||||
@ -568,8 +569,8 @@ begin
|
||||
{$IFDEF GTK3DEBUGCORE}
|
||||
DebugLn('TGtk3WidgetSet.AppProcessMessages');
|
||||
{$ENDIF}
|
||||
while gtk_events_pending do
|
||||
gtk_main_iteration_do(False);
|
||||
if g_main_context_pending(nil) then
|
||||
g_main_context_iteration(nil, False);
|
||||
end;
|
||||
|
||||
procedure TGtk3WidgetSet.AppTerminate;
|
||||
|
Loading…
Reference in New Issue
Block a user