clist patch



ok ... I've had a problem with clists for a while and sicne I'm not sure this
is the right fix .. I'll ask before committing :)

basically the problem is that if you do set_sensitive on a clist, the buttons
don't get redrawn ... I guess this is the right patch to do just that I guess

it works quite nicely for me ... if no one complains I'll apply it (to both
1.1 and 1.0 trees ...)

(I will also check ctree for this problem)


Index: gtkclist.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkclist.c,v
retrieving revision 1.80
diff -u -r1.80 gtkclist.c
--- gtkclist.c	1998/07/31 20:47:57	1.80
+++ gtkclist.c	1998/08/01 21:57:05
@@ -2521,6 +2521,7 @@
 {
   GtkCList *clist;
   gint border_width;
+  int i;
 
   g_return_if_fail (widget != NULL);
   g_return_if_fail (GTK_IS_CLIST (widget));
@@ -2548,6 +2549,11 @@
 			     0, 0, -1, -1);
 
       draw_rows (clist, NULL);
+
+      for (i = 0; i < clist->columns; i++)
+	{
+	  gtk_widget_queue_draw (clist->column[i].button);
+	}
     }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]