hildon
12 years agoMake sure that all timeouts in HildonBanner are removed master
Alberto Garcia [Thu, 1 Oct 2009 12:11:25 +0000 (14:11 +0200)]
Make sure that all timeouts in HildonBanner are removed

* 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)

12 years agoDon't hide and show HildonBanner when the screen size changes
Alberto Garcia [Wed, 30 Sep 2009 12:21:23 +0000 (14:21 +0200)]
Don't hide and show HildonBanner when the screen size changes

* 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)

12 years agoUnset the scroll_to attribute to stop the panning timeout properly.
Alejandro G. Castro [Tue, 22 Sep 2009 17:49:52 +0000 (19:49 +0200)]
Unset the scroll_to attribute to stop the panning timeout properly.

* hildon/hildon-pannable-area.c,
(hildon_pannable_axis_scroll),
(hildon_pannable_area_scroll): Unset the scroll_to in some
situations, it was causing the timeout did not stop in some cases.

Fixes: NB#140186 (HildonPannableArea goes into an infinite loop)

12 years agoHildonAnimationActor: make the "show" parameter a gboolean
David King [Tue, 22 Sep 2009 17:06:51 +0000 (19:06 +0200)]
HildonAnimationActor: make the "show" parameter a gboolean

* hildon/hildon-animation-actor-private.h
(HildonAnimationActorPrivate)
* hildon/hildon-animation-actor.c (hildon_animation_actor_show)
(hildon_animation_actor_hide)
* hildon/hildon-animation-actor.h
(hildon_animation_actor_set_show_full)
(hildon_animation_actor_set_show): Change "show" parameter type from
gint to gboolean.

Fixes: MB#4696 (hildon_animation_actor_set_show() gint argument should
be a gboolean)

12 years agoRemove bogus entry from ChangeLog
Claudio Saavedra [Fri, 18 Sep 2009 12:43:29 +0000 (15:43 +0300)]
Remove bogus entry from ChangeLog

We really need to get rid of this file

12 years agoDo not return gboolean in GtkButton:clicked signal handlers
Claudio Saavedra [Fri, 18 Sep 2009 12:27:26 +0000 (15:27 +0300)]
Do not return gboolean in GtkButton:clicked signal handlers

* examples/hildon-banner-example.c:
(on_information_clicked), (on_animation_clicked),
(on_progress_clicked): GtkButton:clicked handlers do not return
gboolean. Fix this.

12 years agoUse the Xlib API to take window screenshots
Alberto Garcia [Tue, 15 Sep 2009 18:12:29 +0000 (20:12 +0200)]
Use the Xlib API to take window screenshots

* hildon/hildon-gtk.c (hildon_gtk_window_take_screenshot):
Use the Xlib API to take window screenshots, since the GDK API
doesn't allow us to set the event mask.

Fixes: NB#138857 (hildon_gtk_window_take_screenshot doesn't take a
screenshot)

12 years agoRelease 2.2.0 RC 6 2.2.0-rc6
Claudio Saavedra [Mon, 14 Sep 2009 09:59:25 +0000 (12:59 +0300)]
Release 2.2.0 RC 6

12 years agoProperly free a GList and avoid potential memory corruption
Claudio Saavedra [Mon, 14 Sep 2009 09:57:04 +0000 (12:57 +0300)]
Properly free a GList and avoid potential memory corruption

12 years agoFix debian/changelog 2.2.0-rc5
Claudio Saavedra [Fri, 11 Sep 2009 17:30:54 +0000 (20:30 +0300)]
Fix debian/changelog

12 years agoRelease 2.2.0 RC 5
Claudio Saavedra [Fri, 11 Sep 2009 17:26:45 +0000 (20:26 +0300)]
Release 2.2.0 RC 5

12 years agoDo not set any flag for empty legacy menus
Claudio Saavedra [Fri, 11 Sep 2009 15:18:12 +0000 (18:18 +0300)]
Do not set any flag for empty legacy menus

* hildon/hildon-program.c: (hildon_program_set_common_menu):
* hildon/hildon-window.c: (hildon_window_update_menu_flag):
This will probably not work fine with empty legacy menus added to
programs or windows and populated later, but so it's life.

12 years agoUpdate the application menu flag for application-wise windows
Claudio Saavedra [Thu, 10 Sep 2009 17:24:52 +0000 (20:24 +0300)]
Update the application menu flag for application-wise windows

* hildon/hildon-program.c: (+hildon_program_on_common_app_menu_changed),
(hildon_program_set_common_app_menu): Also take into account the visibility
of its items.

12 years agoEmit HildonAppMenu::changed when menu items change visibility
Claudio Saavedra [Thu, 10 Sep 2009 17:07:58 +0000 (20:07 +0300)]
Emit HildonAppMenu::changed when menu items change visibility

* hildon/hildon-app-menu.c: (item_visibility_changed),
(filter_visibility_changed): Also emit ::changed on
visibility of items changed.

12 years agoDo not set the menu flag in a window when a menu is empty
Claudio Saavedra [Fri, 11 Sep 2009 17:17:09 +0000 (20:17 +0300)]
Do not set the menu flag in a window when a menu is empty

