projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cee2e6
)
GApplication: let the main loop drain on shutdown
author
Ryan Lortie
<desrt@desrt.ca>
Sat, 21 Feb 2015 15:24:23 +0000
(10:24 -0500)
committer
Ryan Lortie
<desrt@desrt.ca>
Mon, 23 Feb 2015 00:14:03 +0000
(19:14 -0500)
After ::shutdown, run the mainloop until all pending activity is
handled, before returning from run().
Among other things, this gives a chance for destroyed windows to be
properly withdrawn from the windowing system.
https://bugzilla.gnome.org/show_bug.cgi?id=744876
gio/gapplication.c
patch
|
blob
|
history
diff --git
a/gio/gapplication.c
b/gio/gapplication.c
index 1d2b932f1370a21eb693263d8686ace357423d20..51f40f13f5471dd7f99fb1086a7db85a3e46baf1 100644
(file)
--- a/
gio/gapplication.c
+++ b/
gio/gapplication.c
@@
-2324,6
+2324,9
@@
g_application_run (GApplication *application,
g_settings_sync ();
+ while (g_main_context_iteration (NULL, FALSE))
+ ;
+
return status;
}