From 2a1cd0c42ecaa59dcb68706de9a75fa1df847408 Mon Sep 17 00:00:00 2001 From: George Lebl Date: Mon, 3 Aug 1998 06:22:41 +0000 Subject: [PATCH] don't you hate it when you apply the wrong patch and discover it only after applying it and committing -George --- gtk/gtkclist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index ac25959755..ae7d891440 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -2521,6 +2521,7 @@ gtk_clist_draw (GtkWidget * widget, { GtkCList *clist; gint border_width; + GdkRectangle child_area; int i; g_return_if_fail (widget != NULL); @@ -2552,7 +2553,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); } } }