* hildon/hildon-window.c: (hildon_window_update_menu_flag),
(on_menu_changed), (on_menu_changedhildon_window_set_main_menu),
(on_menu_changed), (hildon_window_set_main_menu): Update on menu
changes by using the HildonAppMenu::changed signal.

12 years agoAdd HildonAppMenu::changed signal
Claudio Saavedra [Thu, 10 Sep 2009 15:45:10 +0000 (18:45 +0300)]
Add HildonAppMenu::changed signal

* hildon/hildon-app-menu.c: (hildon_app_menu_insert),
(hildon_app_menu_add_filter), (hildon_app_menu_class_init):
Emit a new HildonAppMenu:changed signal when there are changes in
the menu children.

12 years agoAdd hildon_app_menu_has_visible_children() private method
Claudio Saavedra [Thu, 10 Sep 2009 09:48:37 +0000 (12:48 +0300)]
Add hildon_app_menu_has_visible_children() private method

* hildon/hildon-app-menu-private.h: Add below private method.
* hildon/hildon-app-menu.c: (hildon_app_menu_has_visible_children):
New method to check the visibility of a HildonAppMenu children.

12 years agoSet the window menu flag for application-common menus
Claudio Saavedra [Wed, 9 Sep 2009 08:22:53 +0000 (11:22 +0300)]
Set the window menu flag for application-common menus

* hildon/hildon-program.c:
(+hildon_program_window_set_common_menu_flag): Set or remove the
menu flag from a window only this doesn't have its own menu.
(+hildon_program_set_common_menu_flag): adjust menu flag for
all windows in the program.
(hildon_program_add_window),
(hildon_program_remove_window): add/remove the menu flag when
a window is added to the program.

Fixes: NB#137814 (Indicator for view menu in app title area)

12 years agoSet a special window property for windows with menus
Claudio Saavedra [Tue, 8 Sep 2009 15:42:30 +0000 (18:42 +0300)]
Set a special window property for windows with menus

* hildon/hildon-window-private.h: Add private
hildon_window_set_menu_flag()
* hildon/hildon-window.c: (+do_set_has_menu),
(+hildon_window_set_menu_flag): set
"_HILDON_WM_WINDOW_MENU_INDICATOR" to 1 in the window
or remove the property.
(hildon_window_set_main_menu),
(hildon_window_set_app_menu): call above methods to set or remove
the property when a menu is added or removed from the window.

Partially fixes: NB#137814 (Indicator for view menu in app title area)

12 years agoRename and move the methods to set flags to hildon-private.h
Claudio Saavedra [Tue, 8 Sep 2009 15:19:12 +0000 (18:19 +0300)]
Rename and move the methods to set flags to hildon-private.h

* hildon/hildon-gtk.c: (do_set_progress_indicator),
(do_set_do_not_disturb), (do_set_portrait_flags): call
the new private method hildon_gtk_window_set_clear_window_flag()
(hildon_gtk_window_set_progress_indicator),
(hildon_gtk_window_set_do_not_disturb),
(hildon_gtk_window_take_screenshot): hildon_gtk_window_set_flag()
* hildon/hildon-private.c: (+hildon_gtk_window_set_clear_window_flag),
(+hildon_gtk_window_set_flag): Move from hildon-gtk.c and rename
properly.
* hildon/hildon-private.h: Add the two new private methds.

12 years agoAdded a new system to calculate acceleration in fast-panning
Alejandro G. Castro [Fri, 11 Sep 2009 10:54:52 +0000 (12:54 +0200)]
Added a new system to calculate acceleration in fast-panning

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_init),
(hildon_pannable_area_size_allocate),
(hildon_pannable_area_button_release_cb): More tuning of the
speed, adding a way to calculate the acceleration and fast-panning
based on the child size.

12 years agoHildonTouchSelector documentation updates
Alberto Garcia [Thu, 10 Sep 2009 13:51:39 +0000 (15:51 +0200)]
HildonTouchSelector documentation updates

* hildon/hildon-touch-selector.c
(hildon_touch_selector_class_init):
Documentation updates

Fixes: MB#5103

12 years agoHildonTouchSelector documentation updates
Alberto Garcia [Thu, 10 Sep 2009 13:11:09 +0000 (15:11 +0200)]
HildonTouchSelector documentation updates

* hildon/hildon-touch-selector.c:
Documentation updates

Fixes: MB#5104 (HildonTouchSelector docs should say no
HildonPannableArea is necessary)

12 years agoRelease 2.2.0 RC4 2.2.0-rc4
Claudio Saavedra [Tue, 8 Sep 2009 09:40:15 +0000 (12:40 +0300)]
Release 2.2.0 RC4

12 years agoFixed problem with the timeout deceleration in pannable.
Alejandro G. Castro [Tue, 8 Sep 2009 08:03:03 +0000 (10:03 +0200)]
Fixed problem with the timeout deceleration in pannable.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_timeout): Fixed problem with the timeout
function, we need to move before decelerating the first time or we
are loosing the first jump.

Fixes: NB#137604 (Pannable scroll_to does not move correctly)

12 years agoRelease 2.2.0 RC3 2.2.0-rc3
Claudio Saavedra [Mon, 7 Sep 2009 13:17:21 +0000 (16:17 +0300)]
Release 2.2.0 RC3

12 years agoIncreased pannable area max speed.
Alejandro G. Castro [Mon, 7 Sep 2009 12:22:57 +0000 (14:22 +0200)]
Increased pannable area max speed.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init): Increased max speed.

12 years agoRelease 2.2.0 RC2 2.2.0-rc2
Claudio Saavedra [Mon, 7 Sep 2009 09:45:07 +0000 (12:45 +0300)]
Release 2.2.0 RC2

12 years agoMore tuning for the pannable large lists kinetics.
Alejandro G. Castro [Mon, 7 Sep 2009 09:32:47 +0000 (11:32 +0200)]
More tuning for the pannable large lists kinetics.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init),
(hildon_pannable_area_button_release_cb): More tuning for the
large lists.

12 years agoReduced the fade delay of the pannable widget.
Alejandro G. Castro [Mon, 7 Sep 2009 09:26:05 +0000 (11:26 +0200)]
Reduced the fade delay of the pannable widget.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init):
Change the default value of the scrollbar_fade_delay.

Fixes: NB#127018 (Panning indicator fades out too slowly)

12 years agoRelease 2.2.0 RC1 2.2.0-rc1
Claudio Saavedra [Fri, 4 Sep 2009 15:18:35 +0000 (18:18 +0300)]
Release 2.2.0 RC1

12 years agoTuned pannable, added a new acceleration gesture
Alejandro G. Castro [Fri, 4 Sep 2009 14:02:59 +0000 (16:02 +0200)]
Tuned pannable, added a new acceleration gesture

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_init),
(hildon_pannable_area_button_press_cb),
(hildon_pannable_area_button_release_cb): Added a new acceleration
system to help traversing big lists, tuned the stop threshold.

Fixes: NB#132584 (Pannable kinetics in large lists needs tuning)

12 years agoDocument and deprecate HILDON_WINDOW_LONG_PRESS_TIME
Alberto Garcia [Fri, 4 Sep 2009 12:45:35 +0000 (14:45 +0200)]
Document and deprecate HILDON_WINDOW_LONG_PRESS_TIME

* hildon/hildon-window.h:
Document and deprecate HILDON_WINDOW_LONG_PRESS_TIME

Fixes: MB#4580 (HILDON_WINDOW_LONG_PRESS_TIME is undocumented)

12 years agoRelease 2.1.97-1 2.1.97-1
Claudio Saavedra [Fri, 4 Sep 2009 12:36:52 +0000 (15:36 +0300)]
Release 2.1.97-1

* configure.ac: bump version
* NEWS: updates
* debian/changelog: updates

12 years agoDocumentation updates
Alberto Garcia [Fri, 4 Sep 2009 11:46:33 +0000 (13:46 +0200)]
Documentation updates

* hildon/hildon-entry.c
* hildon/hildon-text-view.c:
Documentation updates

12 years agoRedraw HildonAppMenu when the number of items change
Alberto Garcia [Fri, 4 Sep 2009 11:07:30 +0000 (13:07 +0200)]
Redraw HildonAppMenu when the number of items change

* hildon/hildon-app-menu.c (hildon_app_menu_repack_items):
Redraw menu when the number of items change.

Fixes: NB#131911 (Appmenu does not resize properly, when number of
menu items change)

12 years agoUse G_PRIORITY_IDLE_HIGH + 20 for all the pannable area timeouts
Claudio Saavedra [Thu, 3 Sep 2009 20:08:20 +0000 (23:08 +0300)]
Use G_PRIORITY_IDLE_HIGH + 20 for all the pannable area timeouts

* hildon/hildon-pannable-area.c:
(hildon_pannable_area_launch_fade_timeout),
(hildon_pannable_area_motion_event_scroll),
(hildon_pannable_area_check_move),
(hildon_pannable_area_button_release_cb),
(hildon_pannable_area_scroll_to):

Use a priority of G_PRIORITY_IDLE_HIGH + 20 for all the pannable
area drawing operations, since this is the recommended for drawing
operations.

Fixes: NB#110894 (In event view containing very large description
field, application menu is displayed blank while panning)
Fixes: NB#131942 (HildonPickerDialog is seen empty when popping up
for the first time)

12 years agoDocumentation updates
Alberto Garcia [Thu, 3 Sep 2009 17:53:35 +0000 (19:53 +0200)]
Documentation updates

* doc/hildon-sections.txt
* hildon/hildon-button.c
* hildon/hildon-edit-toolbar.c
* hildon/hildon-gtk.[ch]
* hildon/hildon-main.c
* hildon/hildon-program.c
* hildon/hildon-stackable-window.c:
Documentation updates

12 years agoRelease 2.1.96-6 2.1.96-6
Claudio Saavedra [Fri, 28 Aug 2009 16:41:55 +0000 (18:41 +0200)]
Release 2.1.96-6

