hildon
15 years ago* src/hildon-pannable-area.c, (hildon_pannable_area_get_topmost): replaced gdk_window...
Alejandro G. Castro [Fri, 4 Jul 2008 10:36:47 +0000 (10:36 +0000)]
* src/hildon-pannable-area.c, (hildon_pannable_area_get_topmost): replaced gdk_window_get_children with gdk_window_peek_children, this way we do not have to free the list because it is not a copy.

(hildon_pannable_axis_scroll),
(hildon_pannable_area_scroll),
(hildon_pannable_area_timeout),
(hildon_pannable_area_motion_notify_cb): Code refactoring, removed
two parameters that were only used inside the
hildon_pannable_area_scroll function.

* examples/hildon-pannable-area-example.c,
(get_sawtooth_label): Fixed small memory leak.

15 years agoMore checks for the case where the overshoot is bigger than the size of the widget.
Alejandro G. Castro [Thu, 3 Jul 2008 12:06:42 +0000 (12:06 +0000)]
More checks for the case where the overshoot is bigger than the size of the widget.

* src/hildon-pannable-area.c:
(hildon_pannable_draw_vscroll),
(hildon_pannable_draw_hscroll): with this new calculation we avoid
to draw the slider of the scrollbar under the other scrollbar.
(hildon_pannable_area_expose_event): added new checks to control
the drawing of the overshooting area rectangle, in case it is too
big for the area of the widget.
(hildon_pannable_area_size_allocate): add more checks to avoid
setting a position to the child widget outside the area.

