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.
This commit is contained in:
Alexander Larsson 2009-09-11 15:08:14 +02:00
parent 0a46d331eb
commit 0df4283574

View File

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