[gtk+/rendering-cleanup: 15/31] gdk: Simplify clear_area code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 15/31] gdk: Simplify clear_area code
- Date: Mon, 16 Aug 2010 12:28:02 +0000 (UTC)
commit 5de8434028511c1ad090011a1e854b2c4ae635c0
Author: Benjamin Otte <otte redhat com>
Date: Sun Aug 15 03:13:08 2010 +0200
gdk: Simplify clear_area code
No more use for a gdk_window_clear_area_internal() function as there's
just one caller.
gdk/gdkwindow.c | 51 ++++++++++++++++++---------------------------------
1 files changed, 18 insertions(+), 33 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 0aad63a..d1b43df 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3887,13 +3887,23 @@ gdk_window_clear_region_internal (GdkWindow *window,
}
}
-static void
-gdk_window_clear_area_internal (GdkWindow *window,
- gint x,
- gint y,
- gint width,
- gint height,
- gboolean send_expose)
+/**
+ * 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)
{
GdkRectangle rect;
cairo_region_t *region;
@@ -3916,33 +3926,8 @@ gdk_window_clear_area_internal (GdkWindow *window,
region = cairo_region_create_rectangle (&rect);
gdk_window_clear_region_internal (window,
region,
- send_expose);
+ FALSE);
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);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]