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-toggle.c | |
parent | ca1c3593bf873dcd03a8974c0785b1f6ffdbd140 (diff) | |
download | gsoc2013-evolution-620dda2c3644cf3988bd64fd3b20c3f99fb54e48.tar gsoc2013-evolution-620dda2c3644cf3988bd64fd3b20c3f99fb54e48.tar.gz gsoc2013-evolution-620dda2c3644cf3988bd64fd3b20c3f99fb54e48.tar.bz2 gsoc2013-evolution-620dda2c3644cf3988bd64fd3b20c3f99fb54e48.tar.lz gsoc2013-evolution-620dda2c3644cf3988bd64fd3b20c3f99fb54e48.tar.xz 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-toggle.c')
-rw-r--r-- | widgets/table/e-cell-toggle.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c index 9c5f7b391b..c4ddc66053 100644 --- a/widgets/table/e-cell-toggle.c +++ b/widgets/table/e-cell-toggle.c @@ -182,11 +182,14 @@ etog_set_value (ECellToggleView *toggle_view, int model_col, int view_col, int r * ECell::event method */ static gint -etog_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row) +etog_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row, ECellFlags flags) { ECellToggleView *toggle_view = (ECellToggleView *) ecell_view; void *_value = e_table_model_value_at (ecell_view->e_table_model, model_col, row); const int value = GPOINTER_TO_INT (_value); + + if (flags & !E_CELL_EDITING) + return 0; switch (event->type){ case GDK_BUTTON_RELEASE: |