GtkCList: crash fix and api question



here's a fix for a crash i got when using GtkCList.

some of the properties of CList have had their names changed from 1.2 ->
1.3 (columns, show_titles).  since CList is now deprecated, shouldn't
they be changed back?

gtk_clist_construct() also changed incompatibly - should it be changed
back?

jacob
-- 
Index: gtkclist.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkclist.c,v
retrieving revision 1.205
diff -u -r1.205 gtkclist.c
--- gtkclist.c	2001/09/19 00:49:51	1.205
+++ gtkclist.c	2001/10/22 04:12:15
@@ -2618,6 +2618,11 @@
   switch (clist_row->cell[column].type)
     {
     case GTK_CELL_PIXTEXT:
+      gdk_window_get_size (GTK_CELL_PIXTEXT (clist_row->cell[column])->pixmap,
+			   &width, &height);
+      requisition->width += width;
+      requisition->height = MAX (requisition->height, height);      
+      break;
     case GTK_CELL_PIXMAP:
       gdk_window_get_size (GTK_CELL_PIXMAP (clist_row->cell[column])->pixmap,
 			   &width, &height);


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