[gtk+] Avoid a deprecation warning



commit ddfe3374e3d79c27eabfcf10b31f1ae23457c74f
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Jun 9 21:00:13 2016 +0100

    Avoid a deprecation warning
    
    Some debugging code in GdkWindow still calls gdk_cairo_create().

 gdk/gdkwindow.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 01f7838..8abcddf 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -4246,12 +4246,16 @@ draw_ugly_color (GdkWindow       *window,
 {
   cairo_t *cr;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   cr = gdk_cairo_create (window);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
   /* Draw ugly color all over the newly-invalid region */
   if (color == 0)
     cairo_set_source_rgb (cr, 50000/65535., 10000/65535., 10000/65535.);
   else
     cairo_set_source_rgb (cr, 10000/65535., 50000/65535., 10000/65535.);
+
   gdk_cairo_region (cr, region);
   cairo_fill (cr);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]