2006-04-07 Tomas Junnonen <tomas.junnonen@nokia.com>
authorLuc Pionchon <luc.pionchon@nokia.com>
Fri, 7 Apr 2006 18:05:07 +0000 (18:05 +0000)
committerLuc Pionchon <luc.pionchon@nokia.com>
Fri, 7 Apr 2006 18:05:07 +0000 (18:05 +0000)
commit9df39360b7aa3f9e27e242f19bf7374b875b9a70
treee8b88ea83851f3f3083b70b3c1f54d0075397be3
parent0d4e509e46bfd8025eb421d9681399fa8f098b90
2006-04-07 Tomas Junnonen <tomas.junnonen@nokia.com>

- Added support for Pango markup
          Added   hildon_banner_show_information_with_markup
        - Removed hildon_banner_show_confirmation
        - Re-position the banner when its content changes
        - Banner now doesn't truncate strings nor insert linebreaks
        - fixes N#24339 - Information banners do not resize

        * hildon-widgets/hildon-banner.[ch]
        (hildon_banner_show_information_with_markup): new function. Adds
        pango markup support for information banners.

        (hildon_banner_show_confirmation): removed. 'confirmation' was
        used only for the taask navigator (at most). It should use
        _show_information_with_markup with appropriate markup.

        (hildon_banner_set_markup): new function.

        (hildon_banner_check_position): new function. Factor code from
        hildon_banner_realize(), and update position calculation.

        (struct _HildonBannerPrivate): removed max_lines.
        Uses as much lines as needed.

        (hildon_banner_init): set banner label to wrap lines.

        (hildon_banner_set_text): do not truncate. Update banner's position.

        (hildon_banner_set_markup): new function.
                                    Set banner's text with Pango markup.

        (_hildon_gtk_label_set_text_n_lines): marked as deprecated.

        * hildon-widgets/gtk-infoprint.c
        (gtk_confirmation_banner): use hildon_banner_show_information
        instead of _show_confirmation.
        (gtk_confirmation_banner_with_icon_name): likewise.
ChangeLog
hildon-widgets/gtk-infoprint.c
hildon-widgets/hildon-banner.c
hildon-widgets/hildon-banner.h