mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 21:20:09 +00:00
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:
parent
d225ffbc5b
commit
4551382631
@ -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>
|
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* Released GTK+ 1.1.13
|
* Released GTK+ 1.1.13
|
||||||
|
@ -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>
|
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* Released GTK+ 1.1.13
|
* Released GTK+ 1.1.13
|
||||||
|
@ -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>
|
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* Released GTK+ 1.1.13
|
* Released GTK+ 1.1.13
|
||||||
|
@ -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>
|
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* Released GTK+ 1.1.13
|
* Released GTK+ 1.1.13
|
||||||
|
@ -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>
|
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* Released GTK+ 1.1.13
|
* Released GTK+ 1.1.13
|
||||||
|
@ -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>
|
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* Released GTK+ 1.1.13
|
* Released GTK+ 1.1.13
|
||||||
|
@ -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>
|
Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
|
||||||
|
|
||||||
* Released GTK+ 1.1.13
|
* Released GTK+ 1.1.13
|
||||||
|
@ -1791,8 +1791,7 @@ draw_row (GtkCList *clist,
|
|||||||
(GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap,
|
(GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap,
|
||||||
&pixmap_width, &height);
|
&pixmap_width, &height);
|
||||||
|
|
||||||
width = (pixmap_width +
|
width = pixmap_width;
|
||||||
GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing);
|
|
||||||
|
|
||||||
if (GTK_CELL_PIXTEXT (clist_row->cell[i])->text)
|
if (GTK_CELL_PIXTEXT (clist_row->cell[i])->text)
|
||||||
{
|
{
|
||||||
@ -1801,6 +1800,10 @@ draw_row (GtkCList *clist,
|
|||||||
width += string_width;
|
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)
|
if (i == ctree->tree_column)
|
||||||
width += (ctree->tree_indent *
|
width += (ctree->tree_indent *
|
||||||
((GtkCTreeRow *)clist_row)->level);
|
((GtkCTreeRow *)clist_row)->level);
|
||||||
@ -1920,10 +1923,16 @@ draw_row (GtkCList *clist,
|
|||||||
if (string_width)
|
if (string_width)
|
||||||
{
|
{
|
||||||
if (clist->column[i].justification == GTK_JUSTIFY_RIGHT)
|
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
|
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)
|
if (style != GTK_WIDGET (clist)->style)
|
||||||
row_center_offset = (((clist->row_height - style->font->ascent -
|
row_center_offset = (((clist->row_height - style->font->ascent -
|
||||||
|
Loading…
Reference in New Issue
Block a user