Commit 52200eee authored by Benjamin Otte's avatar Benjamin Otte

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
parent 78018767
......@@ -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 *
......
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment