[maemo-commits] [maemo-commits] r8625 - projects/haf/trunk/gtkhtml/upstream/patches

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Dec 5 13:15:41 EET 2006
Author: pavelek
Date: 2006-12-05 13:15:40 +0200 (Tue, 05 Dec 2006)
New Revision: 8625

Added:
   projects/haf/trunk/gtkhtml/upstream/patches/gtkhtml_get_motion_hints.diff
Log:
Forgot this one file ...


Added: projects/haf/trunk/gtkhtml/upstream/patches/gtkhtml_get_motion_hints.diff
===================================================================
--- projects/haf/trunk/gtkhtml/upstream/patches/gtkhtml_get_motion_hints.diff	2006-12-05 11:11:53 UTC (rev 8624)
+++ projects/haf/trunk/gtkhtml/upstream/patches/gtkhtml_get_motion_hints.diff	2006-12-05 11:15:40 UTC (rev 8625)
@@ -0,0 +1,18 @@
+# Use proper function (gdk_device_get_state) to get next motion hint
+#
+# Copyright (C) 2006 Nokia Corporation.
+# This file is distributed under the terms of GNU LGPL license, either version 2
+# of the License, or (at your option) any later version.
+#
+diff -ru gtkhtml-3.9.1/src/gtkhtml.c gtkhtml-3.9.1.mod/src/gtkhtml.c
+--- gtkhtml-3.9.1/src/gtkhtml.c	2006-12-04 12:43:55.000000000 +0200
++++ gtkhtml-3.9.1.mod/src/gtkhtml.c	2006-12-05 09:09:51.000000000 +0200
+@@ -1611,6 +1611,8 @@
+ 	widget = shift_to_iframe_parent (widget, &x, &y);
+ 
+ 	gdk_window_get_pointer (GTK_LAYOUT (widget)->bin_window, &x, &y, NULL);
++	if (event->is_hint)
++		gdk_device_get_state (event->device, GTK_LAYOUT (widget)->bin_window, NULL, NULL) ;
+ 
+ 	/* If there is only a small motion from the origin and simple 
+ 	   doubleclick is active, abort the motion, otherwise clear simple_dblclick flag */


More information about the maemo-commits mailing list