diff options
author | Milan Crha <mcrha@redhat.com> | 2014-03-24 23:21:49 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-03-24 23:22:23 +0800 |
commit | ec1862c1497ac44f89c1fe3d92d922b525da96d9 (patch) | |
tree | ffc0b976d290f211bb405c2570ac177387135db5 /addressbook | |
parent | eee485721077c5043608a441e5d2f66f536b5ad0 (diff) | |
download | gsoc2013-evolution-ec1862c1497ac44f89c1fe3d92d922b525da96d9.tar gsoc2013-evolution-ec1862c1497ac44f89c1fe3d92d922b525da96d9.tar.gz gsoc2013-evolution-ec1862c1497ac44f89c1fe3d92d922b525da96d9.tar.bz2 gsoc2013-evolution-ec1862c1497ac44f89c1fe3d92d922b525da96d9.tar.lz gsoc2013-evolution-ec1862c1497ac44f89c1fe3d92d922b525da96d9.tar.xz gsoc2013-evolution-ec1862c1497ac44f89c1fe3d92d922b525da96d9.tar.zst gsoc2013-evolution-ec1862c1497ac44f89c1fe3d92d922b525da96d9.zip |
Bug #726110 - Use gtk_drag_check_threshold() instead of hard-coded values
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index e48c5321a6..c1226653bc 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -630,8 +630,9 @@ e_minicard_event (GnomeCanvasItem *item, break; case GDK_MOTION_NOTIFY: if (e_minicard->drag_button_down && event->motion.state & GDK_BUTTON1_MASK) { - if (MAX (abs (e_minicard->button_x - event->motion.x), - abs (e_minicard->button_y - event->motion.y)) > 3) { + if (gtk_drag_check_threshold (GTK_WIDGET (item->canvas), + e_minicard->button_x, e_minicard->button_y, + event->motion.x, event->motion.y)) { gint ret_val; ret_val = e_minicard_drag_begin (e_minicard, event); |