diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-10-05 21:27:03 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-10-05 21:27:03 +0800 |
commit | 9a92cc103a4cb253f7c9c86a2195ed6c01361e2d (patch) | |
tree | da2fc6200f129fae6205e1655a07653a9b142c32 /widgets/table/e-cell-pixbuf.c | |
parent | cc3e486ed62270d66522dfc0c9d325dd95364b7d (diff) | |
download | gsoc2013-evolution-9a92cc103a4cb253f7c9c86a2195ed6c01361e2d.tar gsoc2013-evolution-9a92cc103a4cb253f7c9c86a2195ed6c01361e2d.tar.gz gsoc2013-evolution-9a92cc103a4cb253f7c9c86a2195ed6c01361e2d.tar.bz2 gsoc2013-evolution-9a92cc103a4cb253f7c9c86a2195ed6c01361e2d.tar.lz gsoc2013-evolution-9a92cc103a4cb253f7c9c86a2195ed6c01361e2d.tar.xz gsoc2013-evolution-9a92cc103a4cb253f7c9c86a2195ed6c01361e2d.tar.zst gsoc2013-evolution-9a92cc103a4cb253f7c9c86a2195ed6c01361e2d.zip |
Adapted height method to deal with a row of -1.
2001-10-05 Christopher James Lahey <clahey@ximian.com>
* e-cell-text, e-cell-pixbuf: Adapted height method to deal with a
row of -1.
* e-table-group-container.c, e-table-group-container.h,
e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c,
e-table-item.h, e-table.c, e-table.h, e-tree.c: Added
"uniform_row_height" argument.
svn path=/trunk/; revision=13440
Diffstat (limited to 'widgets/table/e-cell-pixbuf.c')
-rw-r--r-- | widgets/table/e-cell-pixbuf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/table/e-cell-pixbuf.c b/widgets/table/e-cell-pixbuf.c index f2764199bd..1db126142c 100644 --- a/widgets/table/e-cell-pixbuf.c +++ b/widgets/table/e-cell-pixbuf.c @@ -136,6 +136,13 @@ static gint pixbuf_height (ECellView *ecell_view, int model_col, int view_col, int row) { GdkPixbuf *pixbuf; + if (row == -1) { + if (e_table_model_row_count (ecell_view->e_table_model) > 0) { + row = 0; + } else { + return 6; + } + } pixbuf = (GdkPixbuf *) e_table_model_value_at (ecell_view->e_table_model, model_col, row); if (!pixbuf) |