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
This commit is contained in:
Benjamin Otte 2010-04-07 15:22:48 +02:00
parent 5616bdc3dc
commit dde9cf2882
3 changed files with 1 additions and 10 deletions

View File

@ -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 *

View File

@ -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

View File

@ -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;