[metacity] frames: ignore gdk_window_process_all_updates deprecation warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] frames: ignore gdk_window_process_all_updates deprecation warnings
- Date: Sun, 11 Mar 2018 14:19:28 +0000 (UTC)
commit 4613a803ea33f2f938f498d5ec272ca8f8852209
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 11 14:23:25 2018 +0200
frames: ignore gdk_window_process_all_updates deprecation warnings
src/ui/frames.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index eb0a529..ab7e0d8 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -106,6 +106,14 @@ struct _MetaFrames
G_DEFINE_TYPE (MetaFrames, meta_frames, GTK_TYPE_WINDOW)
static void
+process_all_updates (void)
+{
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ gdk_window_process_all_updates ();
+ G_GNUC_END_IGNORE_DEPRECATIONS
+}
+
+static void
get_client_rect (MetaFrameGeometry *fgeom,
GdkRectangle *rect)
{
@@ -1276,7 +1284,7 @@ meta_frames_repaint_frame (MetaFrames *frames,
/* repaint everything, so the other frame don't
* lag behind if they are exposed
*/
- gdk_window_process_all_updates ();
+ process_all_updates ();
}
static void
@@ -2729,7 +2737,7 @@ meta_frames_push_delay_exposes (MetaFrames *frames)
if (frames->expose_delay_count == 0)
{
/* Make sure we've repainted things */
- gdk_window_process_all_updates ();
+ process_all_updates ();
XFlush (frames->xdisplay);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]