Claudio Saavedra [Wed, 24 Jun 2009 14:28:52 +0000 (17:28 +0300)]
Set HildonNote margins during construction
* hildon/hildon-note.c (+hildon_note_constructor),
(hildon_note_class_init), (+hildon_note_set_padding),
(hildon_note_rebuild): Install a constructor where to set the
padding properties in the note, so that it actually works fine.
Use hildon_note_set_padding() for this, and also to set it during
the note rebuild.
Claudio Saavedra [Wed, 24 Jun 2009 07:20:29 +0000 (10:20 +0300)]
Bump build dependency on GTK+ to 2.14.3-1maemo5
Claudio Saavedra [Wed, 24 Jun 2009 07:20:00 +0000 (10:20 +0300)]
Use gtk_dialog_set_padding() to set HildonNote margins
* configure.ac: Bump GTK+ requirement to 2.14.3.
* hildon/hildon-note.c: (hildon_note_rebuild): Use gtk_dialog_set_padding()
when using maemo-gtk to define proper margins for the notes.
Fixes: NB#124408 (Confirmation notes: the 'Yes' button overlaps
with the dialog edge)
Alberto Garcia [Wed, 24 Jun 2009 12:21:11 +0000 (14:21 +0200)]
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)
Claudio Saavedra [Wed, 24 Jun 2009 10:04:15 +0000 (13:04 +0300)]
Correct the color drag in HildonColorChooser
* hildon/hildon-color-chooser.c
(hildon_color_chooser_pointer_motion): Take the widget allocation
into account.
Fixes: NB#124385 (Unable to select exact point in color mixing box
in color palette dialog)
Alejandro G. Castro [Tue, 23 Jun 2009 14:39:15 +0000 (16:39 +0200)]
HildonPannableArea: new 'panning-started' and 'panning-finished' signals
* hildon/hildon-pannable-area.c (hildon_pannable_area_class_init)
(hildon_pannable_area_dispose)
(hildon_pannable_area_button_press_cb)
(hildon_pannable_area_timeout, hildon_pannable_area_check_move)
(hildon_pannable_area_button_release_cb)
(hildon_pannable_area_scroll_cb, hildon_pannable_area_jump_to):
New 'panning-started' and 'panning-finished' signals.
Fixes: NB#121732 (New feature request: Signal to pannable area
that informs when panning is stopped.)
Mox Soini [Tue, 23 Jun 2009 11:58:50 +0000 (14:58 +0300)]
Use locale-dependant separator in HildonWizardDialog title
* hildon/hildon-wizard-dialog.c: (create_title): Use separator
instead of hardcoded colon.
Fixes: NB#124090 (New calendar wizard title is not using
ecdg_ti_caption_separator)
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
David King [Mon, 22 Jun 2009 11:33:21 +0000 (13:33 +0200)]
Several fixes in the documentation of HildonFindToolbar
* hildon/hildon-find-toolbar.c: Add Gtk-Doc markup for types,
constants and functions, as well as correct many typos throughout the
documentation text.
Fixes: MB#4700 (HildonFindToolbar documentation lacks Gtk-Doc markup,
and needs cleanup)
Signed-off-by: Alberto Garcia <agarcia@igalia.com>
Claudio Saavedra [Mon, 22 Jun 2009 09:54:58 +0000 (12:54 +0300)]
Post release version bump.
* configure.ac: postrelease version bump.
* debian/changelog: post release version bump
Claudio Saavedra [Mon, 22 Jun 2009 09:53:08 +0000 (12:53 +0300)]
Release 2.1.84
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Alberto Garcia [Thu, 18 Jun 2009 16:29:05 +0000 (18:29 +0200)]
Prevent windows from having the same stack index
* hildon/hildon-window-stack.c
(hildon_window_stack_pop_and_push_list):
Prevent windows from having the same stack index
Alberto Garcia [Thu, 18 Jun 2009 15:48:01 +0000 (17:48 +0200)]
Fix dates in ChangeLog
Alberto Garcia [Thu, 18 Jun 2009 15:11:36 +0000 (17:11 +0200)]
Use the index of the previous window to calculate the new stack index
* hildon/hildon-window-stack.c (_hildon_window_stack_do_push):
Use the index of the previous window rather than the stack length
to calculate the new index.
Fixes: NB#122389
Alejandro Piñeiro [Thu, 18 Jun 2009 15:00:08 +0000 (17:00 +0200)]
Update HildonDateSelector documentation
* hildon/hildon-date-selector.c
(hildon_date_selector_select_current_date)
(hildon_date_selector_get_date)
(hildon_date_selector_select_day):
Update the documentation: uses always the range (1-31), as it is obvious
that the final one will depend on the month and the year, but globally
the range is this, in a similar GtkCalendar approach
(hildon_date_selector_get_date):
Update the documentation: add NULL as a valid value for the day, month
and year locations
Fix some details, after talk with David King on bug MB#4698
Alejandro Piñeiro [Thu, 18 Jun 2009 14:32:49 +0000 (16:32 +0200)]
2009-06-18 Alejandro Pinheiro <apinheiro@igalia.com>
* hildon/hildon-touch-selector-entry.c
* hildon/hildon-touch-selector.c
Update the documentation of the "text-column" property
David King [Wed, 17 Jun 2009 13:37:22 +0000 (15:37 +0200)]
Add Gtk-Doc markup and correct some typos and mistakes in HildonNote docs
* hildon/hildon-note.c: Add Gtk-Doc markup where appropriate. Correct
several typos and errors throughout the documentation.
Fixes: MB#4701 (HildonNote documentation lacks some Gtk-Doc markup and
has some mistakes)
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
Alberto Garcia [Thu, 18 Jun 2009 10:15:28 +0000 (12:15 +0200)]
Make HildonNote support portrait mode
* hildon/hildon-note.c (hildon_note_realize):
Make HildonNote support portrait mode.
Fixes: NB#123448 (HildonNote is not portrait-friendly)
Alberto Garcia [Wed, 17 Jun 2009 18:59:38 +0000 (20:59 +0200)]
Document hildon_color_chooser_new()
* hildon/hildon-color-chooser.c (hildon_color_chooser_new):
Document this function
David King [Wed, 17 Jun 2009 10:19:34 +0000 (12:19 +0200)]
DateSelector documentation fixes
* hildon/hildon-date-selector.c
(hildon_date_selector_select_current_date)
(hildon_date_selector_get_date): Update documentation regarding days,
as the day of the month is dependent on both the month and the year.
(hildon_date_selector_get_date): Fix documentation of output arguments.
Fixes: MB#4698 (DateSelector documentation has bad output argument
description, and the day depends on both the month and the year)
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
Claudio Saavedra [Wed, 17 Jun 2009 12:14:54 +0000 (15:14 +0300)]
Other documentation fixes to HildonCaption.
* hildon/hildon-caption.c: Other documentation fixes to
HildonCaption.
David King [Wed, 17 Jun 2009 09:46:39 +0000 (11:46 +0200)]
Documentation updates for HildonCaption
* hildon/hildon-caption.c: Minor documentation updates for
HildonCaption. Fixes MB#4697.
Claudio Saavedra [Wed, 17 Jun 2009 06:40:06 +0000 (09:40 +0300)]
Document versioning macros
* doc/hildon-docs.sgml: Add hildon-version section.
* doc/hildon-sections.txt:
* hildon/hildon-version.h.in: Document versioning macros and
add HILDON_VERSION.
Claudio Saavedra [Wed, 17 Jun 2009 05:20:54 +0000 (08:20 +0300)]
Remove HILDON_DISABLE_DEPRECATED from wrong docs section
* doc/hildon-sections.txt: Remove HILDON_DISABLE_DEPRECATED
from HildonPickerDialog section.
Alberto Garcia [Tue, 16 Jun 2009 14:52:17 +0000 (16:52 +0200)]
Set a different widget name to banners in portrait mode
* 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.
Alberto Garcia [Tue, 16 Jun 2009 12:14:46 +0000 (14:14 +0200)]
Set a different widget name to notes in portrait mode
* hildon/hildon-note.c (hildon_note_rename, screen_size_changed):
Set a different widget name to notes in portrait mode, for them to
be themed correctly.
Partially fixes: NB#118401 (HildonNote causes unnecessary
rescaling of images)
Alberto Garcia [Tue, 16 Jun 2009 12:02:12 +0000 (14:02 +0200)]
Make HildonNote request always the full width of the screen
* hildon/hildon-note.c (hildon_note_class_init)
(+hildon_note_size_request, screen_size_changed):
Always request the full width of the screen.
Fixes: NB#118375 (unnecessary rescaling of images)
Alejandro G. Castro [Tue, 16 Jun 2009 08:07:28 +0000 (10:07 +0200)]
Refactored event flags code in HildonPannableArea
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_init),
(hildon_pannable_area_realize): Replaced old code adding flags in
the object init, now we add it with the other flags in the realize
method.
Claudio Saavedra [Mon, 15 Jun 2009 22:03:19 +0000 (01:03 +0300)]
Documentation improvements for HildonNote
* hildon/hildon-note.c: (hildon_note_class_init): Several
documentation improvements to the HildonNote widget.
Claudio Saavedra [Mon, 15 Jun 2009 22:00:04 +0000 (01:00 +0300)]
Document the HildonNoteType enumeration
* hildon/hildon-note.h: Document the HildonNoteType enumeration.
Fixes: MB#4556 (HildonNoteType is undocumented)
Alberto Garcia [Mon, 15 Jun 2009 19:05:25 +0000 (21:05 +0200)]
Explain how HildonPickerButton sets the title of its dialog
* hildon/hildon-picker-button.c:
Explain how HildonPickerButton sets the title of its dialog
Fixes: MB#4528 (HildonPickerButton docs should mention how to set
the title of its dialog)
Alberto Garcia [Thu, 11 Jun 2009 15:47:23 +0000 (17:47 +0200)]
HildonCheckButton documentation updates
* hildon/hildon-check-button.c:
Documentation updates
Fixes: MB#4598 (HildonCheckButton documentation doesn't say why it
exists)
Alberto Garcia [Mon, 18 May 2009 16:05:51 +0000 (18:05 +0200)]
Add progress indicator to the HildonEditToolbar.
* 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)
Alberto Garcia [Mon, 15 Jun 2009 15:01:27 +0000 (17:01 +0200)]
Make sure that buttons in HildonAppMenu receive 'button-release-event'
* hildon/hildon-app-menu-private.h
* hildon/hildon-app-menu.c (hildon_app_menu_insert)
(hildon_app_menu_add_filter, +menu_item_button_event)
(hildon_app_menu_button_release, hildon_app_menu_init):
Make sure that buttons receive 'button-release-event' in spite of
the grab held by HildonAppMenu
Fixes: NB#108337 (Focus mismatch in items of AppMenu)
Alberto Garcia [Mon, 15 Jun 2009 10:45:48 +0000 (12:45 +0200)]
New style property to set the size of the group of filter buttons
* hildon/hildon-app-menu.c
(hildon_app_menu_apply_style, hildon_app_menu_class_init):
New style property to set the size of the group of filter buttons.
Fixes: NB#122033 (Filter buttons in view menus incorrectly sized)
Claudio Saavedra [Mon, 15 Jun 2009 09:56:33 +0000 (12:56 +0300)]
Release 2.1.82
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Claudio Saavedra [Mon, 15 Jun 2009 09:25:41 +0000 (12:25 +0300)]
Dependencies fixes in debian/control
Claudio Saavedra [Sat, 13 Jun 2009 14:32:50 +0000 (17:32 +0300)]
Minor documentation fixes.
* hildon/hildon-main.c: Minor documentation fixes.
Claudio Saavedra [Sat, 13 Jun 2009 14:31:52 +0000 (17:31 +0300)]
Document hildon-defines.h
Fixes: MB#4463 (Hildon size #defines are undocumented)
Claudio Saavedra [Sat, 13 Jun 2009 10:47:34 +0000 (13:47 +0300)]
Remove redundant "represents" wording from most of the documentation.
Fixes: MB#4554 (Documentation: Annoying "represents" phrasing.)
Alberto Garcia [Fri, 12 Jun 2009 12:18:11 +0000 (14:18 +0200)]
Remove hildon-banner-private.h
* 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.
Alberto Garcia [Fri, 12 Jun 2009 09:52:15 +0000 (11:52 +0200)]
HildonAppMenu: avoid installing duplicate idle functions
* hildon/hildon-app-menu.c (hildon_app_menu_map):
Don't install a new idle function if there's already one
installed.
Fixes: NB#122254
Alberto Garcia [Thu, 11 Jun 2009 15:58:23 +0000 (17:58 +0200)]
Set _HILDON_WM_WINDOW_TYPE property to legacy Gtk app menus
* hildon/hildon-window.c (hildon_window_toggle_gtk_menu)
(+legacy_menu_realized, +legacy_menu_unmapped)
(+set_legacy_menu_type):
Set the _HILDON_WM_WINDOW_TYPE property to legacy Gtk app menus so
they can be identified by the window manager.
Fixes: NB#101437 (Invoking CSM on the left side of page area is
displayed in wrong location)
Fixes: MB#4563 (Popup menu won't locate at the left side of the
screen)
Alberto Garcia [Thu, 11 Jun 2009 15:09:19 +0000 (17:09 +0200)]
Remove m4/gtk-doc.m4, as it already comes with gtk-doc-tools
Fixes: MB#4616 (Compiling libhildon requires gtk-doc but does not
use gtk-doc support)
Alberto Garcia [Thu, 11 Jun 2009 14:36:58 +0000 (16:36 +0200)]
Misc documentation updates
* hildon/hildon-code-dialog.c
* hildon/hildon-date-editor.c
* hildon/hildon-number-editor.c
* hildon/hildon-seekbar.c
* hildon/hildon-stackable-window.c
* hildon/hildon-window.c:
Misc documentation updates
Claudio Saavedra [Wed, 10 Jun 2009 14:25:23 +0000 (17:25 +0300)]
Make HildonEntry:size a G_PARAM_CONSTRUCT property
* hildon/hildon-entry.c (hildon_entry_class_init): Make HildonEntry:size
a G_PARAM_CONSTRUCT property, to allow the default size to be set.
Fixes: NB#117931 (Theming issues in accounts dialogs)
Alejandro G. Castro [Tue, 9 Jun 2009 12:19:54 +0000 (14:19 +0200)]
Added faked release coordinates to the release event if we want
to avoid activation.
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_button_release_cb): Changed the coordinates
of the original release in case we want to discard the release,
some widgets in Fremantle do not handle the leave-notify.
Alejandro G. Castro [Tue, 9 Jun 2009 12:10:38 +0000 (14:10 +0200)]
Reviewed release button logic
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_button_release_cb): Reviewed the logic of
the release using the last refactored functions and avoiding the
movement if an element was selected.
Alejandro G. Castro [Tue, 9 Jun 2009 10:46:16 +0000 (12:46 +0200)]
Refactored the motion_notify method
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_check_move),
(hildon_pannable_area_handle_move),
(hildon_pannable_area_motion_notify_cb): Refactored the
motion_notify method using a couple of new functions.
Claudio Saavedra [Tue, 9 Jun 2009 12:29:17 +0000 (15:29 +0300)]
Use hildon_touch_selector_set/get_text_column() in the touchselector widgets
* hildon/hildon-date-selector.c:
(hildon_date_selector_construct_ui):
* hildon/hildon-time-selector.c:
(hildon_time_selector_constructor):
* hildon/hildon-touch-selector-entry.c:
(hildon_touch_selector_entry_set_text_column),
(hildon_touch_selector_entry_get_text_column):
* hildon/hildon-touch-selector.c: (_default_print_func),
(hildon_touch_selector_new_text): Use
hildon_touch_selector_set/get_text_column() instead of
setting/getting the "text-column" property.
Claudio Saavedra [Tue, 9 Jun 2009 08:47:03 +0000 (11:47 +0300)]
Make hildon_touch_selector_column_get/set_column public
* doc/hildon-sections.txt: Add the new public methods below.
* examples/hildon-picker-button-multicolumn-example.c:
(create_touch_selector):
* examples/hildon-touch-selector-example.c: (create_selector):
* examples/hildon-touch-selector-multi-cells-example.c:
(create_selector):
Use hildon_touch_selector_column_set_text_column()
* hildon/hildon-touch-selector-column.h:
* hildon/hildon-touch-selector.c:
(hildon_touch_selector_column_set_text_column),
(hildon_touch_selector_column_get_text_column):
Make hildon_touch_selector_column_set/get_column() public, use
them in the inline example, document them, and reference to them
in the docs.
Claudio Saavedra [Tue, 9 Jun 2009 08:50:16 +0000 (11:50 +0300)]
Fix the docs for hildon_time_selector_new_step()
* hildon/hildon-time-selector.c: Fix the docs for
hildon_time_selector_new_step().
Claudio Saavedra [Tue, 9 Jun 2009 06:41:40 +0000 (09:41 +0300)]
Improve the hildon_touch_selector_append_column() documentation
* hildon/hildon-touch-selector.c: Improve the documentation for
hildon_touch_selector_append_column().
Fixes MB#4641 (Documentation:
hildon_touch_selector_append_column() ref-counting)
Claudio Saavedra [Mon, 8 Jun 2009 15:07:07 +0000 (18:07 +0300)]
Comment out test of broken hildon_controlbar_set_range()
* tests/check-hildon-controlbar.c: (test_set_range_invalid):
Comment out test 5, since the hildon_controlbar_set_range() range
check is broken and fixing it would have side effects. Also,
this finally fixes make distcheck.
Fixes: NB#101420 (Update unit tests and fix make distcheck)
Claudio Saavedra [Wed, 13 May 2009 19:52:32 +0000 (22:52 +0300)]
Remove bogus test from HildonControlbar
* tests/TEST-CASES.txt: Remove other bogus test.
* tests/check-hildon-controlbar.c: (test_set_value_invalid):
Remove bogus test that was setting/retrieving a valid value.
Claudio Saavedra [Wed, 13 May 2009 19:32:45 +0000 (22:32 +0300)]
Remove three bogus tests for HildonColorChooser
* tests/TEST-CASES.txt: Remove bogus tests.
* tests/check-hildon-color-chooser.c: (test_set_color_invalid):
Remove three bogus tests that were actually setting valid colors.
Claudio Saavedra [Mon, 8 Jun 2009 14:27:51 +0000 (17:27 +0300)]
Fix debian/changelog
Claudio Saavedra [Mon, 8 Jun 2009 13:42:23 +0000 (16:42 +0300)]
Post release version bump
* configure.ac: post release version bump
* debian/changelog: post release version bump
Claudio Saavedra [Mon, 8 Jun 2009 13:40:40 +0000 (16:40 +0300)]
Release 2.1.80
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Claudio Saavedra [Mon, 8 Jun 2009 13:27:50 +0000 (16:27 +0300)]
Backfold debian/changelog 2.1.78-2
Christian Dywan [Mon, 8 Jun 2009 11:33:23 +0000 (14:33 +0300)]
Correct errors in hildon_format_file-size_for_display
* debian/changelog:
* debian/control:
* hildon/hildon-helper.c (hildon_format_file_size_for_display):
Correct errors in hildon_format_file-size_for_display and use
translations from the hildon-fm package instead of osso-filemanager.
Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>
Alejandro G. Castro [Mon, 8 Jun 2009 11:06:57 +0000 (13:06 +0200)]
Improved the diagonal movement adjustment handling.
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_init): Initialized new values to handle the
adjustment position.
(hildon_pannable_area_adjust_value_changed): Check if the values
changed before even call the redraw function.
(hildon_pannable_area_size_allocate),
(hildon_pannable_axis_scroll),
(hildon_pannable_area_scroll),
(hildon_pannable_area_jump_to): Improved the diagonal movement
case.
Fixes: NB#113065 (Image viewer image scrolling updates in X, then
Y)
Alberto Garcia [Mon, 8 Jun 2009 10:51:31 +0000 (12:51 +0200)]
Updated HildonBanner example
* examples/hildon-banner-example.c:
Several style updates
(on_animation_clicked, on_animation_idle)
(on_progress_clicked, on_progress_idle):
Add additional reference for the cases when the parent window is
destroyed.
Alberto Garcia [Mon, 8 Jun 2009 08:49:35 +0000 (10:49 +0200)]
Documentation updates
* 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)
Alejandro G. Castro [Fri, 5 Jun 2009 10:21:36 +0000 (12:21 +0200)]
Replaced gtk 2.14 deprecated symbols
* hildon/hildon-calendar-popup.h:
* hildon/hildon-caption.h:
* hildon/hildon-code-dialog.h:
* hildon/hildon-controlbar.h:
* hildon/hildon-date-editor.h:
* hildon/hildon-dialog.h:
* hildon/hildon-get-password-dialog.h:
* hildon/hildon-hvolumebar.h:
* hildon/hildon-login-dialog.h:
* hildon/hildon-note.h:
* hildon/hildon-number-editor.h:
* hildon/hildon-range-editor.h:
* hildon/hildon-seekbar.h:
* hildon/hildon-set-password-dialog.h:
* hildon/hildon-sort-dialog.h:
* hildon/hildon-time-editor.h:
* hildon/hildon-time-picker.h:
* hildon/hildon-volumebar-range.h:
* hildon/hildon-volumebar.h:
* hildon/hildon-vvolumebar.h:
* hildon/hildon-weekday-picker.h:
* hildon/hildon-window.h:
* hildon/hildon-wizard-dialog.h: Replaced the deprecated GTK
macros with the current replacements
Fixes: NB#120941 (HildonWindow using deprecated GTK_CHECK* macros)
Claudio Saavedra [Thu, 4 Jun 2009 15:45:19 +0000 (18:45 +0300)]
Improve size of HildonColorButton
* hildon/hildon-color-button.c (hildon_color_button_init): Use
HILDON_ICON_PIXEL_SIZE_FINGER for the color icon and 80x70 for the button
itself, to make it fit better with Fremantle style.
Fixes: NB#109878 (height and width of focus on color icon is not
consistent with other item in the application tool bar)
Alejandro Piñeiro [Tue, 2 Jun 2009 11:56:44 +0000 (13:56 +0200)]
HildonTouchSelector::optimal_size_request need to manage any extra widget added
internally
* hildon/hildon-touch-selector.c:
(hildon_touch_selector_optimal_size_request): use the current requisition
as the base, in order to include any possible extra widget, like the
hildon entry on HildonTouchSelectorEntry
Fixes: NB#119805 (Merge conflict picker dialogs are too small)
Claudio Saavedra [Fri, 29 May 2009 15:42:46 +0000 (17:42 +0200)]
Post release version bump
Claudio Saavedra [Fri, 29 May 2009 15:34:41 +0000 (17:34 +0200)]
Release 2.1.78
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Claudio Saavedra [Fri, 29 May 2009 13:28:28 +0000 (15:28 +0200)]
Properly center HildonBanner contents
* 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)
Alejandro Piñeiro [Thu, 28 May 2009 15:50:40 +0000 (17:50 +0200)]
Ensure to show the scrollbars, if required, on the adjustment::changed signal
handler
* hildon/hildon-pannable-area.c
(hildon_pannable_area_initial_effect): Remove the initial_effect
management, check initial_hint
(hildon_pannable_are_expose_event): Remove the initial_hint management,
set initial_effect to FALSE
(hildon_pannable_are_refresh): Check if we need to show the scrollbars,
by launching the fade_timeout if the scrollbars state has changed and are
visible
* examples/hildon-pannable-area-initial-hint-example.c
Modified to allow to remove rows too. Add and remove rows one by one
Alberto Garcia [Thu, 28 May 2009 09:27:18 +0000 (11:27 +0200)]
Don't close HildonAppMenu if there's an animation actor below it
* hildon/hildon-app-menu.c (hildon_app_menu_find_intruder):
Don't close the menu if there's an animation actor below it.
Fixes: NB#117927 (Application menu not usable with animation
actors)
Claudio Saavedra [Wed, 27 May 2009 14:59:21 +0000 (17:59 +0300)]
Do not focus on clicking the HildonPickerDialog button
* hildon/hildon-picker-dialog.c (hildon_picker_dialog_init): Unset
"focus-on-click" from the dialog button, to avoid stealing the
focus from the entry.
Fixes: NB#118903 (Account setup wizard: Text in Search field
should be focused when "Region" touch list picker is reopened
again)
Claudio Saavedra [Wed, 27 May 2009 14:16:04 +0000 (17:16 +0300)]
Hide the separator in HildonPickerDialog
* hildon/hildon-picker-dialog.c (hildon_picker_dialog_init),
(prepare_action_area): Completely hide the dialog separator.
Claudio Saavedra [Wed, 27 May 2009 14:06:56 +0000 (17:06 +0300)]
Use HildonEntry API in HildonTouchSelectorEntry
* hildon/hildon-touch-selector-entry.c
(hildon_touch_selector_entry_print_func), (entry_on_text_changed),
(hildon_touch_selector_entry_changed): Use HildonEntry text API,
now that the entry is exposed.
Claudio Saavedra [Wed, 27 May 2009 11:11:21 +0000 (14:11 +0300)]
Avoid unnecessary scaling in HildonTouchSelectorEntry
* hildon/hildon-touch-selector-entry.c
(hildon_touch_selector_entry_init): Change the entry's size
to HILDON_SIZE_FINGER_HEIGHT, avoiding unnecessary scaling.
Claudio Saavedra [Wed, 27 May 2009 10:37:11 +0000 (12:37 +0200)]
Change default height for HildonEntry
* hildon/hildon-entry.c (hildon_entry_class_init): Set the default
height to HILDON_SIZE_AUTO_WIDTH and HILDON_SIZE_FINGER_HEIGHT, to
avoid unnecessary scaling.
Alberto Garcia [Wed, 27 May 2009 10:37:43 +0000 (12:37 +0200)]
Create grab transfer window for HildonAppMenu before mapping
* hildon/hildon-app-menu.c (hildon_app_menu_map):
Create grab transfer window before calling parent's map function.
Fixes: NB#115988 (hildon_app_menu_popup creates menu with
"crushed" button(s) in the top left corner)
Alberto Garcia [Tue, 26 May 2009 11:10:28 +0000 (13:10 +0200)]
Check if a window is already realized when adding it to a stack
* hildon/hildon-window-stack.c (_hildon_window_stack_do_push):
Check if the window is already realized when pushing it.
Claudio Saavedra [Mon, 25 May 2009 18:19:17 +0000 (20:19 +0200)]
post release version bump
Claudio Saavedra [Mon, 25 May 2009 15:38:49 +0000 (17:38 +0200)]
Release 2.1.76
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Claudio Saavedra [Tue, 19 May 2009 13:12:58 +0000 (16:12 +0300)]
Backfold debian/changelog
Alberto Garcia [Mon, 25 May 2009 17:57:06 +0000 (19:57 +0200)]
Doc updates to HildonAppMenu
* hildon/hildon-app-menu.c: Doc updates.
Claudio Saavedra [Mon, 25 May 2009 17:49:32 +0000 (20:49 +0300)]
Remove a leftover macro
* hildon/hildon-banner.c: Remove leftover macro.
Alejandro G. Castro [Mon, 25 May 2009 17:23:20 +0000 (19:23 +0200)]
Reviewed the minimum speed conditions.
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_scroll_indicator_fade),
(hildon_pannable_area_button_release_cb): Reviewed vmin
conditions, it could cause problems in the fadeout procedure.
Alejandro G. Castro [Fri, 22 May 2009 09:27:56 +0000 (11:27 +0200)]
Added a threshold to push the animation if the speed is big (MAX_SPEED_THRESHOLD).
* hildon/hildon-pannable-area.c
(hildon_pannable_area_button_release_cb): Added a threshold to
push the animation if the speed is big (MAX_SPEED_THRESHOLD).
Alejandro G. Castro [Fri, 22 May 2009 09:22:03 +0000 (11:22 +0200)]
Added code to sync the gtk dnd threshold with the panning threshold.
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_set_property): Added code to sync the gtk
dnd threshold with the panning threshold.
Alejandro G. Castro [Fri, 22 May 2009 09:19:06 +0000 (11:19 +0200)]
Changed some of the default values.
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init): Changed some of the default
values, now it should be less responsive and more accurate.
Alejandro G. Castro [Fri, 22 May 2009 09:09:04 +0000 (11:09 +0200)]
Replaced the name of the clicked attribute, now it is button_pressed
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_init),
(hildon_pannable_area_scroll_indicator_fade),
(hildon_pannable_area_button_press_cb),
(hildon_pannable_axis_scroll),
(hildon_pannable_area_timeout),
(hildon_pannable_area_motion_notify_cb),
(hildon_pannable_area_button_release_cb): Changed the name of the
clicked attribute to button_pressed, it is more clear about its use.
Alejandro Piñeiro [Mon, 25 May 2009 17:11:57 +0000 (19:11 +0200)]
Fix minor issues on hildon-pannable-area.c
* src/hildon-pannable-area.c
(hildon_pannable_area_init): set scroll_delay_counter and scrollbar_fade_delay
to 0
(hildon_pannable_area_initial_effect): avoid to compute horizontal and
vertical scrollbar visibility, and use the data on private section instead,
remove the initial_hint check
(hildon_pannable_area_expose_event): add the initial_hint check here
Alejandro Piñeiro [Mon, 25 May 2009 16:12:15 +0000 (18:12 +0200)]
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)
Alberto Garcia [Tue, 21 Apr 2009 18:05:45 +0000 (20:05 +0200)]
Optimize hildon_app_menu_repack_items() to resize the table just once
* hildon/hildon-app-menu.c (hildon_app_menu_repack_items):
Resize table before adding new items to make sure that
gtk_table_resize() is called just once.
Alberto Garcia [Tue, 21 Apr 2009 17:54:09 +0000 (19:54 +0200)]
Rearrange HildonAppMenu items just once in gtk_widget_show_all/hide_all
* hildon/hildon-app-menu-private.h
* hildon/hildon-app-menu.c (item_visibility_changed)
(filter_visibility_changed, hildon_app_menu_show_all)
(hildon_app_menu_hide_all, hildon_app_menu_init):
Rearrange items just once when gtk_widget_show_all()/hide_all()
are used.
Alberto Garcia [Mon, 20 Apr 2009 18:27:12 +0000 (20:27 +0200)]
Don't call gtk_widget_show() when adding items to HildonAppMenu
* hildon/hildon-app-menu.c
(hildon_app_menu_insert, hildon_app_menu_add_filter):
Don't call gtk_widget_show() on added items.
Fixes: NB#109063 (HildonAppMenu shouldn't show its items
automatically when they're added)
Alberto Garcia [Wed, 20 May 2009 18:09:51 +0000 (20:09 +0200)]
Redisplay HildonBanner if the screen is rotated
* 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)
Alberto Garcia [Wed, 20 May 2009 18:10:43 +0000 (20:10 +0200)]
Fix ChangeLog dates
Alejandro Piñeiro [Wed, 20 May 2009 15:52:23 +0000 (17:52 +0200)]
Fix some typos on the hildon_banner_show_information_override_dnd
* 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
Alejandro Piñeiro [Wed, 20 May 2009 13:51:38 +0000 (15:51 +0200)]
Add a new method hildon_banner_show_information_override_dnd
* 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)
Claudio Saavedra [Wed, 20 May 2009 11:36:14 +0000 (14:36 +0300)]
Add a comment explaining the math behind hildon_pannable_calculate_vel_factor()
* hildon/hildon-pannable-area.c: Add a comment explaining the math
behind hildon_pannable_calculate_vel_factor().
Claudio Saavedra [Wed, 20 May 2009 11:16:55 +0000 (14:16 +0300)]
Correct the calculation of velocity factor in pannable area
* hildon/hildon-pannable-area.c
(hildon_pannable_calculate_vel_factor): Correct the sum of the
deceleration factors.
Claudio Saavedra [Wed, 20 May 2009 11:14:37 +0000 (14:14 +0300)]
Reduce 'scroll-time' default value to 1 second.
* hildon/hildon-pannable-area.c (hildon_pannable_area_class_init):
Reduce the default value for 'scroll_time' to 1 second, since the
current initial scrolling takes too much time.