Ensure to show the initial-hint the first time the pannable becomes
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 25 May 2009 16:12:15 +0000 (18:12 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 25 May 2009 16:35:25 +0000 (18:35 +0200)
commit3b42c6427d9f051c23752daf309951714dc9b1f7
tree6e7f681c19c7d8ab7b9020a772658501005262f0
parent7220b337024634b242f2c7f4ccc731535d77bd31
Ensure to show the initial-hint the first time the pannable becomes
scrollable

* src/hildon-pannable-area.c
(hildon_pannable_area_initial_effect): set to FALSE initial_effect
if the fadeout effect was used
(hildon_pannable_area_expose_event): check if it is required to
manage the initial effect on the begining of the function. Previously
it was made at the end, but this doesn't ensure that the scrollbars
will be painted on the first show. Do not set to FALSE initial_effect,
to ensure that the initial hint is showed the first time the pannable
becomes scrollable
* examples/Makefile.am
* examples/hildon-pannable-area-initial-hint-example.c:
New example, to show that the initial-hint is showed when the widget
becomes scrollable

Fixes: NB#116607 (Pannable area should always have scrollbar visible
initially if the application can be scrolled)
ChangeLog
examples/Makefile.am
examples/hildon-pannable-area-initial-hint-example.c [new file with mode: 0644]
hildon/hildon-pannable-area.c