diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-07-10 19:04:18 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-07-10 19:04:18 +0800 |
commit | 23ca256b7dd10fea00e2914c968e797af6ea0622 (patch) | |
tree | 61744d8851107470ba8b85ccbfbfb6fe49536119 /widgets/e-table/e-table-item.c | |
parent | 84ba8642c55c514b7fe23aa90fabdbd0d90250ab (diff) | |
download | gsoc2013-evolution-23ca256b7dd10fea00e2914c968e797af6ea0622.tar.gz gsoc2013-evolution-23ca256b7dd10fea00e2914c968e797af6ea0622.tar.zst gsoc2013-evolution-23ca256b7dd10fea00e2914c968e797af6ea0622.zip |
Add e-table-scrolled.c and e-table-scrolled.h.
2000-07-09 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Add e-table-scrolled.c and e-table-scrolled.h.
* e-table-item.c: Make sure that find_cell returns FALSE if the
item doesn't have any cells.
* e-table-scrolled.c, e-table-scrolled.h: Added a widget to
contain an ETable and provide scrollbars (for ease of use.)
* e-table.c, e-table.h: Make this support the scrollable interface
and not contain its own scrollbars.
svn path=/trunk/; revision=4031
Diffstat (limited to 'widgets/e-table/e-table-item.c')
-rw-r--r-- | widgets/e-table/e-table-item.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c index c9dc87dc77..947b28107e 100644 --- a/widgets/e-table/e-table-item.c +++ b/widgets/e-table/e-table-item.c @@ -1170,6 +1170,9 @@ find_cell (ETableItem *eti, double x, double y, int *col_res, int *row_res, doub int col, row; /* FIXME: this routine is inneficient, fix later */ + + if (cols == 0 || rows == 0) + return FALSE; x -= eti->x1; y -= eti->y1; |