From 0b345bfa9c479090bed5707c5e7c11057ff70d0c Mon Sep 17 00:00:00 2001 From: George Lebl Date: Mon, 3 Aug 1998 06:26:37 +0000 Subject: [PATCH] my ignorance strikes yet again so here's the fix -George --- gtk/gtkclist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 7636f620af..6df7bf4860 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -1972,6 +1972,8 @@ gtk_clist_draw (GtkWidget * widget, { GtkCList *clist; gint border_width; + GdkRectangle child_area; + int i; g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_CLIST (widget)); @@ -2002,7 +2004,8 @@ gtk_clist_draw (GtkWidget * widget, for (i = 0; i < clist->columns; i++) { - gtk_widget_queue_draw (clist->column[i].button); + if (gtk_widget_intersect (clist->column[i].button, area, &child_area)) + gtk_widget_draw (clist->column[i].button, &child_area); } } }