15 years ago* src/hildon-pannable-area.c (hildon_pannable_area_size_allocate): Added conditions...
Alejandro G. Castro [Thu, 3 Jul 2008 09:36:27 +0000 (09:36 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_area_size_allocate): Added conditions to control when overshooting is bigger than the allocated space for the children, this avoids negative allocations.

15 years ago* doc/hildon-docs.sgml * doc/hildon.types * examples/Makefile.am * examples/hildon...
Alberto Garcia [Wed, 2 Jul 2008 18:06:06 +0000 (18:06 +0000)]
* doc/hildon-docs.sgml * doc/hildon.types * examples/Makefile.am * examples/hildon-button-example.c * src/Makefile.am * src/hildon-button.c * src/hildon-button.h * src/hildon.h: Initial version of the new HildonButton widget, with examples.

15 years ago* src/hildon-pannable-area.c: (hildon_pannable_area_button_press_cb), (hildon_pannabl...
Claudio Saavedra [Wed, 2 Jul 2008 14:56:03 +0000 (14:56 +0000)]
* src/hildon-pannable-area.c: (hildon_pannable_area_button_press_cb), (hildon_pannable_area_refresh), (hildon_pannable_area_scroll), (hildon_pannable_area_motion_notify_cb), (hildon_pannable_area_button_release_cb), (hildon_pannable_area_expose_event), (hildon_pannable_area_remove), (hildon_pannable_area_jump_to_child):

Use gtk_bin_get_child() instead of accessing GtkBin.child directly.

15 years ago* examples/Makefile.am * examples/hildon-pannable-area-touch-grid-example.c * example...
Alberto Garcia [Tue, 1 Jul 2008 14:54:43 +0000 (14:54 +0000)]
* examples/Makefile.am * examples/hildon-pannable-area-touch-grid-example.c * examples/hildon-pannable-area-touch-list-example.c: Examples of the Hildon Touch List and Hildon Touch Grid using the HildonPannableArea widget.

15 years agolibhildon (2.1.2-1) gutsy; urgency=low
Karl Lattimer [Mon, 30 Jun 2008 10:59:54 +0000 (10:59 +0000)]
libhildon (2.1.2-1) gutsy; urgency=low

* Update version number to 2.1.2-1
  * configure.ac 2.1.2
  * Too many individual changes for them to all be relevant here, many widgets
    added, many widgets have been changed. A full list of additional/changed  widgets
    can be found in the Hildon 2.2 widget UI spec.

 -- Karl Lattimer <karl.lattimer@nokia.com>  Mon, 30 Jun 2008 13:55:29 +0300

15 years agoescaped the forbidden words
Karl Lattimer [Mon, 30 Jun 2008 10:52:22 +0000 (10:52 +0000)]
escaped the forbidden words

15 years ago* src/hildon-pannable-area.c, (hildon_pannable_area_button_press_cb), (hildon_pannabl...
Alejandro G. Castro [Fri, 27 Jun 2008 17:59:00 +0000 (17:59 +0000)]
* src/hildon-pannable-area.c, (hildon_pannable_area_button_press_cb), (hildon_pannable_area_refresh), (hildon_pannable_area_scroll), (hildon_pannable_area_motion_notify_cb), (hildon_pannable_area_button_release_cb), (hildon_pannable_area_expose_event), (hildon_pannable_area_add), (hildon_pannable_area_remove), (hildon_pannable_area_realize), (hildon_pannable_area_size_allocate), (hildon_pannable_area_class_init), (hildon_pannable_area_init), (hildon_pannable_area_scroll_to_child), (hildon_pannable_area_jump_to_child): Fixed the problem of removing the child from the GtkBin, we have rearranged the widget hierarchy, now there is no GtkAlignment which was not doing anything interesting but breaking some of the assumptions of GtkContainer. Now developers if they want to add a GtkAlignment they could, but it is not inside the area.

We had to review the whole allocation/expose process, now it is
improved and we save at least three signals which would be saving
some time when rendering the widget. The allocation of the
scrollbars is now made in the allocate method as usual.

We have also added some conditions in order to control when there
is no child of the pannable area. Maybe we will need more work
here.

15 years ago* src/hildon-pannable-area.c, (hildon_pannable_area_dispose): Released the fade-out...
Alejandro G. Castro [Fri, 27 Jun 2008 10:31:16 +0000 (10:31 +0000)]
* src/hildon-pannable-area.c, (hildon_pannable_area_dispose): Released the fade-out timeout when disposing the widget.

15 years ago* src/hildon-pannable-area.c: Fixed problem when overshoot_max is zero, we are going...
Alejandro G. Castro [Fri, 27 Jun 2008 08:52:32 +0000 (08:52 +0000)]
* src/hildon-pannable-area.c: Fixed problem when overshoot_max is zero, we are going to use that property in order to deactivate the overshooting (hildon_pannable_axis_scroll), (hildon_pannable_area_size_allocate): Added conditions to control when overshoot_max is zero. Moved the gtk_adjustment_set_value call, now it is called in all situations and we can remove calls in the allocate method. (hildon_pannable_area_map): Control the situation when overshoot_max is zero, we do not need the timeout. (hildon_pannable_area_class_init): Added documentation in order to point out that setting zero to overshoot_max means deactivate overshooting.

NOTE: removed trailing whitespaces from my previous comments of
the Changelog.

15 years ago* src/hildon-pannable-area.c (hildon_pannable_area_get_property), (hildon_pannable_ar...
Alejandro G. Castro [Fri, 27 Jun 2008 07:53:32 +0000 (07:53 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_area_get_property), (hildon_pannable_area_set_property), (hildon_pannable_area_map), (hildon_pannable_area_class_init), (hildon_pannable_area_init): Add a boolean "initial-hint" property to cause the widget give a hint about its panning abilities upon realization.

15 years ago* src/hildon-pannable-area.c: Several documentation improvements.
Alejandro G. Castro [Fri, 27 Jun 2008 07:29:17 +0000 (07:29 +0000)]
* src/hildon-pannable-area.c: Several documentation improvements.

15 years ago* src/hildon-program.c * src/hildon-stackable-window.c: Update documentation.
Alberto Garcia [Thu, 26 Jun 2008 14:56:11 +0000 (14:56 +0000)]
* src/hildon-program.c * src/hildon-stackable-window.c: Update documentation.

15 years ago* src/hildon-stackable-window.c (hildon_stackable_window_map, hildon_stackable_window...
Alberto Garcia [Thu, 26 Jun 2008 13:45:35 +0000 (13:45 +0000)]
* src/hildon-stackable-window.c (hildon_stackable_window_map, hildon_stackable_window_unmap) (hildon_stackable_window_unset_program): Simplified code.

15 years ago* src/hildon-stackable-window.c (hildon_stackable_window_unset_program): Simplified...
Alberto Garcia [Thu, 26 Jun 2008 13:36:42 +0000 (13:36 +0000)]
* src/hildon-stackable-window.c (hildon_stackable_window_unset_program): Simplified code. (get_previous_window_if_last): Detect if the window hasn't been added to a HildonProgram.

15 years ago* src/hildon-stackable-window.c (get_previous_window_if_last): Rename variables
Alberto Garcia [Thu, 26 Jun 2008 13:03:20 +0000 (13:03 +0000)]
* src/hildon-stackable-window.c (get_previous_window_if_last): Rename variables

15 years ago* src/hildon-stackable-window.c (get_previous_window_if_last): Renamed get_last_window()
Alberto Garcia [Thu, 26 Jun 2008 12:58:41 +0000 (12:58 +0000)]
* src/hildon-stackable-window.c (get_previous_window_if_last): Renamed get_last_window()

15 years agocontributed and reviewed by: Claudio Saavedra <csaavedra@igalia.com>
Alejandro G. Castro [Thu, 26 Jun 2008 10:00:29 +0000 (10:00 +0000)]
contributed and reviewed by: Claudio Saavedra <csaavedra@igalia.com>

* src/hildon-pannable-area.c
(hildon_pannable_area_button_press_cb),
(hildon_pannable_axis_scroll),
(hildon_pannable_area_scroll),
(hildon_pannable_area_timeout),
(hildon_pannable_calculate_vel_factor),
(hildon_pannable_area_get_property),
(hildon_pannable_area_set_property),
(hildon_pannable_area_class_init),
(hildon_pannable_area_init),
(hildon_pannable_area_scroll_to),
(hildon_pannable_area_jump_to),
(hildon_pannable_area_scroll_to_child),
(hildon_pannable_area_jump_to_child):
* src/hildon-pannable-area.h: Added the new API functions:
hildon_pannable_area_scroll_to, hildon_pannable_area_jump_to,
hildon_pannable_area_scroll_to_child,
hildon_pannable_area_jump_to_child

* examples/Makefile.am
* examples/hildon-pannable-area-example-2.c
* examples/hildon-pannable-area-example-3.c: Added these two new
examples in order to test and show how the new APIs work.

15 years ago* examples/hildon-stackable-window-example.c (new_window): * src/Makefile.am (noinst_...
Alberto Garcia [Wed, 25 Jun 2008 17:02:19 +0000 (17:02 +0000)]
* examples/hildon-stackable-window-example.c (new_window): * src/Makefile.am (noinst_HEADERS): * src/hildon-program.c (hildon_program_go_to_root_window): * src/hildon-program.h: * src/hildon-stackable-window-private.h: * src/hildon-stackable-window.c: * src/hildon-stackable-window.h: Create hildon-stackable-window-private.h Move hildon_stackable_window_go_to_root_window() to HildonProgram

15 years ago* examples/hildon-app-menu-example.c (create_menu): * examples/hildon-hvolumebar...
Alberto Garcia [Wed, 25 Jun 2008 16:52:37 +0000 (16:52 +0000)]
* examples/hildon-app-menu-example.c (create_menu): * examples/hildon-hvolumebar-insensitive-example.c (main): * examples/hildon-hvolumebar-timer-example.c (on_idle): * examples/hildon-toolbar-seekbar-example.c (main): * src/hildon-app-menu.c (hildon_app_menu_add_filter): * src/hildon-banner.c (hildon_banner_set_property): * src/hildon-dialog.c (hildon_dialog_new_with_buttons): Fix compilation warnings

15 years ago* src/hildon-window.c: Fix typo in doc
Alberto Garcia [Wed, 25 Jun 2008 14:29:51 +0000 (14:29 +0000)]
* src/hildon-window.c: Fix typo in doc

15 years ago* src/hildon-stackable-window.c (hildon_stackable_window_delete_event) (hildon_stacka...
Alberto Garcia [Tue, 24 Jun 2008 18:30:33 +0000 (18:30 +0000)]
* src/hildon-stackable-window.c (hildon_stackable_window_delete_event) (hildon_stackable_window_class_init): Ignore the delete event if the window is not the topmost one.

15 years ago* src/hildon-stackable-window.c (hildon_stackable_window_go_to_root_window): Update...
Alberto Garcia [Tue, 24 Jun 2008 18:23:59 +0000 (18:23 +0000)]
* src/hildon-stackable-window.c (hildon_stackable_window_go_to_root_window): Update doc.

15 years ago* src/hildon-stackable-window.c (hildon_stackable_window_unset_program): Calculate...
Alberto Garcia [Tue, 24 Jun 2008 17:00:36 +0000 (17:00 +0000)]
* src/hildon-stackable-window.c (hildon_stackable_window_unset_program): Calculate correctly whether to show the previous window if the last one is removed from the stack. (hildon_stackable_window_go_to_root_window): Send delete events starting from the topmost window. Stop if one of the windows is not destroyed.

15 years ago* src/hildon-pannable-area.c (hildon_pannable_area_expose_event): Fixed a problem...
Alejandro G. Castro [Tue, 24 Jun 2008 16:38:58 +0000 (16:38 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_area_expose_event): Fixed a problem when selecting the background color of the scrollbars.

15 years ago* src/hildon-stackable-window.c Send delete events to windows rather than closing...
Alberto Garcia [Mon, 23 Jun 2008 14:33:18 +0000 (14:33 +0000)]
* src/hildon-stackable-window.c Send delete events to windows rather than closing them with gtk_widget_destroy()

15 years ago* examples/hildon-stackable-window-example.c * src/hildon-stackable-window.c * src...
Alberto Garcia [Mon, 23 Jun 2008 10:37:26 +0000 (10:37 +0000)]
* examples/hildon-stackable-window-example.c * src/hildon-stackable-window.c * src/hildon-stackable-window.h hildon_stackable_window_go_home() renamed to hildon_stackable_window_go_to_root_window()

15 years ago* src/hildon-pannable-area.c (hildon_pannable_area_button_release_cb): Fix overshooti...
Alberto Garcia [Thu, 19 Jun 2008 17:41:22 +0000 (17:41 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_area_button_release_cb): Fix overshooting in accel mode.

15 years ago* src/hildon-pannable-area.c (hildon_pannable_area_init): Initially show the scroll...
Alberto Garcia [Thu, 19 Jun 2008 17:16:37 +0000 (17:16 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_area_init): Initially show the scroll indicators. (hildon_pannable_area_map): Fade the scroll indicators out upon mapping. Add initial effect showing the widget is pannable.

15 years ago* src/hildon-pannable-area.c (hildon_pannable_area_class_init) (hildon_pannable_area_...
Alberto Garcia [Thu, 19 Jun 2008 16:29:24 +0000 (16:29 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_area_class_init) (hildon_pannable_area_set_property) (hildon_pannable_area_get_property) (hildon_pannable_area_button_press_cb): New 'velocity_fast_factor' property to decide which velocity is considered fast.

15 years ago* src/hildon-pannable-area.c (hildon_pannable_draw_hscroll) (hildon_pannable_draw_vsc...
Alberto Garcia [Thu, 19 Jun 2008 15:35:48 +0000 (15:35 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_draw_hscroll) (hildon_pannable_draw_vscroll): Use float variables to calculate the size of the scrollbars to avoid error propagation and resizing during scrolling.

15 years ago* src/hildon-pannable-area.c (hildon_pannable_draw_vscroll) (hildon_pannable_draw_hsc...
Alberto Garcia [Thu, 19 Jun 2008 14:58:22 +0000 (14:58 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_draw_vscroll) (hildon_pannable_draw_hscroll): Define a minimum size for the scroll bars

15 years ago* src/hildon-stackable-window.c (hildon_stackable_window_class_init): Fix initializat...
Alberto Garcia [Thu, 19 Jun 2008 13:32:03 +0000 (13:32 +0000)]
* src/hildon-stackable-window.c (hildon_stackable_window_class_init): Fix initialization of private structure.

15 years ago* src/hildon-stackable-window.c (hildon_stackable_window_go_home): Fix compilation...
Alberto Garcia [Thu, 19 Jun 2008 09:37:36 +0000 (09:37 +0000)]
* src/hildon-stackable-window.c (hildon_stackable_window_go_home): Fix compilation warning (get_last_window): Minor optimizations

15 years ago* src/hildon-stackable-window.c: Fixed typos in doc
Alberto Garcia [Wed, 18 Jun 2008 15:03:02 +0000 (15:03 +0000)]
* src/hildon-stackable-window.c: Fixed typos in doc

15 years ago* src/hildon-pannable-area.c (hildon_pannable_area_scroll): Calculate here whether...
Alberto Garcia [Wed, 18 Jun 2008 11:55:03 +0000 (11:55 +0000)]
* src/hildon-pannable-area.c (hildon_pannable_area_scroll): Calculate here whether we need to scroll instead of using the booleans that tell us whether to /draw/ the scrolling bars.

15 years agoTODO 16, WTF MODE ENGAGED\!
Karl Lattimer [Wed, 18 Jun 2008 07:41:34 +0000 (07:41 +0000)]
TODO 16, WTF MODE ENGAGED\!

15 years ago* src/hildon-app-menu.h Update API. * src/hildon-app-menu.c (hildon_app_menu_init...
Alberto Garcia [Tue, 17 Jun 2008 16:04:00 +0000 (16:04 +0000)]
* src/hildon-app-menu.h Update API. * src/hildon-app-menu.c (hildon_app_menu_init, hildon_app_menu_class_init): Remove multiple filter groups related code and API. Now we support only one filter group. * examples/hildon-app-menu-example.c: (create_menu): Update to reflect API changes.

15 years agolibhildon (2.1.1-1) gutsy; urgency=low
Karl Lattimer [Mon, 16 Jun 2008 13:07:26 +0000 (13:07 +0000)]
libhildon (2.1.1-1) gutsy; urgency=low

* Update version number to 2.1.1-1
  * configure.ac 2.1.1
  * Too many individual changes for them to all be relevant here, many widgets
    added, many widgets have been changed. A full list of additional/changed  widgets
    can be found in the Hildon 2.2 widget UI spec.

 -- Karl Lattimer <karl.lattimer@nokia.com>  Mon, 16 Jun 2008 16:00:00 +0200

15 years ago* src/hildon-stackable-window.c (hildon_stackable_window_class_init): Add hildon_stac...
Alberto Garcia [Mon, 16 Jun 2008 08:56:50 +0000 (08:56 +0000)]
* src/hildon-stackable-window.c (hildon_stackable_window_class_init): Add hildon_stackable_window_realize. (hildon_stackable_window_realize): Append the window type _HILDON_WM_WINDOW_TYPE_STACKABLE to the _NET_WM_WINDOW_TYPE hint. Window managers should use this type to apply theming and behavior specific to HildonStackableWindow windows.

15 years ago* src/hildon-note.c (hildon_note_button_release): Close information notes also when...
Alberto Garcia [Thu, 12 Jun 2008 17:00:35 +0000 (17:00 +0000)]
* src/hildon-note.c (hildon_note_button_release): Close information notes also when tapping on them

15 years agoAdded BOUNCE_STEPS define to control the overshoot effect. Removed ELASTICITY, refact...
Alejandro G. Castro [Thu, 12 Jun 2008 16:51:58 +0000 (16:51 +0000)]
Added BOUNCE_STEPS define to control the overshoot effect. Removed ELASTICITY, refactor and review, fix some issues with drawing scrollbars.

* src/hildon-pannable-area.c:
(hildon_pannable_area_button_press_cb): removed the conditions to
avoid clicks when overshooting. It is not required

(hildon_pannable_axis_scroll): Added BOUNCE_STEPS
define. Refatored and reviewed the code, now we do not need to
manage velocity in motion_notify.

(hildon_pannable_area_motion_notify_cb): We have moved the code
that controls the area_scroll to the axis_scroll function and get
rid of duplicated code.

(hildon_pannable_area_scroll): Remove the ELASTICITY define.

(hildon_pannable_area_button_release_cb): Added BOUNCE_STEPS.

(hildon_pannable_draw_vscroll),
(hildon_pannable_draw_hscroll): Fixed the problems with the
scrollbar drawing, now we do not use two surfaces, it is easier
and saves resources.

(hildon_pannable_area_get_property): Style modification.

(hildon_pannable_area_class_init): Changed some default values.

15 years ago* src/hildon-stackable-window.c: Fix some typos in the documentation.
Alberto Garcia [Thu, 12 Jun 2008 16:05:28 +0000 (16:05 +0000)]
* src/hildon-stackable-window.c: Fix some typos in the documentation.

15 years ago* src/hildon-dialog.c: Change indentation style
Alberto Garcia [Thu, 12 Jun 2008 15:11:48 +0000 (15:11 +0000)]
* src/hildon-dialog.c: Change indentation style

15 years ago* src/hildon-note.c (hildon_note_button_release): Use root coordinates to check if...
Alberto Garcia [Thu, 12 Jun 2008 10:19:50 +0000 (10:19 +0000)]
* src/hildon-note.c (hildon_note_button_release): Use root coordinates to check if the release event happened outside the widget.

* src/hildon-app-menu.c
(hildon_app_menu_button_release):
Remove unnecessary check

* examples/hildon-app-menu-example.c
(button_clicked):
Add cast to fix warning

15 years ago* src/hildon-app-menu.c (hildon_app_menu_class_init): New inner-border style property...
Alberto Garcia [Thu, 12 Jun 2008 10:05:54 +0000 (10:05 +0000)]
* src/hildon-app-menu.c (hildon_app_menu_class_init): New inner-border style property. Set all default spacings to 16 (hildon_app_menu_init): Use vertical-spacing to set the space between filter buttons and regular menu buttons. Set the default container border using the inner-border value.

* examples/hildon-app-menu-example.c
(create_menu):
Don't set the menu border explicitly, now we have the inner-border
style property for that.

15 years ago* src/hildon-app-menu.c (hildon_app_menu_init): Make the window modal
Alberto Garcia [Wed, 11 Jun 2008 18:20:06 +0000 (18:20 +0000)]
* src/hildon-app-menu.c (hildon_app_menu_init): Make the window modal

* src/hildon-note.c (hildon_note_map)
* src/hildon-app-menu.c (hildon_app_menu_map):
Destroy the grab window if we're unable to grab the pointer

15 years ago* src/hildon-app-menu-private.h * src/hildon-app-menu.c (hildon_app_menu_init, hildon...
Alberto Garcia [Wed, 11 Jun 2008 17:49:15 +0000 (17:49 +0000)]
* src/hildon-app-menu-private.h * src/hildon-app-menu.c (hildon_app_menu_init, hildon_app_menu_finalize) (hildon_app_menu_map, hildon_app_menu_unmap) (hildon_app_menu_button_release) (grab_transfer_window_get): Bring back the grab window (hildon_app_menu_realize): Decorate the window, set WM hint for Matchbox

15 years ago* src/hildon-note.c (hildon_note_realize): * src/hildon-banner.c (hildon_banner_reali...
Alberto Garcia [Wed, 11 Jun 2008 14:57:48 +0000 (14:57 +0000)]
* src/hildon-note.c (hildon_note_realize): * src/hildon-banner.c (hildon_banner_realize): Add WM hints for Matchbox

15 years ago* src/hildon-app-menu-private.h * src/hildon-app-menu.c (hildon_app_menu_init, hildon...
Alberto Garcia [Tue, 10 Jun 2008 19:24:12 +0000 (19:24 +0000)]
* src/hildon-app-menu-private.h * src/hildon-app-menu.c (hildon_app_menu_init, hildon_app_menu_finalize) (hildon_app_menu_map, hildon_app_menu_unmap) (hildon_app_menu_button_release): Remove the grab window, it's not needed anymore

15 years ago* src/hildon-program.c Fixed typo in documentation
Alberto Garcia [Tue, 10 Jun 2008 16:33:06 +0000 (16:33 +0000)]
* src/hildon-program.c Fixed typo in documentation

15 years ago* src/hildon-app-menu.h * src/hildon-app-menu.c * examples/hildon-app-menu-example...
Alberto Garcia [Tue, 10 Jun 2008 11:24:32 +0000 (11:24 +0000)]
* src/hildon-app-menu.h * src/hildon-app-menu.c * examples/hildon-app-menu-example.c Remove hildon_app_menu_popup(), use gtk_widget_show() instead

15 years ago* src/hildon-note.c Remove the comment about the OK button in the documentation
Alberto Garcia [Mon, 9 Jun 2008 17:11:25 +0000 (17:11 +0000)]
* src/hildon-note.c Remove the comment about the OK button in the documentation

15 years ago* src/hildon-note.c Added new transfer_window and close_if_pressed_outside private...
Alberto Garcia [Mon, 9 Jun 2008 17:06:29 +0000 (17:06 +0000)]
* src/hildon-note.c Added new transfer_window and close_if_pressed_outside private attributes. (hildon_note_rebuild): Don't add a cancel button to the information note. It will be closed when tapping outside (hildon_note_realize): Set the notification type hint (hildon_note_map, hildon_note_unmap, grab_transfer_window_get): Grab/ungrab pointer and keyboard if the note has to be closed when tapping outside (hildon_note_button_release): Close the note when tapping outside (if applicable)

* src/hildon-app-menu.c
(hildon_app_menu_button_release, hildon_app_menu_class_init):
Close the menu on button release, not button press

15 years ago* src/hildon-app-menu.c Grab/ungrab pointer and keyboard on map/unmap
Alberto Garcia [Mon, 9 Jun 2008 14:36:03 +0000 (14:36 +0000)]
* src/hildon-app-menu.c Grab/ungrab pointer and keyboard on map/unmap

15 years ago* src/hildon-banner.c (hildon_banner_set_property) (hildon_banner_check_position...
Alberto Garcia [Mon, 9 Jun 2008 13:46:59 +0000 (13:46 +0000)]
* src/hildon-banner.c (hildon_banner_set_property) (hildon_banner_check_position): Make the banner use the full width of the screen (hildon_banner_show_information) (hildon_banner_show_information_with_markup): Don't display an icon by default

15 years agoAdded fading scrollbars and adapted all the overshooting code to horizontal scrolling...
Alejandro G. Castro [Mon, 9 Jun 2008 12:40:56 +0000 (12:40 +0000)]
Added fading scrollbars and adapted all the overshooting code to horizontal scrolling. We have also fixed bugs with overshooting and current fading implementation.

* src/hildon-pannable-area.c
(hildon_pannable_area_scroll_indicator_fade): Time out function
used to change the transparency of the scrollbars.

(hildon_pannable_area_button_press_cb): Added horizontal overshot
control and fixed a problem with fading, we now remove the fade
timeout before adding a new one.

(hildon_pannable_axis_scroll):
(hildon_pannable_area_scroll):
(hildon_pannable_area_timeout): Added this functions so we can use
the scroll code both for vertical and horizontal.

(hildon_pannable_area_motion_notify_cb):
(hildon_pannable_area_button_release_cb): Added the horizontal
scrolling control, fixed a problem with the overshooting timeout.

(rgb_from_gdkcolor): Added this function, it is used in the cairo
painting of the scrolls.

(hildon_pannable_draw_vscroll):
(hildon_pannable_draw_hscroll):
(hildon_pannable_area_expose_event):
Draw both scrollbars and rectangles in the overshooting area.

(hildon_pannable_area_get_property):
(hildon_pannable_area_set_property):
Modified the overshoot property to overshoot_max

(hildon_pannable_area_map):
Replaced the comments symbols.

(hildon_pannable_area_size_allocate):
(hildon_pannable_area_class_init):
(hildon_pannable_area_init): Added horizontal scroll, fading
effect properties, fixed a problem when overshooting in the bottom
of the widget.

* examples/hildon-pannable-area-example.c:
(get_sawtooth_label): Now we use smaller sawtooths, the effect
looks better in the example.

16 years ago* src/hildon-window.c * src/hildon-window.h (hildon_window_class_init) (hildon_window...
Alberto Garcia [Tue, 3 Jun 2008 12:07:46 +0000 (12:07 +0000)]
* src/hildon-window.c * src/hildon-window.h (hildon_window_class_init) (hildon_window_unset_program) (hildon_window_unset_program_real): Make unset_program a virtual function

* src/hildon-stackable-window.c
* src/hildon-stackable-window.h
Added hildon_stackable_window_go_home()

* examples/Makefile.am
* examples/hildon-stackable-window-example.c
HildonStackableWindow example

16 years ago* hildon-pannable-area.c: Added the overshoot property and removed the OVERSHOOT...
Alejandro G. Castro [Tue, 3 Jun 2008 10:26:38 +0000 (10:26 +0000)]
* hildon-pannable-area.c: Added the overshoot property and removed the OVERSHOOT define. Fixed an indent style error. (hildon_pannable_area_motion_notify_cb): (hildon_pannable_area_get_property): (hildon_pannable_area_set_property): Add overshoot property.

(hildon_pannable_area_scroll): replaced OVERSHOOT define with
overshoot property.

(hildon_pannable_area_class_init): Installed the new property.

* hildon-pannable-area-example.c: Added a sawtooth function, this
way it is easier to check the movement in the pannable.
(get_sawtooth_label): Added this function.
(main): Now we get the labels from the new get_sawtooth_label
function.

16 years agoDirty commit, adding the new hildon-pannable-area into hildon-widgets, dirty because...
Karl Lattimer [Mon, 2 Jun 2008 09:36:41 +0000 (09:36 +0000)]
Dirty commit, adding the new hildon-pannable-area into hildon-widgets, dirty because it has been put through indent to clean up the code indentation, we should do this with all hildon-widgets once we work out an indentation standard

16 years ago* src/hildon-app-menu.c (hildon_app_menu_init, hildon_app_menu_class_init): New exter...
Alberto Garcia [Mon, 26 May 2008 13:56:10 +0000 (13:56 +0000)]
* src/hildon-app-menu.c (hildon_app_menu_init, hildon_app_menu_class_init): New external-border style property

16 years ago* src/hildon-app-menu.c (hildon_app_menu_popup): Use also the default window size...
Alberto Garcia [Mon, 26 May 2008 13:05:50 +0000 (13:05 +0000)]
* src/hildon-app-menu.c (hildon_app_menu_popup): Use also the default window size to decide where to place the menu

16 years ago* src/hildon-app-menu.h * src/hildon-app-menu.c Renamed API variables for consistency
Alberto Garcia [Mon, 26 May 2008 11:21:32 +0000 (11:21 +0000)]
* src/hildon-app-menu.h * src/hildon-app-menu.c Renamed API variables for consistency

16 years agofix typo
Michael Natterer [Mon, 26 May 2008 09:27:31 +0000 (09:27 +0000)]
fix typo

16 years ago2008-05-26 Michael Natterer <mitch@imendio.com>
Michael Natterer [Mon, 26 May 2008 09:26:43 +0000 (09:26 +0000)]
2008-05-26 Michael Natterer <mitch@imendio.com>

* src/hildon-time-editor.c (hildon_time_editor_class_init): The
widget_class->tap_and_hold_setup signal slot doesn't exist any
longer, stop overriding it.

(hildon_time_editor_init): g_signal_connect() to the
tap-and-hold-setup signal instead.

(hildon_time_editor_entry_keypress): add case to fix warning.

16 years ago* doc/hildon-docs.sgml * doc/hildon.types * examples/Makefile.am * examples/hildon...
Alberto Garcia [Fri, 23 May 2008 18:05:59 +0000 (18:05 +0000)]
* doc/hildon-docs.sgml * doc/hildon.types * examples/Makefile.am * examples/hildon-app-menu-example.c * src/Makefile.am * src/hildon-app-menu-private.h * src/hildon-app-menu.c * src/hildon-app-menu.h * src/hildon.h New HildonAppMenu widget

16 years agoSimple change to make hildon-widgets compileable with gtk+2.12
Karl Lattimer [Fri, 23 May 2008 14:05:09 +0000 (14:05 +0000)]
Simple change to make hildon-widgets compileable with gtk+2.12

16 years agoRearranged the inheritance of the pannable area, now it inherits from GtkBin. This...
Alejandro G. Castro [Wed, 21 May 2008 11:57:55 +0000 (11:57 +0000)]
Rearranged the inheritance of the pannable area, now it inherits from GtkBin. This will allow us to control the event_window and the allocation process of the widget, required for some effects.

* src/hildon-pannable-area.h: Replaced GtkEventBox structures with
GtkBin structures.  * src/hildon-pannable-area.c: Added the
event_window variable.
(hildon_pannable_area_button_press_cb):
(hildon_pannable_area_button_release_cb):
(hildon_pannable_area_motion_notify_cb):
Changed the signature of the method, now we override the event
callback instead of connecting to the signal.

(hildon_pannable_area_realize):
(hildon_pannable_area_unrealize):
(hildon_pannable_area_map):
(hildon_pannable_area_unmap):
(hildon_pannable_area_size_allocate):
Added functions to control the widget construction. We add a
INPUT_ONLY window and we put it over the widgets inside the
container, this event_window handles the events.

(hildon_pannable_area_class_init):
Replaced the signal connections with overrides of the event
callbacks.

16 years ago2008-05-20 Alejandro G. Castro <alex@igalia.com>
Alejandro G. Castro [Tue, 20 May 2008 12:32:03 +0000 (12:32 +0000)]
2008-05-20 Alejandro G. Castro <alex@igalia.com>

Bouncing effect added when touching the borders, you can change
the elasticity of the border changing the ELASTICITY define.

* src/hildon-pannable-area.c: Added ELASTICITY define.
(hildon_pannable_area_timeout): Added inverse velocity when
touching the border of the child widget, that causes a bounce.

16 years agoImproved performance, we now do not go to the X server in order to get the list of...
Alejandro G. Castro [Tue, 20 May 2008 12:18:46 +0000 (12:18 +0000)]
Improved performance, we now do not go to the X server in order to get the list of window children. Apparently the effect is the same, we have to be careful and check if this breaks something in any corner case.

* src/hildon-pannable-area.c:
(get_ordered_children): Removed this function.
(hildon_pannable_area_get_topmost): Replaced the ad-hoc search of
the children windows function with gdk_window_get_children.

16 years ago* src/hildon-pannable-area.c: (hildon_pannable_area_dispose): Fixed a crash when...
Alejandro G. Castro [Tue, 20 May 2008 09:27:12 +0000 (09:27 +0000)]
* src/hildon-pannable-area.c: (hildon_pannable_area_dispose): Fixed a crash when closing the window and kinetics is activated.

16 years ago* src/hildon-pannable-area.h * src/hildon-pannable-area.c Changed indentation style...
Alberto Garcia [Mon, 19 May 2008 16:22:33 +0000 (16:22 +0000)]
* src/hildon-pannable-area.h * src/hildon-pannable-area.c Changed indentation style to meet the one used in Hildon

16 years agoReviewed the interaction of the AUTO mode, now we use the time attribute of the event...
Alejandro G. Castro [Mon, 19 May 2008 15:34:51 +0000 (15:34 +0000)]
Reviewed the interaction of the AUTO mode, now we use the time attribute of the events and calculate the velocity in the motion, doing a gimp like calculation. The velocity is calculated in each motion event using the last velocity and the current one, the SMOOTH_FACTOR controls the percentage of the new velocity we use.

* src/hildon-pannable-area.c: Replaced the time based algorithm
for the AUTO mode.
(hildon_pannable_area_motion_notify_cb): now we do not launch the
timeout for the AUTO mode when we are still moving the cursor. We
added also the velocity calculation in this function.
(hildon_pannable_area_button_release_cb): launch the timeout in
case we are in AUTO mode. There are still some constants here that
come from the old implementation that should be reviewed and
handled properly.

16 years ago* doc/hildon-docs.sgml * doc/hildon.types * src/Makefile.am * src/hildon-stackable...
Alberto Garcia [Thu, 15 May 2008 18:45:43 +0000 (18:45 +0000)]
* doc/hildon-docs.sgml * doc/hildon.types * src/Makefile.am * src/hildon-stackable-window.c * src/hildon-stackable-window.h * src/hildon.h New HildonStackableWindow widget

16 years ago* examples/hildon-dialog-example.c * examples/hildon-pannable-area-example.c Updated...
Alberto Garcia [Thu, 15 May 2008 09:35:56 +0000 (09:35 +0000)]
* examples/hildon-dialog-example.c * examples/hildon-pannable-area-example.c Updated copyright

16 years ago* src/hildon-dialog.c * src/hildon-dialog.h (hildon_dialog_new_with_buttons): New...
Alberto Garcia [Wed, 14 May 2008 10:41:30 +0000 (10:41 +0000)]
* src/hildon-dialog.c * src/hildon-dialog.h (hildon_dialog_new_with_buttons): New constructor.

* examples/hildon-dialog-example.c
(main): Update the example to use the new
hildon_dialog_new_with_buttons().

* examples/hildon-pannable-area-example.c
(main): Update example.

16 years ago* doc/hildon-docs.sgml * doc/hildon.types Added HildonPannableArea to the documentation.
Alberto Garcia [Tue, 13 May 2008 17:47:22 +0000 (17:47 +0000)]
* doc/hildon-docs.sgml * doc/hildon.types Added HildonPannableArea to the documentation.

16 years ago* doc/visual_index.xml Fix reference to HildonLoginDialog in documentation
Alberto Garcia [Tue, 13 May 2008 17:34:34 +0000 (17:34 +0000)]
* doc/visual_index.xml Fix reference to HildonLoginDialog in documentation

* doc/hildon-docs.sgml
* doc/hildon.types
* examples/Makefile.am
* examples/hildon-dialog-example.c
* src/Makefile.am
* src/hildon-dialog.c
* src/hildon-dialog.h
* src/hildon.h
New HildonDialog widget.

16 years ago* src/hildon-pannable-area.c Merge latest changes (r4318, r4342) from libmokoui trunk
Alberto Garcia [Fri, 9 May 2008 17:28:19 +0000 (17:28 +0000)]
* src/hildon-pannable-area.c Merge latest changes (r4318, r4342) from libmokoui trunk

16 years agoNew HildonPannableArea widget
Alberto Garcia [Fri, 9 May 2008 16:02:18 +0000 (16:02 +0000)]
New HildonPannableArea widget

16 years agoNew release 2.0.4-1
Natalia Dobrovolskaya [Wed, 16 Apr 2008 07:45:27 +0000 (07:45 +0000)]
New release 2.0.4-1

16 years ago2008-04-15 18:05:19 <timj@imendio.com>
Tim Janik [Tue, 15 Apr 2008 16:06:44 +0000 (16:06 +0000)]
2008-04-15 18:05:19 <timj@imendio.com>

* src/hildon-banner.c: revert the recent change, that introduced
        gtk_window_present() calls. this reopens:
          Bug 78481 - [freetest] information banners are hidden under browser menu
        But resolves another variant of:
          Bug 83953 - Lock dialog is not visible when device is locked for the first time after flash

16 years agorelease libhildon (2.0.3-1)
Natalia Dobrovolskaya [Tue, 15 Apr 2008 12:09:48 +0000 (12:09 +0000)]
release libhildon (2.0.3-1)

16 years ago2008-04-15 13:21:13 <timj@imendio.com>
Tim Janik [Tue, 15 Apr 2008 11:24:10 +0000 (11:24 +0000)]
2008-04-15 13:21:13 <timj@imendio.com>

* src/hildon-banner.c: refetch layout pointer after GtkLabel possibly
        recreated its layout, spotted by Kris. this fixes all remaining
        artefacts and stability issues with the banner code. in particular:
        Bug 83953 - Lock dialog is not visible when device is locked for the first time after flash

16 years ago2008-04-14 16:52:59 <timj@imendio.com>
Tim Janik [Mon, 14 Apr 2008 14:57:44 +0000 (14:57 +0000)]
2008-04-14 16:52:59 <timj@imendio.com>

* src/hildon-banner.c: guard force_to_wrap_truncated() against
        operating on unrealized widgets, fixes:
        Bug 83953 - Lock dialog is not visible when device is locked for the first time after flash

        * src/hildon-banner-private.h: coalesce boolean fields into bitfield.

16 years ago2008-04-09 Kristian Rietveld <kris@imendio.com>
Kristian Rietveld [Wed, 9 Apr 2008 09:16:58 +0000 (09:16 +0000)]
2008-04-09 Kristian Rietveld <kris@imendio.com>

Fixes: NB#77775: Media Player, Save Now playing list, too long name
makes banner disappear.
Fixes: NB#79182: info banner flickering with certain message lengts.

* src/hildon-banner.c (hildon_banner_constructor),
(hildon_banner_init), (hildon_banner_set_text),
(hildon_banner_set_markup): call hildon_banner_reset_wrap_state(),
(hildon_banner_reset_wrap_state): new function: reset wrap flags to
FALSE, reset size requests of label and banner,
(force_to_wrap_truncated): when the text is too wide, always enforce
the maximum possible width instead of recalculating it from the
layout; enforce the maximum banner height of 3 lines,
(hildon_banner_init): set WORD_CHAR wrapping, this will result in
nicer wrapping and no truncated chars if space gets tight.

* src/hildon-banner-private.h: add has_been_wrapped and
has_been_truncated fields.

16 years ago2008-04-07 Sven Herzberg <sven@imendio.com>
Sven Herzberg [Mon, 7 Apr 2008 11:33:29 +0000 (11:33 +0000)]
2008-04-07 Sven Herzberg <sven@imendio.com>

Fixes: NB#78896: libhildon code inspection/coverity: uninitialised
local values in hildon_date_editor_size_allocate

* src/hildon-date-editor.c: moved the real allocation code into the
if() branch

16 years ago2008-04-07 Sven Herzberg <sven@imendio.com>
Sven Herzberg [Mon, 7 Apr 2008 11:33:24 +0000 (11:33 +0000)]
2008-04-07 Sven Herzberg <sven@imendio.com>

Prepares: NB#78896: libhildon code inspection/coverity: uninitialised
local values in hildon_date_editor_size_allocate

* src/hildon-date-editor.c: merged the two if() branches together

16 years ago2008-04-07 Sven Herzberg <sven@imendio.com>
Sven Herzberg [Mon, 7 Apr 2008 11:33:19 +0000 (11:33 +0000)]
2008-04-07 Sven Herzberg <sven@imendio.com>

Prepares: NB#78896: libhildon code inspection/coverity: uninitialised
local values in hildon_date_editor_size_allocate

* src/hildon-date-editor.c: changed the arguments of the if()
conditions

16 years ago2008-04-07 Sven Herzberg <sven@imendio.com>
Sven Herzberg [Mon, 7 Apr 2008 11:33:15 +0000 (11:33 +0000)]
2008-04-07 Sven Herzberg <sven@imendio.com>

Prepares: NB#78896: libhildon code inspection/coverity: uninitialised
local values in hildon_date_editor_size_allocate

* src/hildon-date-editor.c: split the calculation of the allocation
from the real allocation

16 years agoNew release
Natalia Dobrovolskaya [Thu, 3 Apr 2008 14:11:55 +0000 (14:11 +0000)]
New release

16 years ago2008-03-27 Michael Natterer <mitch@imendio.com>
Michael Natterer [Thu, 27 Mar 2008 12:21:47 +0000 (12:21 +0000)]
2008-03-27 Michael Natterer <mitch@imendio.com>

Fixes: NB#81696: The passcode is not overwritten even after
selecting

* src/hildon-code-dialog.c
(hildon_code_dialog_button_clicked)
(hildon_code_dialog_im_commit): don't use gtk_entry_append_text()
because that doesn't overwrite selected text. Instead, emit the
"commit" signal on the entry's im_context so the entry's normal
insert logic is triggered. Set the cursor to the end of the entry
after each insert operation so that we *only* insert in the middle
of the text if something was selected.

16 years ago2008-03-27 Michael Natterer <mitch@imendio.com>
Michael Natterer [Thu, 27 Mar 2008 10:52:14 +0000 (10:52 +0000)]
2008-03-27 Michael Natterer <mitch@imendio.com>

Enable fixing: NB#79916 and NB#79918: The help topic for Color
selector cannot be opened

* src/hildon-color-button.c: add signal "setup-dialog" and emit it
when the popup color selector is created. Please connect to this
signal in order to set the dialog's help ID.

16 years ago2008-03-25 Sven Herzberg <sven@imendio.com>
Sven Herzberg [Tue, 25 Mar 2008 09:52:06 +0000 (09:52 +0000)]
2008-03-25 Sven Herzberg <sven@imendio.com>

Fixes: MB#1212: Hide info banners (infoprints) on click

* src/hildon-banner.c: (simulate_close), (hildon_banner_timeout):
extracted the close event simulation into an extra function
(hildon_banner_button_press_event): simulate a close event and destroy
the widget if the event wasn't handled
(hildon_banner_class_init): added the button_press_event handler
(hildon_banner_init): added button-press events to the widget

16 years ago2008-03-25 Sven Herzberg <sven@imendio.com>
Sven Herzberg [Tue, 25 Mar 2008 08:02:17 +0000 (08:02 +0000)]
2008-03-25 Sven Herzberg <sven@imendio.com>

Fixes: MB:#924: Hildon widgets doesn't support RTL mode
Patch from: Mohammad Anwari  <mdamt@maemo.org>

* src/hildon-banner.c: let the HildonBanners pop up on the left side
instead of the right in RTL mode
* src/hildon-bread-crumb-trail.c: mirror the appearance of the
breadcrumb button list in RTL mode
* src/hildon-caption.c: mirror the appearance of the caption widget in
RTL mode
* src/hildon-date-editor.c: mirror appearance of the date editor in
RTL mode
* src/hildon-time-editor.c: mirror appearance of the time editor in
RTL mode
* src/hildon-window.c: fix the position of the popup in RTL mode

16 years ago2008-03-25 Sven Herzberg <sven@imendio.com>
Sven Herzberg [Tue, 25 Mar 2008 07:28:23 +0000 (07:28 +0000)]
2008-03-25 Sven Herzberg <sven@imendio.com>

Amendment to the fix of NB#22072. Fix compilation.

* src/hildon-banner.c: (hildon_banner_timeout): fix compilation

16 years ago2008-03-19 Sven Herzberg <sven@imendio.com>
Sven Herzberg [Wed, 19 Mar 2008 16:05:18 +0000 (16:05 +0000)]
2008-03-19 Sven Herzberg <sven@imendio.com>

Fixes: NB#22072: Revisiting fix for "Implement robust timer handling
in Info Banner" bug

* src/hildon-banner.c: (hildon_banner_timeout): reset the current
timeout id properly when the timeout will disappear this leaves no
artifacts around in the destroy(); there will only be the timeout
created by hildon_banner_ensure_timeout() and adding a new timeout
will also work if the timeout gets removed because the timeout_handler
returned FALSE

16 years ago2008-03-19 Michael Natterer <mitch@imendio.com>
Michael Natterer [Wed, 19 Mar 2008 15:56:58 +0000 (15:56 +0000)]
2008-03-19 Michael Natterer <mitch@imendio.com>

Fixes: NB#79791: Cannot set focus to Master volume using stylus

* src/hildon-volumebar.c
* src/hildon-vvolumebar.c
* src/hildon-hvolumebar.c (init): remove UNSET_FLAGS(CAN_FOCUS) so
the widget becomes focussable at all.

* src/hildon-volumebar.c: implement GtkWidget::grab_focus() and
set the focus to wither the mute button or the volumebar.

Remove own "can-focus" property and instead listen to
notify::can-focus in order to update the widget's state.

Implement GtkWidget::focus() and make sure we can also *leave* the
widget, not only enter it, depending on volumebar orientation and
requested focus direction.

Clean up set_mute() to cooperate nicely with all the above.

16 years ago2008-03-04 Michael Natterer <mitch@imendio.com>
Michael Natterer [Tue, 4 Mar 2008 13:53:48 +0000 (13:53 +0000)]
2008-03-04 Michael Natterer <mitch@imendio.com>

Fixes: NB#78481: information banners are hidden under browser menu

* src/hildon-banner.c: call gtk_window_present() on the banners so
they are risen if they are already visible.