Added more protection to the pannable area timeouts
authorAlejandro G. Castro <alex@igalia.com>
Wed, 26 Aug 2009 06:47:24 +0000 (08:47 +0200)
committerAlejandro G. Castro <alex@igalia.com>
Wed, 26 Aug 2009 06:48:54 +0000 (08:48 +0200)
commit76647632fc1c5e345216bec8a314c49c7a4dc1fe
treefa5d5ede551f2dd710cb688c792fd30484fbe805
parent5684ea57fada5d9a9f025f9acd5a5d2dbba55123
Added more protection to the pannable area timeouts

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_remove_timeouts): Adding this new function
with code that removes the timeouts of the widget.
(hildon_pannable_area_dispose),
(hildon_pannable_area_unrealize): Use the new remove function to
stop timeouts when unrealizing and disposing.
(hildon_pannable_area_scroll_to): Added a CLAMP to the position
calculation to avoid negative values in some cases.

Fixes: NB#135179 (Remove pannable timeouts in unrealize function)
ChangeLog
hildon/hildon-pannable-area.c