aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-text.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-04-17 13:53:32 +0800
committerChris Toshok <toshok@src.gnome.org>2000-04-17 13:53:32 +0800
commit832bcdf998ea2b015a9b6904f72bfb3949f1b80a (patch)
tree43af512afb6bb6ef7ca50b3ac3a0d211d928a36c /widgets/table/e-cell-text.c
parent3f0d6f5cf6914eec8040b569af95898d6e99a0fc (diff)
downloadgsoc2013-evolution-832bcdf998ea2b015a9b6904f72bfb3949f1b80a.tar
gsoc2013-evolution-832bcdf998ea2b015a9b6904f72bfb3949f1b80a.tar.gz
gsoc2013-evolution-832bcdf998ea2b015a9b6904f72bfb3949f1b80a.tar.bz2
gsoc2013-evolution-832bcdf998ea2b015a9b6904f72bfb3949f1b80a.tar.lz
gsoc2013-evolution-832bcdf998ea2b015a9b6904f72bfb3949f1b80a.tar.xz
gsoc2013-evolution-832bcdf998ea2b015a9b6904f72bfb3949f1b80a.tar.zst
gsoc2013-evolution-832bcdf998ea2b015a9b6904f72bfb3949f1b80a.zip
add table-size-test
* Makefile.am (noinst_PROGRAMS): add table-size-test * .cvsignore: add table-size-test. * e-cell-text.c (ect_ecent): use e_table_model_is_cell_editable instead of E_CELL_EDITABLE. * e-cell-toggle.c (etog_event): same. * e-cell.c (e_cell_init): don't call e_cell_set_editable. that info comes from the model. (e_cell_set_editable): removed function. * e-cell.h: remove the E_CELL_EDITABLE flag. that should be retrieved from the model. also, remove the prototype for e_cell_set_editable. * e-table-size-test.c: new file, for a stress test of sorts, of a large, uneditable e-table. svn path=/trunk/; revision=2468
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r--widgets/table/e-cell-text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 0649392fc6..3df3434661 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -781,7 +781,7 @@ ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col,
return TRUE;
}
- if ((!edit_display) && E_CELL_IS_EDITABLE (ect)) {
+ if ((!edit_display) && e_table_model_is_cell_editable (ecell_view->e_table_model, view_col, row)) {
e_table_item_enter_edit (text_view->cell_view.e_table_item_view, view_col, row);
ect_edit_select_all (text_view);
edit = text_view->edit;
@@ -812,7 +812,7 @@ ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col,
event->button.x -= 4;
event->button.y -= 1;
if ((!edit_display)
- && E_CELL_IS_EDITABLE (ect)
+ && e_table_model_is_cell_editable (ecell_view->e_table_model, view_col, row)
&& event->type == GDK_BUTTON_RELEASE
&& event->button.button == 1) {
GdkEventButton button = event->button;