From aa256bd41d5f1c85d17778c6bcd8e80a291fdad6 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 14 Nov 2001 22:15:13 +0000 Subject: Ungrab and set maybe_in_grab to FALSE before sending the double click 2001-11-14 Christopher James Lahey * e-table-item.c (eti_event): Ungrab and set maybe_in_grab to FALSE before sending the double click signal. svn path=/trunk/; revision=14708 --- widgets/table/e-table-item.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index df8474eb15..76be881ffd 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -2356,6 +2356,23 @@ eti_event (GnomeCanvasItem *item, GdkEvent *e) button.y = y1; #endif + if (e->button.button == 1) { + if (eti->maybe_in_drag) { + eti->maybe_in_drag = FALSE; + if (!eti->maybe_did_something) + e_selection_model_do_something(E_SELECTION_MODEL (eti->selection), eti->drag_row, eti->drag_col, eti->drag_state); + } + if (eti->in_drag) { + eti->in_drag = FALSE; + } + } + + if (eti->grabbed) { + d(g_print ("%s: eti_ungrab\n", __FUNCTION__)); + eti_ungrab (eti, e->button.time); + eti->grabbed = FALSE; + } + if (model_row != -1 && model_col != -1) { gtk_signal_emit (GTK_OBJECT (eti), eti_signals [DOUBLE_CLICK], model_row, model_col, e); -- cgit