[maemo-commits] [maemo-commits] r12111 - in projects/haf/trunk/hildon-home-webshortcut: . plugin

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jun 5 17:11:22 EEST 2007
Author: jobi
Date: 2007-06-05 17:11:20 +0300 (Tue, 05 Jun 2007)
New Revision: 12111

Modified:
   projects/haf/trunk/hildon-home-webshortcut/ChangeLog
   projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c
Log:

2007-06-05  Johan Bilien  <johan.bilien at nokia.com>

	* plugin/hildon-home-webshortcut.c:
	- do not launch the browser if the stylus moved by more than 15px



Modified: projects/haf/trunk/hildon-home-webshortcut/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-home-webshortcut/ChangeLog	2007-06-05 13:21:16 UTC (rev 12110)
+++ projects/haf/trunk/hildon-home-webshortcut/ChangeLog	2007-06-05 14:11:20 UTC (rev 12111)
@@ -1,3 +1,8 @@
+2007-06-05  Johan Bilien  <johan.bilien at nokia.com>
+
+	* plugin/hildon-home-webshortcut.c:
+	- do not launch the browser if the stylus moved by more than 15px
+
 2007-05-28  Johan Bilien  <johan.bilien at nokia.com>
 
 	* configure.ac: 1.9.2

Modified: projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c
===================================================================
--- projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c	2007-06-05 13:21:16 UTC (rev 12110)
+++ projects/haf/trunk/hildon-home-webshortcut/plugin/hildon-home-webshortcut.c	2007-06-05 14:11:20 UTC (rev 12111)
@@ -522,7 +522,8 @@
   Hhws             *hhws = HHWS (widget);
   HhwsPrivate      *priv = hhws->priv;
 
-  if (priv->click_x != event->x_root || priv->click_y != event->y_root)
+  if ((ABS (priv->click_x - event->x_root)  > 15.0 )  ||
+      (ABS (priv->click_y - event->y_root)) > 15.0)
     {
       return GTK_WIDGET_CLASS (hhws_parent_class)->button_release_event (widget,
                                                                          event);


More information about the maemo-commits mailing list