12 years agoClose HildonAppMenu if it receives a grab-notify signal
Alberto Garcia [Fri, 28 Aug 2009 10:43:03 +0000 (12:43 +0200)]
Close HildonAppMenu if it receives a grab-notify signal

* hildon/hildon-app-menu.c
(+hildon_app_menu_grab_notify, hildon_app_menu_class_init):
Close the menu if it receives a grab-notify signal.

Fixes: NB#134533 (UI freezes if we show a dialog with
gtk_dialog_run() while a menu is opened)

12 years agoMinor debian/changelog fix 2.1.96-5
Claudio Saavedra [Thu, 27 Aug 2009 09:06:55 +0000 (11:06 +0200)]
Minor debian/changelog fix

12 years agoRevert panning tunning.
Claudio Saavedra [Thu, 27 Aug 2009 08:50:05 +0000 (10:50 +0200)]
Revert panning tunning.

12 years agoReverted tuning modifications
Alejandro G. Castro [Thu, 27 Aug 2009 08:22:41 +0000 (10:22 +0200)]
Reverted tuning modifications

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init): Reverted tuning modifications:
"Pannign needs to be faster" and "Pannable kinetics in large lists
needs tuning".

12 years agoRelease 2.1.96-4 2.1.96-4
Claudio Saavedra [Wed, 26 Aug 2009 16:20:03 +0000 (18:20 +0200)]
Release 2.1.96-4

12 years agoPlay sounds with "module-stream-restore.id" set to "x-maemo-system-sound"
Alberto Garcia [Mon, 24 Aug 2009 14:12:36 +0000 (16:12 +0200)]
Play sounds with "module-stream-restore.id" set to "x-maemo-system-sound"

* hildon/hildon-sound.c (hildon_play_system_sound):
Set "module-stream-restore.id" to "x-maemo-system-sound" when
playing system sounds

Fixes: NB#133767 (Information and confirmation note sound should
follow system profile setting)

12 years agoRelease 2.1.96-3 2.1.96-3
Claudio Saavedra [Wed, 26 Aug 2009 13:17:04 +0000 (15:17 +0200)]
Release 2.1.96-3

12 years agoSome pannable area tuning
Alejandro G. Castro [Wed, 26 Aug 2009 12:55:21 +0000 (14:55 +0200)]
Some pannable area tuning

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init): Added more force and increased
the max speed threshold.

Fixes: NB#135344 (Pannign needs to be faster)

12 years agoRelease 2.1.96, this time for real 2.1.96-2
Claudio Saavedra [Wed, 26 Aug 2009 08:08:42 +0000 (10:08 +0200)]
Release 2.1.96, this time for real

12 years agoFixed error in one of the branches of the topmost algorithm.
Alejandro Pinheiro [Wed, 26 Aug 2009 07:37:43 +0000 (09:37 +0200)]
Fixed error in one of the branches of the topmost algorithm.

* hildon/hildon-pannable-area.c
(hildon_pannable_area_get_topmost): change the computation of the
co-ordinates transformed when no one of the children is a topmost

Fixes: NB#133252 (Opening any feed item from RSS always opens the
first feed item in browser)

Signed-off-by: Alejandro G. Castro <alex@igalia.com>

12 years agoAdded more protection to the pannable area timeouts
Alejandro G. Castro [Wed, 26 Aug 2009 06:47:24 +0000 (08:47 +0200)]
Added more protection to the pannable area timeouts

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_remove_timeouts): Adding this new function
with code that removes the timeouts of the widget.
(hildon_pannable_area_dispose),
(hildon_pannable_area_unrealize): Use the new remove function to
stop timeouts when unrealizing and disposing.
(hildon_pannable_area_scroll_to): Added a CLAMP to the position
calculation to avoid negative values in some cases.

Fixes: NB#135179 (Remove pannable timeouts in unrealize function)

12 years agoRevert "Make HildonCheckButton derive from GtkToggleButton"
Claudio Saavedra [Mon, 24 Aug 2009 09:36:16 +0000 (11:36 +0200)]
Revert "Make HildonCheckButton derive from GtkToggleButton"

This change reverts 2911cf0dc0242c87a95d2577d54c898ce060873f

12 years agoRelease 2.1.96 2.1.96-1
Alberto Garcia [Fri, 21 Aug 2009 09:57:40 +0000 (11:57 +0200)]
Release 2.1.96

* configure.ac: bump version
* NEWS: updates
* debian/changelog: updates

12 years agoMake HildonCheckButton derive from GtkToggleButton
Alberto Garcia [Fri, 21 Aug 2009 08:40:52 +0000 (10:40 +0200)]
Make HildonCheckButton derive from GtkToggleButton

* hildon/hildon-check-button.h
* hildon/hildon-check-button.c
(hildon_check_button_clicked, hildon_check_button_class_init):
Make HildonCheckButton derive from GtkToggleButton
(hildon_check_button_toggled, hildon_check_button_set_active)
(hildon_check_button_get_active):
Deprecate unnecessary HildonCheckButton API and use the
one from GtkToggleButton instead.

