[gtk/gtk-3-22] Ignore deprecations for gdk_flush()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-22] Ignore deprecations for gdk_flush()
- Date: Sun, 11 Feb 2018 23:35:27 +0000 (UTC)
commit 382d6c1bcb683291ef7073ea83a95a524cf68b6e
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Feb 11 15:13:06 2018 +0000
Ignore deprecations for gdk_flush()
When terminating the main loop, we're really trying to flush all
GdkDisplay connections, so it's actually a legitimate internal use
case.
gtk/gtkmain.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index a9b9481c63..74ce18009d 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1322,7 +1322,10 @@ gtk_main (void)
gdk_threads_leave ();
g_main_loop_run (loop);
gdk_threads_enter ();
+
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gdk_flush ();
+ G_GNUC_END_IGNORE_DEPRECATIONS;
}
main_loops = g_slist_remove (main_loops, loop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]