diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-10-24 18:58:50 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-10-24 18:58:50 +0300 |
commit | 5f2cbccb6e49f0e99385047660af80a9731390e8 (patch) | |
tree | 6e6db26f38c68fe7671f542ea58096013a6e1d2c | |
parent | d99fb24907f84209c3fe0daf934200ec96935d29 (diff) | |
download | metacity-5f2cbccb6e49f0e99385047660af80a9731390e8.tar.gz |
frames: avoid a deprecation warning
-rw-r--r-- | src/ui/frames.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index 31fe269d..eee61ea2 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -2235,7 +2235,10 @@ setup_bg_cr (cairo_t *cr, GdkWindow *window, int x_offset, int y_offset) GdkWindow *parent = gdk_window_get_parent (window); cairo_pattern_t *bg_pattern; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS bg_pattern = gdk_window_get_background_pattern (window); + G_GNUC_END_IGNORE_DEPRECATIONS + if (bg_pattern == NULL && parent) { gint window_x, window_y; |