* hildon/hildon-set-password-dialog.c (create_contents)
(hildon_set_password_response_change, hildon_checkbox_toggled)
* examples/hildon-check-button-example.c (button_toggled_cb):
Update to use the GtkToggleButton API

Fixes: MB#4739 (HildonCheckButton should inherit from
GtkToggleButton)

Fixes: NB#132661 (HildonCheckButton should inherit from
GtkToggleButton)

12 years agoRelease 2.1.95-2 2.1.95-2
Alberto Garcia [Thu, 20 Aug 2009 13:33:25 +0000 (15:33 +0200)]
Release 2.1.95-2

12 years agoIncrease default value of HildonPannableArea:velocity_max to 2000
Alberto Garcia [Thu, 20 Aug 2009 11:10:05 +0000 (13:10 +0200)]
Increase default value of HildonPannableArea:velocity_max to 2000

* hildon/hildon-pannable-area.c
(hildon_pannable_area_class_init):
Increase default value of HildonPannableArea:velocity_max to 2000

Fixes: NB#132584 (Pannable kinetics in large lists needs tuning)

12 years agoRelease 2.1.95 2.1.95-1
Alberto Garcia [Tue, 18 Aug 2009 14:24:45 +0000 (16:24 +0200)]
Release 2.1.95

* configure.ac: bump version
* NEWS: updates
* debian/changelog: updates

12 years agoAdded a new check of scrollbars layout in the allocation
Alejandro G. Castro [Tue, 11 Aug 2009 12:53:40 +0000 (14:53 +0200)]
Added a new check of scrollbars layout in the allocation

* hildon/hildon-pannable-area.c
(hildon_pannable_area_size_allocate): Checked the scrollbars
before the first try when defining the layout, avoids two
allocations in some situations.

Fixes: NB#131794 (pannable area produces unnecessary allocations
causing performance problems)

12 years agoFixed memory leak of the event window of the pannable.
Alejandro G. Castro [Tue, 11 Aug 2009 08:41:21 +0000 (10:41 +0200)]
Fixed memory leak of the event window of the pannable.

* hildon/hildon-pannable-area.c
(hildon_pannable_area_button_press_cb),
(hildon_pannable_area_motion_notify_cb),
(hildon_pannable_area_button_release_cb): Added unrefs to reduce
the spurious ref added in the copy, fixes leak of window.

Fixes: NB#130900 (HildonPannableArea will leak it's event_window
if it's realized without showing and then deleted)

12 years agoRelease 2.1.94 2.1.94-1
Alberto Garcia [Mon, 10 Aug 2009 15:25:00 +0000 (17:25 +0200)]
Release 2.1.94

* configure.ac: bump version
* NEWS: updates
* debian/changelog: updates

12 years agoReplace g_idle_add/g_timeout_add with their gdk_threads counterparts
Alberto Garcia [Thu, 6 Aug 2009 18:26:41 +0000 (20:26 +0200)]
Replace g_idle_add/g_timeout_add with their gdk_threads counterparts

* 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)

12 years agoModified the overshooting effect to make it faster
Alejandro G. Castro [Thu, 6 Aug 2009 10:19:33 +0000 (12:19 +0200)]
Modified the overshooting effect to make it faster

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init): Increased the overshooting max
speed to get a faster effect.
(hildon_pannable_axis_scroll): Increased minimum speed and reduce
deceleration of the overshooting
(hildon_pannable_area_button_release_cb): Calculate initial
overshooting speed when finger on the screen using the distance to
launch the effect faster.

Fixes: NB#126115 (Pannable list overshooting is unusably slow for
lists with slow row renderers)

12 years agoAdd new functions to hildon-sections.txt
Alberto Garcia [Wed, 5 Aug 2009 15:15:33 +0000 (17:15 +0200)]
Add new functions to hildon-sections.txt

* doc/hildon-sections.txt: Add new functions

12 years agoHildonEntry/HildonTextView: add deprecation guards where needed
Alberto Garcia [Wed, 5 Aug 2009 15:13:44 +0000 (17:13 +0200)]
HildonEntry/HildonTextView: add deprecation guards where needed

* hildon/hildon-text-view.[ch]
* hildon/hildon-entry.[ch]:
Add deprecation guards around deprecated functions.

12 years agoRemove leftover function declaration
Claudio Saavedra [Wed, 5 Aug 2009 15:09:53 +0000 (17:09 +0200)]
Remove leftover function declaration

12 years agoAdd missing ChangeLog entry
Claudio Saavedra [Wed, 5 Aug 2009 15:09:09 +0000 (17:09 +0200)]
Add missing ChangeLog entry

12 years agoRemove the grab from HildonAppMenu.
Claudio Saavedra [Wed, 5 Aug 2009 14:34:58 +0000 (16:34 +0200)]
Remove the grab from HildonAppMenu.

Now hildon-desktop places a blocker window behind the menu to handle
its closing, so the grab is no longer needed. This simplifies its
implementation and allows the system blanking to succeed.

Fixes: NB#130910 (Screen gets unlocked when menu is open)

12 years agoRelease 2.1.93 2.1.93-1
Claudio Saavedra [Tue, 4 Aug 2009 18:12:13 +0000 (20:12 +0200)]
Release 2.1.93

