Fix size and text alignment of HildonBanner
authorAlberto Garcia <agarcia@igalia.com>
Wed, 24 Jun 2009 12:21:11 +0000 (14:21 +0200)
committerAlberto Garcia <agarcia@igalia.com>
Wed, 24 Jun 2009 12:46:48 +0000 (14:46 +0200)
commitab585627501b31f5e49c2a5f1e4d0b425c960b5f
treee20f8ca701d05b31657dbb81d7f51d7c460da34c
parentf4ff2664e782b944dc48e0ce85a287c7d2664c80
Fix size and text alignment of HildonBanner

* hildon/hildon-banner.c
(hildon_banner_class_init):
Center text.
(+hildon_banner_size_request):
Request always the full width of the screen.
(hildon_banner_realize)
(-hildon_banner_check_position, hildon_banner_map):
hildon_banner_check_position() is not needed in Hildon 2.2.
(-hildon_banner_reset_wrap_state)
(hildon_banner_constructor, hildon_banner_init):
Remove unnecessary calls to hildon_banner_reset_wrap_state()
(+banner_do_set_text)
(force_to_wrap_truncated):
Remove has_been_wrapped and has_been_truncated attributes.
(+reshow_banner, hildon_banner_real_show_information)
(hildon_banner_show_information_with_markup)
(hildon_banner_show_animation, hildon_banner_show_progress)
(hildon_banner_set_text, hildon_banner_set_markup):
Refactor code. Shrink banner vertically to use the minimum space
necessary everytime the text of the label is updated.
(screen_size_changed):
Call force_to_wrap_truncated() when the size of the screen
changes.

Fixes: NB#120500 (only device memory connect mmc in use info
banner is left aligned)

Fixes: NB#120613 (Size of HildonBanner varies depending on
previously opened banners)
ChangeLog
hildon/hildon-banner.c