mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
5616bdc3dc
commit
dde9cf2882
@ -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 *
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user