diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-11-15 06:15:13 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-11-15 06:15:13 +0800 |
commit | aa256bd41d5f1c85d17778c6bcd8e80a291fdad6 (patch) | |
tree | 1728978a7e081f049bfe1e0073c1cf2a662cebbf /widgets | |
parent | 56442c7f378972ac015cdde78a0081880322fb76 (diff) | |
download | gsoc2013-evolution-aa256bd41d5f1c85d17778c6bcd8e80a291fdad6.tar gsoc2013-evolution-aa256bd41d5f1c85d17778c6bcd8e80a291fdad6.tar.gz gsoc2013-evolution-aa256bd41d5f1c85d17778c6bcd8e80a291fdad6.tar.bz2 gsoc2013-evolution-aa256bd41d5f1c85d17778c6bcd8e80a291fdad6.tar.lz gsoc2013-evolution-aa256bd41d5f1c85d17778c6bcd8e80a291fdad6.tar.xz gsoc2013-evolution-aa256bd41d5f1c85d17778c6bcd8e80a291fdad6.tar.zst gsoc2013-evolution-aa256bd41d5f1c85d17778c6bcd8e80a291fdad6.zip |
Ungrab and set maybe_in_grab to FALSE before sending the double click
2001-11-14 Christopher James Lahey <clahey@ximian.com>
* 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
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/e-table-item.c | 17 |
1 files changed, 17 insertions, 0 deletions
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); |