diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-12-07 05:37:15 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-12-07 05:37:15 +0800 |
commit | 620dda2c3644cf3988bd64fd3b20c3f99fb54e48 (patch) | |
tree | b186294d4a7dea34c112e15587c15546e8a34049 /widgets/table/e-cell-text.c | |
parent | ca1c3593bf873dcd03a8974c0785b1f6ffdbd140 (diff) | |
download | gsoc2013-evolution-620dda2c3644cf3988bd64fd3b20c3f99fb54e48.tar.gz gsoc2013-evolution-620dda2c3644cf3988bd64fd3b20c3f99fb54e48.tar.zst gsoc2013-evolution-620dda2c3644cf3988bd64fd3b20c3f99fb54e48.zip |
Adapted these to accept the new flags parameter to e_cell_event.
2000-12-06 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c, e-cell-toggle.c, e-cell-tree.c: Adapted these to
accept the new flags parameter to e_cell_event.
* e-cell.c, e-cell.h: Added a flags parameter to e_cell_event.
* e-table-item.c: Send all e_cell_event calls a E_CELL_EDITABLE
flag. Add a new e_cell_event to the button press event that
happens before selecting the appropriate row and which does not
have the E_CELL_EDITABLE flag set.
svn path=/trunk/; revision=6823
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r-- | widgets/table/e-cell-text.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 2a7eae1d70..05742b6e70 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -871,7 +871,7 @@ ect_edit_select_all (ECellTextView *text_view) * ECell::event method */ static gint -ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row) +ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row, ECellFlags flags) { ECellTextView *text_view = (ECellTextView *) ecell_view; ETextEventProcessorEvent e_tep_event; @@ -879,8 +879,11 @@ ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, CellEdit *edit = text_view->edit; GtkWidget *canvas = GTK_WIDGET (text_view->canvas); gint return_val = 0; - CurrentCell cell, *cellptr; + + if (flags & !E_CELL_EDITING) + return 0; + build_current_cell (&cell, text_view, model_col, view_col, row); |