Bug in gtkclist.c (GTK+-1.0.6/GTK+-1.1.1)



There is a bug in gtkclist.c in GTK+ (all versions including 1.0.6 and 1.1.1).
The bug affects right justified pixtext fields, they are shown chopped.

============================================================================
--- gtkclist.c-	Tue Sep 22 00:19:05 1998
+++ gtkclist.c	Tue Sep 22 00:19:48 1998
@@ -2622,7 +2622,7 @@
 	  gdk_window_get_size (GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap, &width, &height);
 	  pixmap_width = width;
 	  width += GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing;
-	  width = gdk_string_width (GTK_WIDGET (clist)->style->font,
+	  width += gdk_string_width (GTK_WIDGET (clist)->style->font,
 				    GTK_CELL_PIXTEXT (clist_row->cell[i])->text);
 	  break;
 
============================================================================

-- 
Roman Pozlevich              e-mail: roma@botik.ru
http://www.botik.ru/~roma    phone: +7 (08535) 98044, fax: +7 (08535) 98278



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