2009-02-18 Alejandro G. Castro <alex@igalia.com>
authorAlejandro G. Castro <alex@igalia.com>
Fri, 20 Feb 2009 14:11:47 +0000 (14:11 +0000)
committerAlejandro G. Castro <alex@igalia.com>
Fri, 20 Feb 2009 14:11:47 +0000 (14:11 +0000)
commitcba887651690e15e15615134ed080898c47d014b
tree1a5f551eae839b34a4cf2e6ddf400db841b9b4c8
parent89c9d533c6dcc410cf7e5ffab412447d0dfa8620
2009-02-18 Alejandro G. Castro <alex@igalia.com>

Reviewed the geometry that handles the children size and
scrollbar, now it tries a size and reviews the results depending
on the scrollbars visibility.

* src/hildon-pannable-area.c,
(hildon_pannable_area_realize): Fixed a typo.
(hildon_pannable_area_child_allocate_calculate): Added this
function to calculate the child allocation.
(hildon_pannable_area_size_allocate): Reviewed the allocation
code.
(hildon_pannable_area_check_scrollbars),
(hildon_pannable_area_refresh): Refactored refresh function, this
way we can call the code handling the scrollbars without causing a
size_request, it is interesting in the allocate.
(hildon_pannable_area_init): Replace the callbacks of the
value_changed and changed signals to propertly deal with the
geometry.
(hildon_pannable_area_grab_notify),
(hildon_pannable_area_initial_effect),
(hildon_pannable_area_launch_fade_timeout),
(hildon_pannable_area_adjust_changed),
(hildon_pannable_area_adjust_value_changed),
(hildon_pannable_area_redraw),
(hildon_pannable_area_button_press_cb),
(hildon_pannable_area_button_release_cb),
(hildon_pannable_area_scroll_cb),
(hildon_pannable_area_scroll_to): Refactor the fade timeout launch
code and use the new functions adjust_changed and
adjust_value_changed.

Fixes: NB#101603 (Focus is not even for the text entry boxes in
Contact editor dialog)
ChangeLog
src/hildon-pannable-area.c