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-tree.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-tree.c')
-rw-r--r-- | widgets/table/e-cell-tree.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c index 32ae9ca1f7..7390d0e284 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) +ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, int row, ECellFlags flags) { ECellTreeView *tree_view = (ECellTreeView *) ecell_view; ETreeModel *tree_model = e_cell_tree_get_tree_model (ecell_view->e_table_model, row); @@ -322,7 +322,7 @@ ect_event (ECellView *ecell_view, GdkEvent *event, int model_col, int view_col, return TRUE; } else if (event->button.x < (offset - INDENT_AMOUNT)) - return TRUE; + return FALSE; } default: /* modify the event and pass it off to our subcell_view */ @@ -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); + return e_cell_event(tree_view->subcell_view, event, model_col, view_col, row, flags); } } @@ -423,6 +423,12 @@ ect_show_tooltip (ECellView *ecell_view, int model_col, int view_col, int row, ETreeModel *tree_model = e_cell_tree_get_tree_model (ecell_view->e_table_model, row); ETreePath *node = e_cell_tree_get_node (ecell_view->e_table_model, row); int offset = offset_of_node (tree_model, node); + + { + tooltip->x += offset; + e_cell_show_tooltip(tree_view->subcell_view, model_col, view_col, row, tooltip); + } +#if 0 GdkPixbuf *node_image; node_image = e_tree_model_icon_of_node (tree_model, node); @@ -435,6 +441,7 @@ ect_show_tooltip (ECellView *ecell_view, int model_col, int view_col, int row, tooltip->x += offset; e_cell_show_tooltip (tree_view->subcell_view, model_col, view_col, row, tooltip); } +#endif } /* |