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.
Claudio Saavedra [Wed, 20 May 2009 09:44:08 +0000 (12:44 +0300)]
Do not calculate velocity factor during pannable initialization
* hildon/hildon-pannable-area.c (hildon_pannable_area_init): Do not
calculate velocity factor during initialization, since the properties
are not yet set.
Claudio Saavedra [Wed, 20 May 2009 09:42:21 +0000 (12:42 +0300)]
Calculate velocity factor after setting deceleration property
* hildon/hildon-pannable-area.c
(hildon_pannable_area_set_property): Calculate the velocity factor
after setting the deceleration property and not after.
Alberto Garcia [Wed, 20 May 2009 10:27:46 +0000 (12:27 +0200)]
Add a 'size' property to HildonCheckButton and HildonEntry
* hildon/hildon-entry.c
(hildon_entry_class_init, +set_property, hildon_entry_new)
* hildon/hildon-check-button.c
(hildon_check_button_class_init)
(+set_property, hildon_check_button_new):
Make the theme size a property.
Fixes: NB#117928 (Widgets such as Entry and CheckButton (and
others) do too much in the _new function)
Claudio Saavedra [Mon, 18 May 2009 10:10:21 +0000 (13:10 +0300)]
Post release version bump
* configure.ac: post release version bump
* debian/changelog: post release version bump
Claudio Saavedra [Mon, 18 May 2009 10:07:30 +0000 (13:07 +0300)]
Release 2.1.74
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Alberto Garcia [Fri, 15 May 2009 15:47:28 +0000 (17:47 +0200)]
gdk_event_new() already returns a struct filled with zeros
Alberto Garcia [Wed, 18 Mar 2009 17:47:59 +0000 (18:47 +0100)]
New API function to take a screenshot of a window
* hildon/hildon-gtk.h
* hildon/hildon-gtk.c (hildon_gtk_window_take_screenshot):
New API function to take a screenshot of a window
Fixes: NB#106374 (Need API to take a loading screenshot)
Alejandro Piñeiro [Fri, 15 May 2009 13:32:17 +0000 (15:32 +0200)]
Prevent to use unitialized values on hildon-time-selector.c
* hildon/hildon-time-selector.c
(update_format_policy): prevent to use hours and minutes unitialized
Alberto Garcia [Wed, 1 Apr 2009 14:37:46 +0000 (16:37 +0200)]
Make HildonWindow request always the full size of the screen
* hildon/hildon-window.c (hildon_window_size_request):
Always request the full size of the screen (minus the title bar if
not in fullscreen mode).
Fixes: NB#107486 (HildonWindow should size itself properly)
Claudio Saavedra [Thu, 14 May 2009 13:40:38 +0000 (16:40 +0300)]
Fix debian/changelog
Claudio Saavedra [Wed, 13 May 2009 13:09:55 +0000 (16:09 +0300)]
Backfold debian/changelog
Claudio Saavedra [Wed, 13 May 2009 13:02:54 +0000 (16:02 +0300)]
Remove reopened bug from debian/changelog
Claudio Saavedra [Thu, 14 May 2009 10:56:37 +0000 (13:56 +0300)]
Disconnect the idle sound handler in notes during finalization
* hildon/hildon-note-private.h: Add idle_handler to the private data.
* hildon/hildon-note.c (hildon_note_init), (hildon_note_finalize),
(on_show_cb), (sound_handling): Disconnect the idle handler for
the sound when the note is finalized to avoid possible crashes.
Fixes: NB#116786 (Image viewer crases whie trying to launch menu,
in a scenario)
Artem Egorkine [Wed, 13 May 2009 14:58:32 +0000 (17:58 +0300)]
Clean up signal handlers in animation actor and remote texture
* src/hildon-animation-actor.c,
* src/hildon-remote-texture.c:
Added proper object cleanup to remove signal handler and object
references as HildonAnimationActor and HildonRemoteTexture
objects get destroyed.
Fixes: NB#116682 (Destroying parented animation actors when
parent in unmapped leads to crash)
Claudio Saavedra [Wed, 13 May 2009 10:41:28 +0000 (13:41 +0300)]
Add new file size formatting method
Based on a patch by Christian Dywan (christian@imendio.com)
* doc/hildon-sections.txt:
* hildon/hildon-helper.c (+hildon_format_file_size_for_display):
* hildon/hildon-helper.h: New file size formatting method.
* debian/changelog:
* debian/control: Depend on osso-filemanager l10n package for
proper localization strings.
Claudio Saavedra [Tue, 12 May 2009 21:48:03 +0000 (00:48 +0300)]
Fix tests build during make distcheck
* tests/Makefile.am: Include top_srcdir to make possible to build
tests in a different builddir.
* tests/*.c: Include <hildon/hildon-*.h> to allow building tests
on a different builddir.
Claudio Saavedra [Tue, 12 May 2009 20:11:23 +0000 (23:11 +0300)]
Backfold debian/changelog
Claudio Saavedra [Tue, 12 May 2009 15:55:36 +0000 (18:55 +0300)]
2009-05-12 Claudio Saavedra <csaavedra@igalia.com>
* hildon/hildon-touch-selector.c (disconnect_model_handlers),
(hildon_touch_selector_remove): Disconnect model's signal handler
on column removal.
Fixes: NB#116289 (Hildon home crashes while adding task
shortcuts.)
Alberto Garcia [Mon, 11 May 2009 14:09:28 +0000 (16:09 +0200)]
Hide labels containing an empty string in HildonButton
* hildon/hildon-button.c
(hildon_button_set_title, hildon_button_set_value):
Hide labels containing an empty string.
Claudio Saavedra [Mon, 11 May 2009 10:22:48 +0000 (13:22 +0300)]
Post release version bump
* configure.ac: post release version bump
* debian/changelog: post release version bump
Claudio Saavedra [Mon, 11 May 2009 10:19:10 +0000 (13:19 +0300)]
Release 2.1.72
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Claudio Saavedra [Mon, 11 May 2009 07:52:18 +0000 (10:52 +0300)]
Fix trailing whitespaces.
Claudio Saavedra [Mon, 11 May 2009 07:48:24 +0000 (10:48 +0300)]
Fix ChangeLog entry
Alejandro Piñeiro [Fri, 8 May 2009 15:34:38 +0000 (17:34 +0200)]
Play the sound on hildon-note using "show" event and a idle
* hildon/hildon-note-private.h: Removed sound_signal_handler
* hildon/hildon-note.c
(on_show_cb): new callback on note "show" event, this simply adds
a idle, with the function sound_handling
(sound_handling): removed the sound_signal_handler management
(hildon_note_init): connect note "show" event to on_show_cb
(hildon_note_realize): remove the connection to "expose-event"
Fixes: NB#115242 (Sound is not played every time for the 'Switch off
device?' confirmation note
Alberto Garcia [Fri, 8 May 2009 15:16:58 +0000 (17:16 +0200)]
HildonNote: terminate the list of parameters in g_object_set() calls
* hildon/hildon-note.c
(hildon_note_new_information_with_icon_name)
(hildon_note_new_confirmation_with_icon_name):
Terminate the list of parameters in g_object_set() calls
Fixes: NB#115166 (Formatting memory card is not taking place)
Claudio Saavedra [Fri, 8 May 2009 13:31:57 +0000 (16:31 +0300)]
Set the "dialog-information" role for the sound being played.
* hildon/hildon-sound.c (hildon_play_system_sound): Set the
"dialog-information" role for the sound being played.
Alberto Garcia [Wed, 6 May 2009 16:52:22 +0000 (18:52 +0200)]
Don't make HildonAppMenu a modal window
* hildon/hildon-app-menu.c (hildon_app_menu_init):
Don't make the menu a modal window, it causes strange interactions
with the pointer grab and it's not really needed.
Fixes: NB#105529 (Empty App menu is launched in a scenario.)
Alejandro Piñeiro [Wed, 6 May 2009 16:20:11 +0000 (18:20 +0200)]
Fixed the hard-coded height in HildonPickerDialog
* hildon/hildon-touch-selector.[ch]
(hildon_touch_selector_optimal_size_request): function added to get a
optimal size request from the touch selector, when you want a dialog to
show as much of the selector
* hildon/hildon-picker-dialog.c:
Removed HILDON_TOUCH_SELECTOR_HEIGHT macro
(hildon_app_menu_class_init):
New "max-height-landscape" and "max-height-portrait" style properties
(hildon_picker_dialog_size_request): redefined GtkWidget::size_request
(hildon_picker_dialog_get_max_height): returns the maximum height using
the style properties defined and checking the current portrait/landscape
status
(_hildon_picker_dialog_set_selector): removed the set_size_request
Fixes: NB#109369 (Hard-coded height in HildonPickerDialog)
Claudio Saavedra [Wed, 6 May 2009 12:13:42 +0000 (15:13 +0300)]
Mention some replacements for deprecated widgets.
* hildon/hildon-bread-crumb-trail.c:
* hildon/hildon-bread-crumb.c:
* hildon/hildon-seekbar.c:
Add reference to replacements for these deprecated widgets.
Fixes: MB#4461 (Documentation: All deprecations should mention
replacements)
Alejandro Piñeiro [Wed, 6 May 2009 11:36:36 +0000 (13:36 +0200)]
Fix a include on the hildon-remote-texture-example
* examples/hildon-remote-texture-example.c
Change the include to the hildon-remote-texture in order to compile
properly the examples on the installed libhildon1-examples package
Claudio Saavedra [Tue, 5 May 2009 12:13:17 +0000 (15:13 +0300)]
Add three simple tests for HildonPickerButton
* tests/Makefile.am: Add check for HildonPickerButton.
* tests/check-hildon-picker-button.c (fx_setup), (fx_teardown),
(START_TEST), (create_hildon_picker_button_suite): Add three simple
checks for the HildonPickerButton.
* tests/check_test.c (configure_tests): Add the test suite.
* tests/test_suites.h: likewise.
Claudio Saavedra [Tue, 5 May 2009 11:35:46 +0000 (14:35 +0300)]
Emit HildonTouchSelector:changed when a selected row changes
* hildon/hildon-touch-selector.c
(+on_row_changed): Emit HildonTouchSelector:changed when the
contents of a selected row change.
(_create_new_column), (_hildon_touch_selector_set_model): connect
to GtkTreeModel:row-changed on a newly set model.
Fixes: NB#114253 (HildonPickerButton not refreshing its value)
Alberto Garcia [Tue, 5 May 2009 10:45:25 +0000 (12:45 +0200)]
Replace the progress bar in HildonBanner with a progress indicator
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)
Alberto Garcia [Mon, 4 May 2009 18:00:43 +0000 (20:00 +0200)]
Calculate max label size of HildonBanner using the actual screen width
* 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)
Alberto Garcia [Mon, 4 May 2009 14:15:22 +0000 (16:15 +0200)]
Minor style fixes
Alejandro G. Castro [Mon, 4 May 2009 11:24:06 +0000 (13:24 +0200)]
Fixed documentation
* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init): Fixed signals documentation
typo.
Claudio Saavedra [Mon, 4 May 2009 08:50:55 +0000 (11:50 +0300)]
Post release version bump
Claudio Saavedra [Mon, 4 May 2009 08:44:44 +0000 (11:44 +0300)]
Release 2.1.70
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Alberto Garcia [Fri, 1 May 2009 16:26:14 +0000 (18:26 +0200)]
Don't let buttons in HildonEditToolbar receive focus
* hildon/hildon-edit-toolbar.c
(hildon_edit_toolbar_init):
Don't let buttons in HildonEditToolbar receive focus.
Fixes: NB#111160 (!HildonEditToolbar buttons are focused after
typing on an HW arrows key)
Claudio Saavedra [Thu, 30 Apr 2009 14:42:10 +0000 (17:42 +0300)]
Build fix
* doc/Makefile.am: Fix build.
Claudio Saavedra [Thu, 30 Apr 2009 12:41:56 +0000 (15:41 +0300)]
Do no redefine content_files in doc/Makefile.am
* doc/Makefile.am: Do not redefine content_files.
Alberto Garcia [Thu, 30 Apr 2009 11:10:26 +0000 (13:10 +0200)]
Renamed src/ to hildon/
* 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.
Alberto Garcia [Thu, 30 Apr 2009 11:31:58 +0000 (13:31 +0200)]
Post release version bump
* configure.ac: post release version bump.
* debian/changelog: version bump.
Alejandro Piñeiro [Wed, 29 Apr 2009 17:19:57 +0000 (19:19 +0200)]
Add safety checks to hildon-sort-dialog.c
* src/hildon-sort-dialog.c
(hildon_sort_dialog_add_sort_key_with_sorting)
(sort_key_changed)
Add safety checks
Claudio Saavedra [Wed, 29 Apr 2009 16:07:29 +0000 (19:07 +0300)]
Move generated sources under src/ to CLEANFILES
* src/Makefile.am: Move generated sources to CLEANFILES, so that
make distcheck passes.
Claudio Saavedra [Wed, 29 Apr 2009 15:57:38 +0000 (18:57 +0300)]
Enable gtk-doc during distcheck
* Makefile.am: Enable gtk-doc during distcheck.
Claudio Saavedra [Wed, 29 Apr 2009 15:53:49 +0000 (18:53 +0300)]
Do not distribute the debian/ directory
* Makefile.am: Do not distribute the debian/ directory.
Claudio Saavedra [Wed, 29 Apr 2009 15:21:14 +0000 (18:21 +0300)]
Distribute properly extra SGML files in the documentation
* doc/Makefile.am: Add the extra SGML files to content_files,
so that they are distributed properly.
Claudio Saavedra [Wed, 29 Apr 2009 13:02:01 +0000 (16:02 +0300)]
Add missing files to the tests SOURCES
* tests/Makefile.am: Add missing test_suites.h and check_utils.h
to the SOURCES.
Claudio Saavedra [Wed, 29 Apr 2009 11:08:44 +0000 (14:08 +0300)]
Set "icon" property in hildon_note_new_information/note_with_icon_name
* src/hildon-note.c (hildon_note_new_confirmation_with_icon_name),
(hildon_note_new_information_with_icon_name): Set the "icon" property
to preserve soundness.
Claudio Saavedra [Wed, 29 Apr 2009 10:38:01 +0000 (13:38 +0300)]
Fail if HildonFontSelectionDialog:family is set to NULL
* src/hildon-font-selection-dialog.c
(hildon_font_selection_dialog_set_property): Fail when the "family"
property is set to NULL.
Claudio Saavedra [Tue, 28 Apr 2009 17:56:45 +0000 (20:56 +0300)]
Add safety checks to hildon_color_chooser_set_color()
* src/hildon-color-chooser.c (hildon_color_chooser_set_color): Add
safety checks.
Alejandro Piñeiro [Tue, 28 Apr 2009 17:42:11 +0000 (19:42 +0200)]
New API to change format policy on HildonTimeSelector
* src/hildon-time-selector.h:
Added HildonTimeSelectorFormatPolicy
* src/hildon-time-selector.c:
Added PROP_TIME_FORMAT_POLICY
(_check_ampm_format): renamed to check_automatic_ampm_format
(update_format_policy), (update_format_dependant_columns): new functions
(hildon_time_selector_class_init)
(hildon_time_selector_contructor)
(hildon_time_selector_init)
(hildon_time_selector_get_property)
(hildon_time_selector_set_property)
(hildon_time_selector_get_time)
(hildon_time_selector_set_time)
* src/hildon-touch-selector.h: new file
* src/hildon-touch-selector.c
(hildon_touch_selector_emit_changed)
(hildon_touch_selector_block_changed)
(hildon_touch_selector_unblock_changed)
Added functions to allow to block the emission of the "changed" signal
* src/hildon-picker-dialog.c
(hildon_picker_dialog_show): call the parent show before the custom code
* examples/hildon-time-button-example.c
Modified, so now you can configure the time format using the new property
Added a new property "time-format-policy" that allow to choose the time
format: AM/PM, 24H or AUTOMATIC. AUTOMATIC is the default one. In this
case it uses gconf in order to check if the time selector must use
AM/PM or 24H.
Fixes: NB#111606 (HildonTimeSelector should expose API to set/unset am/pm mode)
Alberto Garcia [Tue, 28 Apr 2009 14:29:04 +0000 (16:29 +0200)]
Label in HildonNote must be left aligned, not centered
* src/hildon-note.c (hildon_note_init):
Label in HildonNote must be left aligned, not centered. This
reverts the last commit in HildonNote.
Fixes: NB#112933 (text is not left aligned in confirmation dialog
is connectivity dialog)
Alberto Garcia [Mon, 27 Apr 2009 16:48:13 +0000 (18:48 +0200)]
Minor doc updates and style fixes
* src/hildon-gtk.c:
Minor style fixes
* doc/hildon-sections.txt:
Added hildon_gtk_window_set_do_not_disturb()
Alberto Garcia [Mon, 27 Apr 2009 10:36:20 +0000 (12:36 +0200)]
Center label of HildonNote
* src/hildon-note.c (hildon_note_init): Center label.
Fixes: NB#111962 (mail_in_ui_folder_move_target_error not aligned
properly)
Claudio Saavedra [Mon, 27 Apr 2009 08:42:45 +0000 (11:42 +0300)]
Release 2.1.68
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Claudio Saavedra [Fri, 24 Apr 2009 16:45:44 +0000 (19:45 +0300)]
Add portrait mode support to confirmation notes
* src/hildon-note-private.h: Add button-width to the private data.
* src/hildon-note.c (+resize_button),
(+hildon_note_orientation_update): methods to repack widgets on orientation
changes.
(screen_size_changed): Call above method for confirmation notes.
(hildon_note_realize): Always connect to the "screen-size" changed signal.
(hildon_note_rebuild): Store the original width request from buttons.
Fixes: NB#109635 (Confirmation notes do not support portrait)
Claudio Saavedra [Fri, 24 Apr 2009 16:13:02 +0000 (19:13 +0300)]
Only set double spacing in progress notes
* src/hildon-note.c (hildon_note_rebuild): Only set the double spacing
when it is a progress note.
Claudio Saavedra [Fri, 24 Apr 2009 16:02:32 +0000 (19:02 +0300)]
Use always a GtkVBox in HildonNote contents
* src/hildon-note.c (hildon_note_rebuild): Do not use a GtkHBox
in the note, since there are no horizontally arranged contents.
Claudio Saavedra [Fri, 24 Apr 2009 12:50:41 +0000 (15:50 +0300)]
Use a generic method to set window flags to avoid redundance
* src/hildon-gtk.c (+set_flag): new generic method to
set/delay a flag setting in a window.
(hildon_gtk_window_set_progress_indicator):
(hildon_gtk_window_set_do_not_disturb),
(hildon_gtk_window_set_portrait_flags): use set_flag() to
avoid code redundance.
Claudio Saavedra [Fri, 24 Apr 2009 11:51:34 +0000 (14:51 +0300)]
Allow setting window flags when the window is not realized
Based on a patch by Alberto Garcia (agarcia@igalia.com)
* src/hildon-gtk.c (set_clear_window_flag),
(do_set_progress_indicator), (do_set_do_not_disturb),
(do_set_portrait_flags),
(hildon_gtk_window_set_progress_indicator),
(hildon_gtk_window_set_do_not_disturb),
(hildon_gtk_window_set_portrait_flags):
Allow setting dnd-flag, progress indicator, and portrait flags
when the window is not realized.
Alejandro G. Castro [Fri, 24 Apr 2009 08:17:21 +0000 (10:17 +0200)]
Add the deprecated define to the size request policy
* src/hildon-pannable-area.c,
* src/hildon-pannable-area.h: Add the hildon deprecated define to
the size request policy function and defines.
Claudio Saavedra [Thu, 23 Apr 2009 15:00:31 +0000 (18:00 +0300)]
Add new method to set the portrait flags.
* doc/hildon-sections.txt: Add the new API.
* src/hildon-gtk.c (+hildon_gtk_window_set_portrait_flags): New
method to set the portrait flags.
* src/hildon-gtk.h: Add HildonPortraitFlags enum.
Fixes: NB#112328 (Adding helpers for setting portrait properties)
Claudio Saavedra [Thu, 23 Apr 2009 14:23:27 +0000 (17:23 +0300)]
Add an Atom parameter to set_clear_window_flags()
* src/hildon-gtk.c (set_clear_window_flag): Add an Atom parameter,
to allow using this method with other flags.
(hildon_gtk_window_set_progress_indicator): Update accordingly.
(hildon_gtk_window_set_do_not_disturb): Update accordingly.
Alberto Garcia [Wed, 22 Apr 2009 13:38:45 +0000 (15:38 +0200)]
Make text cell renderer in touch selector use the smallest width possible.
2009-04-22 Alberto Garcia <agarcia@igalia.com>
* src/hildon-touch-selector.c
(hildon_touch_selector_append_text_column):
Make the cell renderer have the smallest width possible.
Fixes: NB#108470 (Selected items in multiple selection are either
having a tick that is cut or not visible at all.)
Alberto Garcia [Wed, 22 Apr 2009 13:37:43 +0000 (15:37 +0200)]
Code cleanups in HildonTouchSelector
2009-04-22 Alberto Garcia <agarcia@igalia.com>
* src/hildon-touch-selector.c
(hildon_touch_selector_append_text_column):
Code cleanups
Claudio Saavedra [Wed, 22 Apr 2009 11:01:20 +0000 (14:01 +0300)]
Use g_strdup_printf() instead of a fixed size buffer.
* src/hildon-number-editor.c (hildon_number_editor_real_set_value):
Use g_strdup_printf() instead of a fixed size buffer.
Alberto Garcia [Tue, 21 Apr 2009 15:20:04 +0000 (17:20 +0200)]
Close banners when a HildonAppMenu is popped up.
2009-04-21 Alberto Garcia <agarcia@igalia.com>
* src/hildon-app-menu.c (hildon_app_menu_find_intruder):
Close banners when a HildonAppMenu is popped up.
Fixes: NB#111027 (Title menu closed immediately if activated when
"Invalid e-mail address" banner is shown)
Claudio Saavedra [Tue, 21 Apr 2009 11:12:28 +0000 (14:12 +0300)]
Release 2.1.66
Alberto Garcia [Mon, 20 Apr 2009 16:45:59 +0000 (18:45 +0200)]
Mark HildonBanner as supporting portrait mode.
2009-04-20 Alberto Garcia <agarcia@igalia.com>
* src/hildon-banner.c (hildon_banner_realize):
Mark HildonBanner as supporting portrait mode.
Use GDK to set window properties insetad of direct Xlib calls.
Fixes: NB#111830 (HildonBanner should be marked as supporting
portrait)
Alberto Garcia [Mon, 20 Apr 2009 15:14:44 +0000 (17:14 +0200)]
Hide action area in information notes.
2009-04-20 Alberto Garcia <agarcia@igalia.com>
* src/hildon-note.c (hildon_note_rebuild):
Hide action area in information notes. Prevents text from being
slightly aligned to the left.
Fixes: NB#111962 (mail_in_ui_folder_move_target_error not aligned
properly)
Alberto Garcia [Mon, 20 Apr 2009 13:57:02 +0000 (15:57 +0200)]
Use stylus-sized icons in animation banner.
2009-04-20 Alberto Garcia <agarcia@igalia.com>
Patch by Mox Soini (ext-mox.soini@nokia.com)
* src/hildon-banner.c (hildon_banner_create_animation):
Use stylus-sized icons in animation banner.
Fixes: NB#111206 (stylus sized icon for animation banner)
Alberto Garcia [Mon, 20 Apr 2009 10:40:52 +0000 (12:40 +0200)]
2009-04-20 Alberto Garcia <agarcia@igalia.com>
* src/hildon-gtk.h
* src/hildon-gtk.c
(+hildon_gtk_window_set_do_not_disturb):
New API to set the do-not-disturb flag.
Fixes: NB#110959 (Add API to set the do-not-disturb flag to a window)
Alberto Garcia [Mon, 20 Apr 2009 10:24:05 +0000 (12:24 +0200)]
2009-04-20 Alberto Garcia <agarcia@igalia.com>
* examples/hildon-progress-indicator-example.c: Fix example
* src/hildon-gtk.c (set_clear_window_flag)
(hildon_gtk_window_set_progress_indicator):
Create a generic function for setting flags to a window.
Use GDK instead of direct Xlib calls.
Alberto Garcia [Tue, 14 Apr 2009 13:21:14 +0000 (13:21 +0000)]
2009-04-14 Alberto Garcia <agarcia@igalia.com>
* src/hildon-button.c (hildon_button_set_arrangement):
Due to NB#88126, if one of the labels is too long it will be
painted outside the button. The 'value' label is more likely to be
the longest one, so we change its packing options in order to
truncate it if necessary. As a side effect, the 'title' label will
no longer be truncated.
Fixes: NB#110689 (HildonPickerButton doesn't ellipsize very long values)
Claudio Saavedra [Tue, 14 Apr 2009 10:07:57 +0000 (10:07 +0000)]
2009-04-14 Claudio Saavedra <csaavedra@igalia.com>
[Release 2.1.64]
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Alejandro G. Castro [Mon, 13 Apr 2009 07:58:24 +0000 (07:58 +0000)]
2009-04-13 Alejandro G. Castro <alex@igalia.com>
Deprecation of the hildon_pannable_area_set_size_request_policy
API, the only policy properly supported in gtk+ nowadays is the
minimum size.
* src/hildon-pannable-area.c,
(hildon_pannable_area_size_request): Added a workaround for the
size_request to avoid the problems of huge pixmaps in case someone
is still using the function.
* src/hildon-pannable-area.h: Deprecated the enum with the
policies.
Fixes: NB#110244 (Problems with the
hildon_pannable_area_set_size_request_policy API)
Alejandro G. Castro [Wed, 8 Apr 2009 08:47:55 +0000 (08:47 +0000)]
2009-04-08 Alejandro G. Castro <alex@igalia.com>
* src/hildon-pannable-area.c,
(hildon_pannable_area_init),
(hildon_pannable_area_size_request),
(hildon_pannable_area_style_set),
(hildon_pannable_draw_vscroll),
(hildon_pannable_draw_hscroll),
(hildon_pannable_area_check_scrollbars): Replaced area_width with
indicator_width to clarify the use of the attribute.
Claudio Saavedra [Wed, 8 Apr 2009 06:56:16 +0000 (06:56 +0000)]
2009-04-08 Claudio Saavedra <csaavedra@igalia.com>
[Release 2.1.62]
* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.
Claudio Saavedra [Wed, 8 Apr 2009 06:56:14 +0000 (06:56 +0000)]
Fix ChangeLog entry.
Alejandro Piñeiro [Tue, 7 Apr 2009 18:54:53 +0000 (18:54 +0000)]
2009-04-07 Alejandro Pinheiro <apinheiro@igalia.com>
* src/hildon-picker-dialog.c
* src/hildon-touch-selector.c
Reverting the change that tried to avoid the hardcoded height on
the picker dialog, as causes problems on the hildon-touch-selector
initial-hint
Fixes NB#110029 (selectors not scrolling to selected value)
Alberto Garcia [Tue, 7 Apr 2009 17:10:18 +0000 (17:10 +0000)]
2009-04-07 Alberto Garcia <agarcia@igalia.com>
* src/hildon-touch-selector.c: Fix typos
Claudio Saavedra [Tue, 7 Apr 2009 13:10:01 +0000 (13:10 +0000)]
2009-04-07 Claudio Saavedra <csaavedra@igalia.com>
* src/hildon-color-chooser.c (hildon_color_chooser_pointer_motion):
Use the event coordinates instead of gdk_window_get_pointer(). Also,
request more motions after using it. This fixes x and y variables being
potentially uninitialized.
Claudio Saavedra [Tue, 7 Apr 2009 13:09:57 +0000 (13:09 +0000)]
2009-04-07 Claudio Saavedra <csaavedra@igalia.com>
* src/hildon-calendar.c (hildon_calendar_expose),
(hildon_calendar_paint_main), (hildon_calendar_enter_notify):
Remove unused variables.