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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Sep 18 15:58:59 EEST 2007
Author: jobi
Date: 2007-09-18 15:58:56 +0300 (Tue, 18 Sep 2007)
New Revision: 13892

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

2007-09-18 Johan Bilien  <johan.bilien at nokia.com>

	* libhildondesktop/hildon-desktop-home-item.c: when passing
	along a button-release, use the button release event
	rather than the previous button-press



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-18 12:51:51 UTC (rev 13891)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-09-18 12:58:56 UTC (rev 13892)
@@ -1,3 +1,9 @@
+2007-09-18 Johan Bilien  <johan.bilien at nokia.com>
+
+	* libhildondesktop/hildon-desktop-home-item.c: when passing
+	along a button-release, use the button release event
+	rather than the previous button-press
+
 2007-09-18  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* src/hd-applications-menu.c (hd_applications_menu_activate_category):

Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c	2007-09-18 12:51:51 UTC (rev 13891)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-home-item.c	2007-09-18 12:58:56 UTC (rev 13892)
@@ -1423,7 +1423,9 @@
 
   if (event->window != priv->event_window &&
       event->window != priv->resize_handle_window)
+  {
     return FALSE;
+  }
 
   if (event->window == priv->event_window)
   {
@@ -1438,6 +1440,12 @@
     }
     else if (!priv->moving_threshold)
     {
+      if (priv->last_click_event)
+        gdk_event_free ((GdkEvent *)priv->last_click_event);
+
+      priv->last_click_event =
+          (GdkEventButton *)gdk_event_copy ((GdkEvent *)event);
+
       hildon_desktop_home_item_propagate_button (item,
                                                  FALSE,
                                                  TRUE);


More information about the maemo-commits mailing list