Revert "Remove _gdk_region_new_from_yxbanded_rects()"

This reverts commit dde9cf2882.
This commit is contained in:
Benjamin Otte 2010-05-26 09:25:44 +02:00
parent fd20ac0751
commit 863853ec5f
3 changed files with 10 additions and 1 deletions

View File

@ -664,6 +664,7 @@ 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 *

View File

@ -17,6 +17,14 @@ 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

View File

@ -4632,7 +4632,7 @@ _xwindow_get_shape (Display *xdisplay,
}
XFree (xrl);
shape = cairo_region_create_rectangles (rl, rn);
shape = _gdk_region_new_from_yxbanded_rects (rl, rn);
g_free (rl);
return shape;