aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-tree.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-12-10 06:20:52 +0800
committerChris Lahey <clahey@src.gnome.org>2000-12-10 06:20:52 +0800
commit3018f79188018eb590be1412a95b830a0d842fbc (patch)
tree50882bfcef5fcb05bbf4d07637be2da0b0bb0601 /widgets/table/e-cell-tree.c
parent9cf73d61eb344bbbbf50d6932bff5ce23f2971e6 (diff)
downloadgsoc2013-evolution-3018f79188018eb590be1412a95b830a0d842fbc.tar
gsoc2013-evolution-3018f79188018eb590be1412a95b830a0d842fbc.tar.gz
gsoc2013-evolution-3018f79188018eb590be1412a95b830a0d842fbc.tar.bz2
gsoc2013-evolution-3018f79188018eb590be1412a95b830a0d842fbc.tar.lz
gsoc2013-evolution-3018f79188018eb590be1412a95b830a0d842fbc.tar.xz
gsoc2013-evolution-3018f79188018eb590be1412a95b830a0d842fbc.tar.zst
gsoc2013-evolution-3018f79188018eb590be1412a95b830a0d842fbc.zip
Added the actions parameter to ect_event. Added an actions field to
2000-12-09 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c: Added the actions parameter to ect_event. Added an actions field to CellEdit. Handle CellEdit properly in the ect_event function to do grabbing and ungrabbing when appropriate. Set the actions field in CellEdit when appropriate in e_cell_text_view_command. * e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h: Added a ECellActions enum, a ECellActions actions parameter to e_cell_event and added the actions parameter to all the handlers of the event method including having ECellTree pass it on to its child cell. * e-table-header-item.c: Use the NULL cursor instead of the E_CURSORS_ARROW cursor. * e-table-item.c, e-table-item.h: Added grabbed_row and grabbed_col fields to ETableItem (-1 on either means ungrabbed.) Pay attention to them in the find_cell function. Handle the actions parameter of e_cell_event and grab or ungrab the pointer to a given cell if requested. This is done using the new function eti_e_cell_event (which is internal to e-table-item.c,) instead of the old e_cell_event function call. Fake an ungrabbed table when calling find_cell from within the compute_location method. svn path=/trunk/; revision=6889
Diffstat (limited to 'widgets/table/e-cell-tree.c')
-rw-r--r--widgets/table/e-cell-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c
index 6de490cd29..510c993c1b 100644
--- a/widgets/table/e-cell-tree.c
+++ b/widgets/table/e-cell-tree.c
@@ -300,7 +300,7 @@ ect_draw (ECellView *ecell_view, GdkDrawable *drawable,
* ECell::event method
*/
static gint
-ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row, ECellFlags flags)
+ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row, ECellFlags flags, ECellActions *actions)
{
ECellTreeView *tree_view = (ECellTreeView *) ecell_view;
ETreeModel *tree_model = e_cell_tree_get_tree_model (ecell_view->e_table_model, row);
@@ -339,7 +339,7 @@ ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col,
default:
/* nada */
}
- return e_cell_event(tree_view->subcell_view, event, model_col, view_col, row, flags);
+ return e_cell_event(tree_view->subcell_view, event, model_col, view_col, row, flags, actions);
}
}