diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-04-03 12:44:25 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-04-03 12:44:25 +0800 |
commit | 164f34f40db295af3ef4151620598a4f384973dc (patch) | |
tree | 46a62acbcad5ea744ebbf3c71dc59a976375e742 | |
parent | d1780257f51e61ac9a302fc48a1dfccdab36ff68 (diff) | |
download | gsoc2013-evolution-164f34f40db295af3ef4151620598a4f384973dc.tar gsoc2013-evolution-164f34f40db295af3ef4151620598a4f384973dc.tar.gz gsoc2013-evolution-164f34f40db295af3ef4151620598a4f384973dc.tar.bz2 gsoc2013-evolution-164f34f40db295af3ef4151620598a4f384973dc.tar.lz gsoc2013-evolution-164f34f40db295af3ef4151620598a4f384973dc.tar.xz gsoc2013-evolution-164f34f40db295af3ef4151620598a4f384973dc.tar.zst gsoc2013-evolution-164f34f40db295af3ef4151620598a4f384973dc.zip |
Don't draw the button if it's less than 1 pixel wide.
2001-04-03 Christopher James Lahey <clahey@ximian.com>
* e-table-header-item.c (ethi_draw): Don't draw the button if it's
less than 1 pixel wide.
* e-tree-table-adapter.c (etta_proxy_node_inserted): Fixed a small
array overrun (wasn't causing problems, but it's best to be
correct.)
svn path=/trunk/; revision=9120
-rw-r--r-- | widgets/table/e-table-header-item.c | 3 | ||||
-rw-r--r-- | widgets/table/e-tree-table-adapter.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index cfbabb939f..2a7c36facf 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -819,6 +819,9 @@ ethi_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width if (x2 < x) continue; + if (x2 <= x1) + continue; + e_table_header_draw_button (drawable, ecol, GTK_WIDGET (canvas)->style, ethi->font, GTK_WIDGET_STATE (canvas), diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c index 2660ab1096..90345f1f5f 100644 --- a/widgets/table/e-tree-table-adapter.c +++ b/widgets/table/e-tree-table-adapter.c @@ -659,7 +659,10 @@ etta_proxy_node_inserted (ETreeModel *etm, ETreePath parent, ETreePath child, ET row = find_first_child_node(etta, parent_row); children = e_tree_model_node_get_first_child(etta->priv->source, parent); - while (row != -1 && children != NULL && children == etta->priv->map_table[row]) { + while (row != -1 && + row < parent_row + parent_node->num_visible_children && + children != NULL && + children == etta->priv->map_table[row]) { children = e_tree_model_node_get_next(etta->priv->source, children); row = find_next_node(etta, row); } |