* configure.ac: bump version
* NEWS: updates
* debian/changelog: updates
* debian/control: raise debian dependency on GTK+

12 years agoRemove all placeholder code in HildonEntry/TextView now that it's in GTK
Alberto Garcia [Tue, 4 Aug 2009 16:25:55 +0000 (18:25 +0200)]
Remove all placeholder code in HildonEntry/TextView now that it's in GTK

* hildon/hildon-text-view.c
* hildon/hildon-entry.c:
Remove all placeholder code from HildonEntry and HildonTextView
and use the API in GtkEntry and GtkTextView instead.

* examples/hildon-entry-example.c
* examples/hildon-text-view-example.c
* examples/hildon-wizard-dialog-example.c
* hildon/hildon-get-password-dialog.c
* hildon/hildon-login-dialog.c
* hildon/hildon-picker-dialog.c
* hildon/hildon-set-password-dialog.c
* hildon/hildon-touch-selector-entry.c:
Replace all deprecated calls to HildonEntry and HildonTextView
with their Gtk counterparts.

Fixes: NB#122395 (hildon_entry_set_placeholder() should be in
GtkEntry)

12 years agoRelease 2.1.92-2 2.1.92-2
Claudio Saavedra [Mon, 3 Aug 2009 10:36:48 +0000 (12:36 +0200)]
Release 2.1.92-2

12 years agoAdded the Fixes comment to the last commit Changelog entry.
Alejandro G. Castro [Mon, 3 Aug 2009 10:29:03 +0000 (12:29 +0200)]
Added the Fixes comment to the last commit Changelog entry.

Fixes NB#131013 (unable to stop panning file manager by tapping on
it)

12 years agoReverted change of the timeout priority of the pannable area
Alejandro G. Castro [Mon, 3 Aug 2009 10:20:46 +0000 (12:20 +0200)]
Reverted change of the timeout priority of the pannable area

2009-08-03  Alejandro G. Castro  <alex@igalia.com>

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_check_move),
(hildon_pannable_area_button_release_cb),
(hildon_pannable_area_scroll_to): Reverted the priority change of
the timeout, in some situations, slow renderers, the click do not
make it to the mainloop on time.

12 years agoRelease 2.1.92-1 2.1.92-1
Claudio Saavedra [Thu, 30 Jul 2009 14:32:41 +0000 (16:32 +0200)]
Release 2.1.92-1

12 years agoFix ChangeLog typo
Claudio Saavedra [Thu, 30 Jul 2009 11:35:57 +0000 (13:35 +0200)]
Fix ChangeLog typo

12 years agoAdded new method hildon_touch_selector_center_on_index
Alejandro Piñeiro [Thu, 30 Jul 2009 14:16:09 +0000 (16:16 +0200)]
Added new method hildon_touch_selector_center_on_index

* hildon/hildon-touch-selector.[ch]
(hildon_touch_selector_center_on_index): New method that allows to center
on a item not selected

Fixes NB#130291 (New HildonTouchSelector API is required to center on
any column item)

12 years agoRemove all calls to hildon_helper_set_logical_* from within Hildon
Alberto Garcia [Mon, 27 Jul 2009 11:06:11 +0000 (13:06 +0200)]
Remove all calls to hildon_helper_set_logical_* from within Hildon

* hildon/hildon-text-view.c
(+set_logical_color, +hildon_text_view_style_set)
(hildon_text_view_refresh_contents, hildon_text_view_class_init)
(hildon_text_view_init)
* hildon/hildon-entry.c
(+set_logical_color, +hildon_entry_style_set)
(hildon_entry_show_placeholder, hildon_entry_hide_placeholder)
(hildon_entry_class_init, hildon_entry_init)
* hildon/hildon-button.c
(+set_logical_font, +set_logical_color)
(hildon_button_style_set, hildon_button_init)
(hildon_button_set_arrangement, hildon_button_set_style):
Remove all calls to hildon_helper_set_logical_font() and
hildon_helper_set_logical_color(), which are recursive, from
within Hildon.

Fixes: NB#123409 (Showing dialog consumes significant amount of
time)

12 years agoProcess the scrollbar window in the timeout
Alejandro G. Castro [Wed, 29 Jul 2009 16:48:05 +0000 (18:48 +0200)]
Process the scrollbar window in the timeout

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_timeout): Added the process updates of the
scrollbars window in the pannable.

Fixes: NB#130043 (scrollindicator not smooth while paning)

12 years agoModified the priority of the pannning timeout
Alejandro G. Castro [Thu, 23 Jul 2009 09:04:55 +0000 (11:04 +0200)]
Modified the priority of the pannning timeout

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_check_move),
(hildon_pannable_area_button_release_cb),
(hildon_pannable_area_scroll_to): Increased the priority of the
timeout this way it is going to be handled before the events.

12 years agoRelease 2.1.91 2.1.91-1
Claudio Saavedra [Wed, 22 Jul 2009 10:45:28 +0000 (12:45 +0200)]
Release 2.1.91

