diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-05 01:30:23 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-05 01:30:23 +0800 |
commit | 23c59b7ee06133ed56850c68c132eccdbfe44b8f (patch) | |
tree | 36fc8cef9c4097097b92e43443e97f024081ea4a /widgets/table/e-table-item.c | |
parent | 7fc7a2644f6b6391ff478b253b05ab986fbd0965 (diff) | |
download | gsoc2013-evolution-23c59b7ee06133ed56850c68c132eccdbfe44b8f.tar.gz gsoc2013-evolution-23c59b7ee06133ed56850c68c132eccdbfe44b8f.tar.zst gsoc2013-evolution-23c59b7ee06133ed56850c68c132eccdbfe44b8f.zip |
Fixed a compile warning.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Fixed a compile warning.
* e-table.c: Fixed a crash error.
svn path=/trunk/; revision=2039
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r-- | widgets/table/e-table-item.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 222d4592cf..a38b6affac 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -300,6 +300,24 @@ eti_compute_height (ETableItem *eti) } } +static void +eti_item_region_redraw (ETableItem *eti, int x0, int y0, int x1, int y1) +{ + GnomeCanvasItem *item = GNOME_CANVAS_ITEM (eti); + ArtDRect rect; + double i2c [6]; + + rect.x0 = x0; + rect.y0 = y0; + rect.x1 = x1; + rect.y1 = y1; + + gnome_canvas_item_i2c_affine (item, i2c); + art_drect_affine_transform (&rect, &rect, i2c); + + gnome_canvas_request_redraw (item->canvas, rect.x0, rect.y0, rect.x1, rect.y1); +} + /* * Callback routine: invoked when the ETableModel has suffered a change */ @@ -320,24 +338,6 @@ eti_table_model_changed (ETableModel *table_model, ETableItem *eti) eti_item_region_redraw (eti, 0, 0, eti->width, eti->height); } -static void -eti_item_region_redraw (ETableItem *eti, int x0, int y0, int x1, int y1) -{ - GnomeCanvasItem *item = GNOME_CANVAS_ITEM (eti); - ArtDRect rect; - double i2c [6]; - - rect.x0 = x0; - rect.y0 = y0; - rect.x1 = x1; - rect.y1 = y1; - - gnome_canvas_item_i2c_affine (item, i2c); - art_drect_affine_transform (&rect, &rect, i2c); - - gnome_canvas_request_redraw (item->canvas, rect.x0, rect.y0, rect.x1, rect.y1); -} - /* * eti_request_redraw: * |