From 5722c2786e59d4dbdbe47c00df7e0eeca390bf77 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 24 Aug 2000 21:24:17 +0000 Subject: Pay attention to the return value from the click signal. 2000-08-24 Christopher James Lahey * e-table-item.c: Pay attention to the return value from the click signal. svn path=/trunk/; revision=5022 --- widgets/table/e-table-item.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index fdc5f1b36b..88b771bc2c 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/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); -- cgit