+2009-08-11 Alejandro G. Castro <alex@igalia.com>
+
+ * hildon/hildon-pannable-area.c
+ (hildon_pannable_area_button_press_cb),
+ (hildon_pannable_area_motion_notify_cb),
+ (hildon_pannable_area_button_release_cb): Added unrefs to reduce
+ the spurious ref added in the copy, fixes leak of window.
+
+ Fixes: NB#130900 (HildonPannableArea will leak it's event_window
+ if it's realized without showing and then deleted)
+
2009-08-10 Alberto Garcia <agarcia@igalia.com>
[Release 2.1.94]
(gpointer) & priv->child);
event = (GdkEventButton *) gdk_event_copy ((GdkEvent *) event);
+ /* remove the reference we added with the copy */
+ g_object_unref (priv->event_window);
event->x = x;
event->y = y;
priv->cx = x;
if (priv->child) {
/* Send motion notify to child */
event = (GdkEventMotion *) gdk_event_copy ((GdkEvent *) event);
+ /* remove the reference we added with the copy */
+ g_object_unref (priv->event_window);
event->x = priv->cx + (event->x - priv->ix);
event->y = priv->cy + (event->y - priv->iy);
event->window = g_object_ref (priv->child);
event->x, event->y, &x, &y, GDK_BUTTON_RELEASE_MASK);
event = (GdkEventButton *) gdk_event_copy ((GdkEvent *) event);
+ /* remove the reference we added with the copy */
+ g_object_unref (priv->event_window);
event->x = x;
event->y = y;