diff options
Diffstat (limited to 'e-util/e-table-field-chooser-item.c')
-rw-r--r-- | e-util/e-table-field-chooser-item.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/e-util/e-table-field-chooser-item.c b/e-util/e-table-field-chooser-item.c index a12ddc6ff7..d713bc3359 100644 --- a/e-util/e-table-field-chooser-item.c +++ b/e-util/e-table-field-chooser-item.c @@ -549,14 +549,14 @@ etfci_maybe_start_drag (ETableFieldChooserItem *etfci, gint x, gint y) { + GnomeCanvasItem *item; + if (!etfci->maybe_drag) return FALSE; - if (MAX (abs (etfci->click_x - x), - abs (etfci->click_y - y)) <= 3) - return FALSE; + item = GNOME_CANVAS_ITEM (etfci); - return TRUE; + return gtk_drag_check_threshold (GTK_WIDGET (item->canvas), etfci->click_x, etfci->click_y, x, y); } static void |