[maemo-commits] [maemo-commits] r14448 - in projects/haf/trunk/hildon-desktop: . libhildondesktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Oct 15 09:56:14 EEST 2007
Author: jobi
Date: 2007-10-15 09:56:10 +0300 (Mon, 15 Oct 2007)
New Revision: 14448

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c
Log:

2007-10-15  Johan Bilien  <johan.bilien at nokia.com>

	* libhildondesktop/hildon-desktop-home-item.c: enable
	extension events on the event window, so the pressure
	information is propagated to child widgets. Patch courtesy
	of Tomas Junnonen. Fixes: NB#73005



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-10-12 14:47:51 UTC (rev 14447)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-10-15 06:56:10 UTC (rev 14448)
@@ -1,3 +1,10 @@
+2007-10-15  Johan Bilien  <johan.bilien at nokia.com>
+
+	* libhildondesktop/hildon-desktop-home-item.c: enable
+	extension events on the event window, so the pressure
+	information is propagated to child widgets. Patch courtesy
+	of Tomas Junnonen. Fixes: NB#73005
+
 2007-10-11  Johan Bilien  <johan.bilien at nokia.com>
 
 	* configure.ac: 0.0.45

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c	2007-10-12 14:47:51 UTC (rev 14447)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c	2007-10-15 06:56:10 UTC (rev 14448)
@@ -645,6 +645,10 @@
                                            attributes_mask);
       gdk_window_set_user_data (priv->event_window, widget);
 
+      gdk_input_set_extension_events(priv->event_window,
+                                     gdk_window_get_events(priv->event_window),
+                                     GDK_EXTENSION_EVENTS_ALL);
+
       if (priv->resize_type != HILDON_DESKTOP_HOME_ITEM_RESIZE_NONE)
         {
           if (priv->resize_handle)
@@ -915,6 +919,8 @@
       event->window != priv->resize_handle_window)
     return FALSE;
 
+  gdk_event_request_motions (event);
+
   if (priv->state == HILDON_DESKTOP_HOME_ITEM_STATE_NORMAL &&
       !priv->click_timeout)
   {


More information about the maemo-commits mailing list