From: Alejandro Pinheiro Date: Wed, 26 Aug 2009 07:37:43 +0000 (+0200) Subject: Fixed error in one of the branches of the topmost algorithm. X-Git-Tag: 2.1.96-2~1 X-Git-Url: http://vcs.maemo.org/git/?p=hildon;a=commitdiff_plain;h=b21ccb063e5791d68bd15fee469bd4ed550806fa Fixed error in one of the branches of the topmost algorithm. * hildon/hildon-pannable-area.c (hildon_pannable_area_get_topmost): change the computation of the co-ordinates transformed when no one of the children is a topmost Fixes: NB#133252 (Opening any feed item from RSS always opens the first feed item in browser) Signed-off-by: Alejandro G. Castro --- diff --git a/ChangeLog b/ChangeLog index f194eec..789b5c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-08-26 Alejandro Pinheiro + + * hildon/hildon-pannable-area.c + (hildon_pannable_area_get_topmost): change the computation of the + co-ordinates transformed when no one of the children is a topmost + + Fixes: NB#133252 (Opening any feed item from RSS always opens the + first feed item in browser) + 2009-08-26 Alejandro G. Castro * hildon/hildon-pannable-area.c, diff --git a/hildon/hildon-pannable-area.c b/hildon/hildon-pannable-area.c index 9eaaf41..3814865 100644 --- a/hildon/hildon-pannable-area.c +++ b/hildon/hildon-pannable-area.c @@ -1880,9 +1880,9 @@ hildon_pannable_area_get_topmost (GdkWindow * window, tx, ty, mask); if (!selected_window) { if (tx) - *tx = x; + *tx = x-wx; if (ty) - *ty = y; + *ty = y-wy; selected_window = child; } } else {