aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-07 00:52:08 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-07 00:52:08 +0800
commitc87ef08b9507ed81e6f40b704949cc8b92388511 (patch)
tree0183f7ed32a79dbdde6b19e7c667970277b790ea /widgets/table/e-table-item.c
parentf7f5a3032f47f7a6bae37607717b9fb6e8c0a26b (diff)
downloadgsoc2013-evolution-c87ef08b9507ed81e6f40b704949cc8b92388511.tar
gsoc2013-evolution-c87ef08b9507ed81e6f40b704949cc8b92388511.tar.gz
gsoc2013-evolution-c87ef08b9507ed81e6f40b704949cc8b92388511.tar.bz2
gsoc2013-evolution-c87ef08b9507ed81e6f40b704949cc8b92388511.tar.lz
gsoc2013-evolution-c87ef08b9507ed81e6f40b704949cc8b92388511.tar.xz
gsoc2013-evolution-c87ef08b9507ed81e6f40b704949cc8b92388511.tar.zst
gsoc2013-evolution-c87ef08b9507ed81e6f40b704949cc8b92388511.zip
Handle row and cell changes properly in the uniform_row_height case.
2001-10-06 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_table_model_row_changed, eti_table_model_cell_changed): Handle row and cell changes properly in the uniform_row_height case. svn path=/trunk/; revision=13485
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 86fedb64db..fd51a0407a 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -894,10 +894,8 @@ eti_table_model_row_changed (ETableModel *table_model, int row, ETableItem *eti)
{
if (!(GTK_OBJECT_FLAGS(eti) & GNOME_CANVAS_ITEM_REALIZED))
return;
- if (eti->uniform_row_height)
- return;
- if (eti->height_cache && eti->height_cache[row] != -1 && eti_row_height_real(eti, row) != eti->height_cache[row]) {
+ if ((!eti->uniform_row_height) && eti->height_cache && eti->height_cache[row] != -1 && eti_row_height_real(eti, row) != eti->height_cache[row]) {
eti_table_model_changed (table_model, eti);
return;
}
@@ -910,9 +908,8 @@ eti_table_model_cell_changed (ETableModel *table_model, int col, int row, ETable
{
if (!(GTK_OBJECT_FLAGS(eti) & GNOME_CANVAS_ITEM_REALIZED))
return;
- if (eti->uniform_row_height)
- return;
- if (eti->height_cache && eti->height_cache[row] != -1 && eti_row_height_real(eti, row) != eti->height_cache[row]) {
+
+ if ((!eti->uniform_row_height) && eti->height_cache && eti->height_cache[row] != -1 && eti_row_height_real(eti, row) != eti->height_cache[row]) {
eti_table_model_changed (table_model, eti);
return;
}