From a8d03ecd2b1c1e3537ac2e324f224a4add13ade2 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 10 Apr 2008 18:56:04 +0300 Subject: [PATCH] Use larger area for thumb press, add debug output. --- src/map.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/map.c b/src/map.c index 6103601..106c6a5 100644 --- a/src/map.c +++ b/src/map.c @@ -64,7 +64,7 @@ #define DEBUG_MAP_TIME 1 -#define MAP_THUMB_MARGIN (20) +#define MAP_THUMB_MARGIN (100) /* Initial size */ #define BUF_WIDTH_TILES (4) @@ -1439,6 +1439,8 @@ _cmenu_position_y = event->y + 0.5; #if defined(WITH_HILDON_NEW) if (hildon_helper_event_button_is_finger(event)) { + g_debug("Thumb down"); + if (event->xbutton) { case 1: if (event->type==GDK_2BUTTON_PRESS) { @@ -1495,6 +1496,13 @@ gdouble lat, lon; guint poi_id; gint ux, uy; +#if defined(WITH_HILDON_NEW) +if (hildon_helper_event_button_is_finger(event)) { + g_debug("Thumb up"); + return FALSE; +} +#endif + switch (event->button) { case 1: if (_center_mode>0) -- 2.39.5