Modified the procedure to get the widget at a point inside the pannable area when...
authorAlejandro G. Castro <alex@igalia.com>
Tue, 29 Jul 2008 10:50:16 +0000 (10:50 +0000)
committerAlejandro G. Castro <alex@igalia.com>
Tue, 29 Jul 2008 10:50:16 +0000 (10:50 +0000)
commitfa8aae6617bb048e237a461f4fea77794fc22cfd
treed76982a208073e431440da396a989a5db6af57bd
parent5c538c383e02a1789d18df8f7657237c7cd31b3e
Modified the procedure to get the widget at a point inside the pannable area when using the movement type signals. Now the user has to call a function to get the child, that way we just calculate the child in case the user really want to use it and not all the time.

* src/hildon-marshalers.list: Modified the marshallers, now we do
not have the widget as a parameter.

* src/hildon-pannable-area.c
(hildon_pannable_area_motion_notify_cb),
(hildon_pannable_area_class_init),
(hildon_pannable_get_child_widget_at):  Removed the widget
parameter from the signal callback. We have also refactored the
emission of the signals.

* src/hildon-pannable-area.h: Added a new method to the API to
calculate a widget at a point inside the pannable area,
hildon_pannable_get_child_widget_at.

* examples/hildon-pannable-area-example-4.c
(horizontal_movement): Modified the example to use the new API,
added condition to control which widget is under the event. This
way we can avoid scrolling laterally over other widgets.
ChangeLog
examples/hildon-pannable-area-example-4.c
src/hildon-marshalers.list
src/hildon-pannable-area.c
src/hildon-pannable-area.h