* configure.ac: bump version
* debian/changelog: updates

12 years agoEnsure a minimum height for HildonEntry
Claudio Saavedra [Tue, 21 Jul 2009 16:58:45 +0000 (18:58 +0200)]
Ensure a minimum height for HildonEntry

* hildon/hildon-entry.c: (set_property): Do not allow to set
automatic height and use finger height instead, to prevent an to
have a smaller size than than its theme pixbuf.

Fixes: NB#118398 (HildonEntry - unnecessary rescaling of images)

12 years agoPost release version bump
Claudio Saavedra [Tue, 21 Jul 2009 10:20:03 +0000 (12:20 +0200)]
Post release version bump

12 years agoRelease 2.1.90 2.1.90-1
Claudio Saavedra [Tue, 21 Jul 2009 10:17:30 +0000 (12:17 +0200)]
Release 2.1.90

* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.

12 years agoFix information notes size request
Claudio Saavedra [Mon, 20 Jul 2009 15:25:24 +0000 (17:25 +0200)]
Fix information notes size request

* hildon/hildon-note.c: (label_size_request): Take the note
padding into account when setting the size request.

Fixes: NB#127896 (Information notes text truncated)

12 years agoPost release version bump
Claudio Saavedra [Thu, 16 Jul 2009 10:26:47 +0000 (12:26 +0200)]
Post release version bump

12 years agoRelease 2.1.88
Claudio Saavedra [Thu, 16 Jul 2009 10:22:30 +0000 (12:22 +0200)]
Release 2.1.88

* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.

12 years agoBackfold debian/changelog
Claudio Saavedra [Wed, 1 Jul 2009 09:22:32 +0000 (11:22 +0200)]
Backfold debian/changelog

12 years agoGrabbed the focus in the HildonTextView button press callback
Alejandro G. Castro [Thu, 16 Jul 2009 09:14:02 +0000 (11:14 +0200)]
Grabbed the focus in the HildonTextView button press callback

* hildon/hildon-text-view.c,
(hildon_text_view_button_press_event): Grabbed the focus in button
press, this way we are sure the widget has the focus in the
release event, required for HIM.

Fixes: NB#121445 (Virtual keyboard opening is not working in same
way for each text entry field)

12 years agoAdded a new feature to the HildonPannableArea allowing center on the child
Alejandro Pinheiro [Wed, 15 Jul 2009 16:37:07 +0000 (18:37 +0200)]
Added a new feature to the HildonPannableArea allowing center on the child
widget receiving the focus.

* hildon/hildon-pannable-area.[ch](hildon_pannable_area_set_focus_child)
(hildon_pannable_area_center_on_child_focus ,hildon_pannable_area_class_init)
(hildon_pannable_area_get_property, hildon_pannable_area_set_property)
(hildon_pannable_area_button_press_cb, hildon_pannable_area_button_release_cb)
(hildon_pannable_area_[gs]et_center_on_child_focus)
Redefined GtkContainer set-focus-child signal, in order to center
properly on a child when it receives the focus. Defined a new property
"center-on-child-focus" in order to activate this feature (deactivated
by default). Public get/set methods defined to manage the property.

Fixes: NB#108487 (Phone settings dialog should scroll to focused field)

Signed-off-by: Alejandro G. Castro <alex@igalia.com>

12 years agoEnsure HildonAppMenu size is correct after rotation
László Pere [Wed, 15 Jul 2009 10:33:39 +0000 (12:33 +0200)]
Ensure HildonAppMenu size is correct after rotation

* hildon/hildon-app-menu.c: (hildon_app_menu_apply_style): Ensure that
the new size is applied.

Fixes: NB#124510 (The Application Menu is distorted when switched
between portrait and landscape mode)
Fixes: NB#115388 (Power key menu does not resize itself)

Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>

12 years agoSet position of HildonBanner after mapping
Alberto Garcia [Wed, 1 Jul 2009 09:19:46 +0000 (11:19 +0200)]
Set position of HildonBanner after mapping

* hildon/hildon-banner.c (hildon_banner_map):
Set banner position after mapping.

12 years agoPost release version bump
Claudio Saavedra [Mon, 29 Jun 2009 11:16:40 +0000 (13:16 +0200)]
Post release version bump

12 years agoRelease 2.1.86 2.1.86-1
Claudio Saavedra [Mon, 29 Jun 2009 11:09:15 +0000 (13:09 +0200)]
Release 2.1.86

* NEWS: Updates.
* configure.ac: Bump version.
* debian/changelog: Updates.

12 years agoIgnore BadWindow on update topmost
Adam Endrodi [Mon, 29 Jun 2009 10:45:08 +0000 (12:45 +0200)]
Ignore BadWindow on update topmost

* hildon/hildon-program.c (hildon_program_update_top_most): Ignore
BadWindow error.

Signed-off-by: Claudio Saavedra <csaavedra@igalia.com>

12 years agoMissed commit in order to fix compilation using '--enable-fatal' and '--disable-depre...
Alejandro Piñeiro [Fri, 26 Jun 2009 11:50:28 +0000 (13:50 +0200)]
Missed commit in order to fix compilation using '--enable-fatal' and '--disable-deprecated' (see previous commit)

