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/e-table | |
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/e-table')
-rw-r--r-- | widgets/e-table/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/e-table/e-table-item.c | 36 | ||||
-rw-r--r-- | widgets/e-table/e-table.c | 2 |
3 files changed, 25 insertions, 19 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index e2e25b6f41..dc43161c53 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,5 +1,11 @@ 2000-03-04 Christopher James Lahey <clahey@helixcode.com> + * e-table-item.c: Fixed a compile warning. + + * e-table.c: Fixed a crash error. + +2000-03-04 Christopher James Lahey <clahey@helixcode.com> + * TODO: Added a bunch of stuff to the TODO list. Put +s before a few of the items that are finished. diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c index 222d4592cf..a38b6affac 100644 --- a/widgets/e-table/e-table-item.c +++ b/widgets/e-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: * diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c index 7d1d9afd14..364ef3fb9c 100644 --- a/widgets/e-table/e-table.c +++ b/widgets/e-table/e-table.c @@ -704,7 +704,7 @@ e_table_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm, char *copy; copy = g_strdup(spec); - xmlSpec = xmlParseMemory(copy, strlen(copy)); + xmlSpec = xmlParseMemory(copy, strlen(copy) + 1); et_real_construct(e_table, full_header, etm, xmlSpec); g_free(copy); } |