aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-09-26 05:24:22 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-09-26 05:24:22 +0800
commit650c4690b2040f83c032b67a271b996f876fdc50 (patch)
tree0261f48453ee539fca02031f81d67943d4608960 /widgets/table/e-table-item.c
parenta413337c28972fc703e73b90dd23b076f4857560 (diff)
downloadgsoc2013-evolution-650c4690b2040f83c032b67a271b996f876fdc50.tar
gsoc2013-evolution-650c4690b2040f83c032b67a271b996f876fdc50.tar.gz
gsoc2013-evolution-650c4690b2040f83c032b67a271b996f876fdc50.tar.bz2
gsoc2013-evolution-650c4690b2040f83c032b67a271b996f876fdc50.tar.lz
gsoc2013-evolution-650c4690b2040f83c032b67a271b996f876fdc50.tar.xz
gsoc2013-evolution-650c4690b2040f83c032b67a271b996f876fdc50.tar.zst
gsoc2013-evolution-650c4690b2040f83c032b67a271b996f876fdc50.zip
Commit patch from Chris to implement e_tree_right_click_up() for
correct right-click behavior in single selection mode. svn path=/trunk/; revision=13123
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 869254b703..a69db6f84d 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1823,10 +1823,12 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
if (!find_cell (eti, e->button.x, e->button.y, &col, &row, &x1, &y1))
return TRUE;
- e_selection_model_maybe_do_something(E_SELECTION_MODEL (eti->selection), view_to_model_row(eti, row), view_to_model_col(eti, col), 0);
+ e_selection_model_right_click_down(E_SELECTION_MODEL (eti->selection), view_to_model_row(eti, row), view_to_model_col(eti, col), 0);
gtk_signal_emit (GTK_OBJECT (eti), eti_signals [RIGHT_CLICK],
row, view_to_model_col(eti, col), e, &return_val);
+ if (!return_val)
+ e_selection_model_right_click_up(E_SELECTION_MODEL (eti->selection));
break;
case 4:
case 5:
@@ -1893,6 +1895,9 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
d(g_print ("Release\n"));
break;
case 3:
+ e_selection_model_right_click_up(E_SELECTION_MODEL (eti->selection));
+ return_val = TRUE;
+ break;
case 4:
case 5:
return FALSE;