aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-item.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-25 05:24:17 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-25 05:24:17 +0800
commit5722c2786e59d4dbdbe47c00df7e0eeca390bf77 (patch)
tree2814f3d21a61893ec78fb52213d4e1a517556328 /widgets/e-table/e-table-item.c
parent5237a3a6d9e0eaadb60587d587bb2ab9e1bfdd7b (diff)
downloadgsoc2013-evolution-5722c2786e59d4dbdbe47c00df7e0eeca390bf77.tar.gz
gsoc2013-evolution-5722c2786e59d4dbdbe47c00df7e0eeca390bf77.tar.zst
gsoc2013-evolution-5722c2786e59d4dbdbe47c00df7e0eeca390bf77.zip
Pay attention to the return value from the click signal.
2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-table-item.c: Pay attention to the return value from the click signal. svn path=/trunk/; revision=5022
Diffstat (limited to 'widgets/e-table/e-table-item.c')
-rw-r--r--widgets/e-table/e-table-item.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/widgets/e-table/e-table-item.c b/widgets/e-table/e-table-item.c
index fdc5f1b36b..88b771bc2c 100644
--- a/widgets/e-table/e-table-item.c
+++ b/widgets/e-table/e-table-item.c
@@ -1418,6 +1418,14 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
if (!find_cell (eti, e->button.x, e->button.y, &col, &row, &x1, &y1))
return TRUE;
+ return_val = FALSE;
+
+ gtk_signal_emit (GTK_OBJECT (eti), eti_signals [CLICK],
+ row, col, e, &return_val);
+
+ if (return_val)
+ return TRUE;
+
e_table_selection_model_do_something(eti->selection, view_to_model_row(eti, row), view_to_model_col(eti, col), e->button.state);
gtk_object_get(GTK_OBJECT(eti->selection),
@@ -1442,8 +1450,6 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e)
e_cell_event (ecell_view, e, view_to_model_col(eti, col), col, row);
}
- gtk_signal_emit (GTK_OBJECT (eti), eti_signals [RIGHT_CLICK],
- row, col, e, &return_val);
break;
case 3:
gnome_canvas_item_w2i (item, &e->button.x, &e->button.y);