[gtk+] Don't use magic zero height/width argument to gdk_window_clear_area
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use magic zero height/width argument to gdk_window_clear_area
- Date: Fri, 11 Sep 2009 13:27:11 +0000 (UTC)
commit 0df4283574d680187714d210c371926e73a7d923
Author: Alexander Larsson <alexl redhat com>
Date: Fri Sep 11 15:08:14 2009 +0200
Don't use magic zero height/width argument to gdk_window_clear_area
This is an undocumented feature that we stopped supporting, and
anyway it likely only ever worked on X anyway.
gtk/gtkclist.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c
index 74302d1..f09d6b1 100644
--- a/gtk/gtkclist.c
+++ b/gtk/gtkclist.c
@@ -5925,8 +5925,14 @@ draw_rows (GtkCList *clist,
}
if (!area)
- gdk_window_clear_area (clist->clist_window, 0,
- ROW_TOP_YPIXEL (clist, i), 0, 0);
+ {
+ int w, h, y;
+ gdk_drawable_get_size (GDK_DRAWABLE (clist->clist_window), &w, &h);
+ y = ROW_TOP_YPIXEL (clist, i);
+ gdk_window_clear_area (clist->clist_window,
+ 0, y,
+ w, h - y);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]