r3154 - in trunk/src/target/OM-2007.2/libraries/libmokoui2: . libmokoui

chris at sita.openmoko.org chris at sita.openmoko.org
Fri Oct 12 19:05:21 CEST 2007


Author: chris
Date: 2007-10-12 19:05:20 +0200 (Fri, 12 Oct 2007)
New Revision: 3154

Modified:
   trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog
   trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-finger-scroll.c
Log:
        * libmokoui/moko-finger-scroll.c:
        (moko_finger_scroll_button_press_cb):
        Add fix for when widgets grab X after a click inside MokoFingerScroll


Modified: trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog	2007-10-12 16:29:41 UTC (rev 3153)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/ChangeLog	2007-10-12 17:05:20 UTC (rev 3154)
@@ -1,3 +1,9 @@
+2007-10-12  Chris Lord  <chris at openedhand.com>
+
+	* libmokoui/moko-finger-scroll.c:
+	(moko_finger_scroll_button_press_cb):
+	Add fix for when widgets grab X after a click inside MokoFingerScroll
+
 2007-10-08  Chris Lord  <chris at openedhand.com>
 
 	* libmokoui/moko-finger-scroll.c: (get_ordered_children):

Modified: trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-finger-scroll.c
===================================================================
--- trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-finger-scroll.c	2007-10-12 16:29:41 UTC (rev 3153)
+++ trunk/src/target/OM-2007.2/libraries/libmokoui2/libmokoui/moko-finger-scroll.c	2007-10-12 17:05:20 UTC (rev 3154)
@@ -201,10 +201,16 @@
 
 	MokoFingerScrollPrivate *priv = FINGER_SCROLL_PRIVATE (scroll);
 
-	if ((!priv->enabled) || (priv->clicked) || (event->button != 1) ||
+	if ((!priv->enabled) || (event->button != 1) ||
 	    ((event->time == priv->last_time) &&
 	     (event->type == priv->last_type))) return TRUE;
 
+	if (priv->clicked && priv->child) {
+		/* Widget stole focus on last click, send crossing-out event */
+		synth_crossing (priv->child, 0, 0, event->x_root, event->y_root,
+			event->time, FALSE);
+	}
+	
 	g_get_current_time (&priv->click_start);
 	priv->last_type = event->type;
 	priv->last_time = event->time;





More information about the commitlog mailing list