summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@src.gnome.org>1998-08-03 06:22:41 +0000
committerGeorge Lebl <jirka@src.gnome.org>1998-08-03 06:22:41 +0000
commit2a1cd0c42ecaa59dcb68706de9a75fa1df847408 (patch)
treea856121843ecef34338654565450347bde25b1e7
parentfba2b02b10c62fbd75fcd70af2f5bb3cfe4fc5c6 (diff)
downloadgdk-pixbuf-2a1cd0c42ecaa59dcb68706de9a75fa1df847408.tar.gz
don't you hate it when you apply the wrong patch and discover it only
after applying it and committing -George
-rw-r--r--gtk/gtkclist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c
index ac2595975..ae7d89144 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);
}
}
}