]> Pileus Git - ~andy/gtk/commitdiff
don't you hate it when you apply the wrong patch and discover it only
authorGeorge Lebl <jirka@src.gnome.org>
Mon, 3 Aug 1998 06:22:41 +0000 (06:22 +0000)
committerGeorge Lebl <jirka@src.gnome.org>
Mon, 3 Aug 1998 06:22:41 +0000 (06:22 +0000)
after applying it and committing
-George

gtk/gtkclist.c

index ac25959755723c6feebbd33052ef15ef5515a8fb..ae7d8914402e351b561791b0db493a714662857d 100644 (file)
@@ -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);
        }
     }
 }