* tests/check-hildon-banner.c
* tests/check_text.c
* tests/test_suites.h
Protect hildon-banner tests with #ifndef HILDON_DISABLE_DEPRECATED, as
were testing deprecated functions.
* examples/hildon-banner-example.c: typo on button3 type, that causes
a fail compiling with --with-examples but without --disable-deprecated

Missed commit in order to fix compilation using '--enable-fatal' and
'--disable-deprecated' (see previous commit)

12 years agoFixed the compilation using '--enable-fatal' and '--disable-deprecated' options
Alejandro Piñeiro [Thu, 25 Jun 2009 17:32:17 +0000 (19:32 +0200)]
Fixed the compilation using '--enable-fatal' and '--disable-deprecated' options

* examples/hildon-banner-example.c: Protect deprecated hildon-banner
functions with #ifndef HILDON_DISABLE_DEPRECATED
* examples/hildon-find-toolbar.c: Protect deprecated
HILDON_ICON_SIZE_TOOLBAR with #ifndef HILDON_DISABLE_DEPRECATED
* hildon/hildon-find-toolbar.c: Change deprecated HILDON_ICON_SIZE_TOOLBAR
in favor of HILDON_ICON_PIXEL_SIZE_FINGER
* hildon/hildon-private.h: Unmark hildon_privfate_create_animation() as
deprecated.
* hildon/hildon-stackable-window.c: Added #undef HILDON_DISABLE_DEPRECATED
to allow proper compilation of deprecated functions defined on the header

12 years agoCache the HildonPannableArea panning indicator color
Claudio Saavedra [Thu, 25 Jun 2009 14:49:43 +0000 (17:49 +0300)]
Cache the HildonPannableArea panning indicator color

* hildon/hildon-pannable-area.c: (hildon_pannable_area_init):
Cache the panning indicator color.,
(hildon_pannable_area_style_set): Query the color on style changes.
(hildon_pannable_draw_vscroll),
(hildon_pannable_draw_hscroll),
(hildon_pannable_area_expose_event): Use the cached panning indicator
color instead of looking it up on every expose and more.

12 years agoCorrect the HildonPannableArea indicator color
Claudio Saavedra [Thu, 25 Jun 2009 14:12:24 +0000 (17:12 +0300)]
Correct the HildonPannableArea indicator color

* hildon/hildon-pannable-area.c: (hildon_pannable_draw_vscroll),
(hildon_pannable_draw_hscroll),
(hildon_pannable_area_expose_event): Fix the panning indicator color,
so that it's "SecondaryTextColor", as desired.

12 years agoAllow to use HILDON_UI_MODE_NORMAL on the HildonTouchSelector
Alejandro Piñeiro [Wed, 3 Jun 2009 19:15:51 +0000 (21:15 +0200)]
Allow to use HILDON_UI_MODE_NORMAL on the HildonTouchSelector

* hildon/hildon-picker-dialog.c:
(selection_completed): take into account HILDON_UI_MODE_NORMAL
* hildon/hildon-touch-selector.c
(hildon_touch_selector_init): Initialize hildon-ui-mode
(hildon_touch_selector_row_activated): new callback for the
"row-activated" signal, in order to save the last activated
(hildon_touch_selector_check_ui_mode_coherence): new method that checks
if the current hildon-ui-mode is coherent with the touch selector
(hildon_touch_selector_class_init)
(hildon_touch_selector_get_property)
(hildon_touch_selector_set_property)
Added "hildon-ui-mode" property
(disconnect_model_handlers): renamed to clean_column
(hildon_touch_selector_remove): use clean_column function
(_create_new_column): use the hildon-ui-mode to create the treeview, and
only select the first element on HILDON_UI_MODE_EDIT
(hildon_touch_selector_column_init): Initialize last_activate
(hildon_touch_selector_append_column): check that the touch selector
is coherent with the current hildon-ui-mode
(hildon_touch_selector_get_hildon_ui_mode)
(hildon_touch_selector_set_hildon_ui_mode)
Added a getter/setter for the hildon-ui-mode property
(hildon_touch_selector_get_last_activated_row): Added this method in
order to get the last activated row
* examples/hildon-touch-selector-normal-mode-example.c
New example, that shows how to use the HildonTouchSelector in
HILDON_UI_MODE_NORMAL

Fixes: NB#95685 (Add field dialog should use HILDON_UI_MODE_NORMAL), using
Kristian Rietveld <kris@lanedo.com> advices

12 years agoRemove unnecessary function call redundant checks in HildonTimeSelector
Claudio Saavedra [Thu, 25 Jun 2009 07:47:59 +0000 (10:47 +0300)]
Remove unnecessary function call redundant checks in HildonTimeSelector

* hildon/hildon-time-selector.c: (update_format_policy): Do
not call update_format_dependant_columns() if not necessary.
(update_format_dependant_columns): Remove unnecessary check for
the number of columns.

12 years agoUse gtk_dialog_set_padding() to set HildonNote margins
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)

12 years agoSet HildonNote margins during construction
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.