[gtk+/gtk-2-22] Remove _gdk_region_new_from_yxbanded_rects()



commit dde9cf28820696c57c1249ca08e318222665987d
Author: Benjamin Otte <otte redhat com>
Date:   Wed Apr 7 15:22:48 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 822335f..8cc6871 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -664,7 +664,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 745e20f..d0224f5 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 ((cairo_rectangle_int_t *) rects, num_rects);
-}
-
-
 /**
  * gdk_region_rectangle:
  * @rectangle: a #GdkRectangle
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index e2dd131..236f17f 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -4632,7 +4632,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]