fixed auto resize bug.

Mon Jan 18 01:21:03 1999  Lars Hamann  <lars@gtk.org>

	* gtk/gtkctree.c (draw_row): fixed auto resize bug.
This commit is contained in:
Lars Hamann 1999-01-18 00:36:33 +00:00 committed by Lars Hamann
parent d225ffbc5b
commit 4551382631
8 changed files with 42 additions and 5 deletions

View File

@ -1,3 +1,7 @@
Mon Jan 18 01:21:03 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row): fixed auto resize bug.
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.13

View File

@ -1,3 +1,7 @@
Mon Jan 18 01:21:03 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row): fixed auto resize bug.
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.13

View File

@ -1,3 +1,7 @@
Mon Jan 18 01:21:03 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row): fixed auto resize bug.
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.13

View File

@ -1,3 +1,7 @@
Mon Jan 18 01:21:03 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row): fixed auto resize bug.
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.13

View File

@ -1,3 +1,7 @@
Mon Jan 18 01:21:03 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row): fixed auto resize bug.
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.13

View File

@ -1,3 +1,7 @@
Mon Jan 18 01:21:03 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row): fixed auto resize bug.
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.13

View File

@ -1,3 +1,7 @@
Mon Jan 18 01:21:03 1999 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (draw_row): fixed auto resize bug.
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.13

View File

@ -1791,8 +1791,7 @@ draw_row (GtkCList *clist,
(GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap,
&pixmap_width, &height);
width = (pixmap_width +
GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing);
width = pixmap_width;
if (GTK_CELL_PIXTEXT (clist_row->cell[i])->text)
{
@ -1801,6 +1800,10 @@ draw_row (GtkCList *clist,
width += string_width;
}
if (GTK_CELL_PIXTEXT (clist_row->cell[i])->text &&
GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap)
width += GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing;
if (i == ctree->tree_column)
width += (ctree->tree_indent *
((GtkCTreeRow *)clist_row)->level);
@ -1920,10 +1923,16 @@ draw_row (GtkCList *clist,
if (string_width)
{
if (clist->column[i].justification == GTK_JUSTIFY_RIGHT)
offset = (old_offset - string_width -
GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing);
{
offset = (old_offset - string_width);
if (GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap)
offset -= GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing;
}
else
offset += GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing;
{
if (GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap)
offset += GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing;
}
if (style != GTK_WIDGET (clist)->style)
row_center_offset = (((clist->row_height - style->font->ascent -