[gtk+] Remove _gdk_region_new_from_yxbanded_rects()



commit 52200eee01cc055adaefb678d6c6f04455d1a593
Author: Benjamin Otte <otte redhat com>
Date:   Mon Jun 28 14:31:10 2010 +0200

    Remove _gdk_region_new_from_yxbanded_rects()
    
    It was an internal function and we can use
    cairo_region_create_rectangles() instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=613284

 gdk/gdkinternals.h      |    1 -
 gdk/gdkregion-generic.c |    8 --------
 gdk/x11/gdkwindow-x11.c |    2 +-
 3 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 4ddd327..ff78737 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -686,7 +686,6 @@ GdkWindow *_gdk_window_get_input_window_for_event (GdkWindow *native_window,
 						   GdkEventType event_type,
 						   int x, int y,
 						   gulong serial);
-GdkRegion  *_gdk_region_new_from_yxbanded_rects (GdkRectangle *rects, int n_rects);
 
 /*****************************
  * offscreen window routines *
diff --git a/gdk/gdkregion-generic.c b/gdk/gdkregion-generic.c
index 7b74222..ff66adc 100644
--- a/gdk/gdkregion-generic.c
+++ b/gdk/gdkregion-generic.c
@@ -17,14 +17,6 @@ gdk_region_new (void)
   return cairo_region_create ();
 }
 
-GdkRegion *
-_gdk_region_new_from_yxbanded_rects (GdkRectangle *rects,
-				     int num_rects)
-{
-  return cairo_region_create_rectangles (rects, num_rects);
-}
-
-
 /**
  * gdk_region_rectangle:
  * @rectangle: a #GdkRectangle
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 4f14090..31e3633 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -4595,7 +4595,7 @@ _xwindow_get_shape (Display *xdisplay,
     }
   XFree (xrl);
   
-  shape = _gdk_region_new_from_yxbanded_rects (rl, rn);
+  shape = cairo_region_create_rectangles (rl, rn);
   g_free (rl);
   
   return shape;



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