gdk: Simplify clear_area code

No more use for a gdk_window_clear_area_internal() function as there's
just one caller.
This commit is contained in:
Benjamin Otte
2010-08-15 03:13:08 +02:00
parent 6ab793da8d
commit 3d98537c2e

View File

@ -3875,13 +3875,23 @@ gdk_window_clear_region_internal (GdkWindow *window,
} }
} }
static void /**
gdk_window_clear_area_internal (GdkWindow *window, * gdk_window_clear_area:
* @window: a #GdkWindow
* @x: x coordinate of rectangle to clear
* @y: y coordinate of rectangle to clear
* @width: width of rectangle to clear
* @height: height of rectangle to clear
*
* Clears an area of @window to the background color or background pixmap.
*
**/
void
gdk_window_clear_area (GdkWindow *window,
gint x, gint x,
gint y, gint y,
gint width, gint width,
gint height, gint height)
gboolean send_expose)
{ {
GdkRectangle rect; GdkRectangle rect;
cairo_region_t *region; cairo_region_t *region;
@ -3904,33 +3914,8 @@ gdk_window_clear_area_internal (GdkWindow *window,
region = cairo_region_create_rectangle (&rect); region = cairo_region_create_rectangle (&rect);
gdk_window_clear_region_internal (window, gdk_window_clear_region_internal (window,
region, region,
send_expose);
cairo_region_destroy (region);
}
/**
* gdk_window_clear_area:
* @window: a #GdkWindow
* @x: x coordinate of rectangle to clear
* @y: y coordinate of rectangle to clear
* @width: width of rectangle to clear
* @height: height of rectangle to clear
*
* Clears an area of @window to the background color or background pixmap.
*
**/
void
gdk_window_clear_area (GdkWindow *window,
gint x,
gint y,
gint width,
gint height)
{
gdk_window_clear_area_internal (window,
x, y,
width, height,
FALSE); FALSE);
cairo_region_destroy (region);
} }
static void static void