aboutsummaryrefslogtreecommitdiff
path: root/hildon/hildon-banner.c
AgeCommit message (Collapse)Author
2012-05-30Widget porting to GTK+ 3Tomasz Sterna
with some added fixes for strict compiler checks
2012-01-24Removed MAEMO_CHANGES and MAEMO_GTKTomasz Sterna
2012-01-24Removed deprecated widgets and methodsTomasz Sterna
2010-04-06Fix size request of HildonBanner labelAlberto Garcia
Use the desired size (taken from the Pango layout) directly in the GtkWidget::"size-request" callback instead of calling gtk_widget_set_size_request() to set it. Fixes: NB#156165 (multi-line portrait info banners misalignment)
2010-02-23Remove main item and repack label for progress and information bannersXabier Rodriguez Calvar
Doing it in _set_text was causing a problem with information banner, which ended up not having the animation widget. Fixes: NB#156325
2009-11-17Change the method used to calculate the size of the HildonBanner labelAlberto Garcia
Fixes: NB#119708 (Text in 'Disconnect..." banner is not aligned properly, when changed from portrait to lanscape mode.)
2009-10-21When packing the custom widget, unpack the label and viceversaXabier Rodriguez Calvar
We also need to add a reference to the label and release it in the dispose, which has been added too. Fixes: NB#143625 (Timed custom banner interferes with timed normal banners)
2009-10-21Make sure that the banner has the minimum size needed before showing itAlberto Garcia
Fixes: NB#120613 (Size of HildonBanner varies depending on previously opened banners)
2009-10-20Don't reshow hidden Hildon banners when the screen is rotatedXabier Rodriguez Calvar
Fixes: NB#141835 (HildonBanner reappears if the screen is rotated)
2009-10-01Add hildon_banner_show_custom_widget()Claudio Saavedra
* doc/hildon-sections.txt: Add hildon_banner_show_custom_widget() * examples/hildon-banner-example.c: (area_expose), (custom_widget_new), (on_progress_idle): New example showing a custom widget. * hildon/hildon-banner.c: * hildon/hildon-banner.h: Add hildon_banner_show_custom_widget(). Fixes: NB#140140 (Allow custom widgets to be used in banners)
2009-10-01Make sure that all timeouts in HildonBanner are removedAlberto Garcia
* hildon/hildon-banner.c (hildon_banner_timeout): Remove the timeout, if present, before setting it to 0. Fixes: NB#141447 (HildonBanner crashes if a new one is shown during a delete event)
2009-09-30Don't hide and show HildonBanner when the screen size changesAlberto Garcia
* hildon/hildon-banner.c (screen_size_changed): Don't hide and show the banner when the screen size changes. Fixes: NB#141140 (Rotation stops when banner is present)
2009-08-06Replace g_idle_add/g_timeout_add with their gdk_threads counterpartsAlberto Garcia
* examples/hildon-hvolumebar-timer-example.c (on_idle, main) * hildon/hildon-banner.c (hildon_banner_timeout, hildon_banner_ensure_timeout) * hildon/hildon-calendar.c (calendar_timer, start_spinning) * hildon/hildon-color-chooser.c (inline_limited_expose) * hildon/hildon-date-editor.c (hildon_date_editor_entry_focus_in) (hildon_date_editor_entry_validate) (hildon_date_editor_entry_select_all) * hildon/hildon-note.c (on_show_cb) * hildon/hildon-number-editor.c (hildon_number_editor_button_pressed) (hildon_number_editor_start_timer, do_mouse_timeout), (add_select_all_idle, hildon_number_editor_select_all) * hildon/hildon-time-editor.c (hildon_time_editor_entry_focus_in) (highlight_callback, hildon_time_editor_validate) (hildon_time_editor_entry_select_all) * hildon/hildon-time-picker.c (hildon_time_picker_arrow_press) (hildon_time_picker_key_repeat_timeout) * hildon/hildon-window.c (hildon_window_key_press_event) (hildon_window_escape_timeout): Replace all calls to g_idle_add/g_timeout_add with their gdk_threads counterparts. Fixes: NB#126198 (gdk-threads API should be used to install idle and timeout handlers)
2009-07-01Set position of HildonBanner after mappingAlberto Garcia
* hildon/hildon-banner.c (hildon_banner_map): Set banner position after mapping.
2009-06-24Fix size and text alignment of HildonBannerAlberto Garcia
* 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)
2009-06-16Set a different widget name to banners in portrait modeAlberto Garcia
* hildon/hildon-banner.c (hildon_banner_bind_style) (screen_size_changed, hildon_banner_init) (hildon_banner_real_show_information) (hildon_banner_show_information_with_markup) (hildon_banner_show_animation, hildon_banner_show_progress): Set a different widget name to banners in portrait mode, for them to be themed correctly.
2009-06-15Add progress indicator to the HildonEditToolbar.Alberto Garcia
* hildon/Makefile.am * hildon/hildon-edit-toolbar-private.h * hildon/hildon-edit-toolbar.c (+hildon_edit_toolbar_set_progress_indicator) (hildon_edit_toolbar_init): Add progress indicator to the toolbar. * hildon/hildon-gtk.c (hildon_gtk_window_set_progress_indicator): If the window contains a HildonEditToolbar, enable the progress indicator there too. * hildon/hildon-private.h * hildon/hildon-private.c (+hildon_private_create_animation) * hildon/hildon-banner.c (-hildon_banner_create_animation): Moved to hildon-private.c Fixes: NB#102373 (Progress indicator also for the Edit mode toolbar)
2009-06-12Remove hildon-banner-private.hAlberto Garcia
* po/POTFILES.in * doc/Makefile.am * hildon/Makefile.am * hildon/hildon-banner-private.h * hildon/hildon-banner.c: Move HildonBannerPrivate to hildon-banner.c and remove hildon-banner-private.h Use a bit field to store private booleans.
2009-06-08Documentation updatesAlberto Garcia
* doc/hildon-sections.txt * hildon/hildon-pannable-area.c * hildon/hildon-banner.h * hildon/hildon-banner.c: Documentation updates. Fixes: MB#4643 (Documentation: hildon_banner_show_information() memory management)
2009-05-29Properly center HildonBanner contentsClaudio Saavedra
* hildon/hildon-banner-private.h: Add a GtkAlignment to the private structure. * hildon/hildon-banner.c (hildon_banner_init): Use a GtkAlignment to ensure the banner contents are centered, instead of relying on the expand and fill properties in GtkHBox. (hildon_banner_ensure_child): Do not expand nor fill the child widget. Fixes: NB#108265 (Animation banner not properly centered)
2009-05-25Remove a leftover macroClaudio Saavedra
* hildon/hildon-banner.c: Remove leftover macro.
2009-05-20Redisplay HildonBanner if the screen is rotatedAlberto Garcia
* hildon/hildon-banner.c (hildon_banner_realize, +hildon_banner_unrealize) (+screen_size_changed, hildon_banner_class_init): Redisplay the banner if the screen is rotated. Fixes: NB#117870 ('Disconnect charger...' info banner is truncated on transition from landscape to portrait)
2009-05-20Fix some typos on the hildon_banner_show_information_override_dndAlejandro Piñeiro
* hildon/hildon-banner.[ch]: (hildon_banner_show_information_override_dnd): remove icon_name from the method definition as it is ignored. * examples/hildon-banner-dnd-example.c: updated with the change on hildon-banner.h API
2009-05-20Add a new method hildon_banner_show_information_override_dndAlejandro Piñeiro
* hildon/hildon-banner-private.h: new require_override_dnd and overrides_dnd variables * hildon/hildon-banner.h: (hildon_banner_show_information_override_dnd): new method, that shows the information but sets the override flag, in order to show important messages * hildon/hildon-banner.c (hildon_banner_show_information_override_dnd): new method (hildon_banner_set_override_flag): new utility function (hildon_banner_real_show_information): new utility function, in order to generalize the current hildon_banner_show_information_override_dnd and hildon_banner_show_information_override_dnd * examples/Makefile.am * examples/hildon-banner-dnd-example.c: New example that show how to use the new hildon_banner_show_information_override_dnd Fixes: NB#114874 (There is no possibility to show hildon banners with DND flag set)
2009-05-05Replace the progress bar in HildonBanner with a progress indicatorAlberto Garcia
Based on a patch by Mox Soini (ext-mox.soini@nokia.com) * hildon/hildon-banner.c (hildon_banner_destroy) (hildon_banner_show_progress, hildon_banner_set_fraction): Remove the progress bar from HildonBanner and use a progress indicator instead. Fixes: NB#113761 (Update progress banner to use progress indicator)
2009-05-04Calculate max label size of HildonBanner using the actual screen widthAlberto Garcia
* hildon/hildon-banner.c: Calculate size of the banner label using the actual screen width rather than using a fixed value. Fixes: NB#114395 ('Disconnect charger...' info banner in portrait is truncated)
2009-04-30Renamed src/ to hildon/Alberto Garcia
* src/ * Makefile.am * configure.ac * doc/Makefile.am * doc/hildon.types * po/POTFILES.in: Renamed src/ to hildon/ * examples/*.c * debian/changelog * debian/rules: Include <hildon/hildon.h> directly in all examples.