Modified the procedure to get the widget at a point inside the pannable area when...
[hildon] / ChangeLog
index 23dd8f6..a672e34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,215 @@
-2008-06-27  Alejandro G. Castro <alex@igalia.com>
+2008-07-29  Alejandro G. Castro         <alex@igalia.com>
+
+       Modified the procedure to get the widget at a point inside the
+       pannable area when using the movement type signals. Now the user
+       has to call a function to get the child, that way we just
+       calculate the child in case the user really want to use it and not
+       all the time.
+
+       * src/hildon-marshalers.list: Modified the marshallers, now we do
+       not have the widget as a parameter.
+
+       * src/hildon-pannable-area.c
+       (hildon_pannable_area_motion_notify_cb),
+       (hildon_pannable_area_class_init),
+       (hildon_pannable_get_child_widget_at):  Removed the widget
+       parameter from the signal callback. We have also refactored the
+       emission of the signals.
+
+       * src/hildon-pannable-area.h: Added a new method to the API to
+       calculate a widget at a point inside the pannable area,
+       hildon_pannable_get_child_widget_at.
+
+       * examples/hildon-pannable-area-example-4.c
+       (horizontal_movement): Modified the example to use the new API,
+       added condition to control which widget is under the event. This
+       way we can avoid scrolling laterally over other widgets.
+
+2008-07-29  Alejandro G. Castro         <alex@igalia.com>
+
+       * src/hildon-pannable-area.c
+       (hildon_pannable_area_motion_notify_cb): Fixed bug handling the
+       modes, we stop getting the pointer events due to returning the
+       callback without properly calling the get pointer again. Fixed
+       also an error using the hscroll and vscroll.
+
+2008-07-28  Alberto Garcia  <agarcia@igalia.com>
+
+       * src/hildon-app-menu-private.h
+       * src/hildon-app-menu.c (hildon_app_menu_button_press)
+       (hildon_app_menu_button_release, hildon_app_menu_init)
+       (hildon_app_menu_class_init): Don't hide the menu on button
+       release if the user didn't press outside first.
+
+       * src/hildon-window.h
+       * src/hildon-window.c (hildon_window_toggle_menu)
+       (hildon_window_toggle_menu_real, hildon_window_class_init): Make
+       hildon_window_toggle_menu a virtual function for the stackable
+       window to override it.
+
+       * src/hildon-stackable-window.h
+       * src/hildon-stackable-window-private.h
+       * src/hildon-stackable-window.c
+       (hildon_stackable_window_realize)
+       (hildon_stackable_window_finalize)
+       (hildon_stackable_window_class_init)
+       (hildon_stackable_window_init)
+       (hildon_stackable_window_set_main_menu): New function to set the
+       app menu of a HildonStackableWindow.
+
+       * examples/hildon-app-menu-example.c: Remove the button to show
+       the app menu, now it'll be shown when clicking on the title bar
+       instead.
+
+2008-07-22  Claudio Saavedra  <csaavedra@igalia.com>
+
+       * src/hildon-button.c: (hildon_button_set_arrangement): Do not
+       set the widget name if the arrangement flags do not specify
+       a particular size.
+
+2008-07-22  Claudio Saavedra  <csaavedra@igalia.com>
+
+       * src/hildon-button.c: (hildon_button_set_property),
+       (hildon_button_class_init), (hildon_button_new_full),
+       (hildon_button_set_arrangement): Added "arrangement-flags"
+       property.
+
+       Make the HildonButtonFlags a construction-only property, to allow
+       subclasses to set them properly.
+
+2008-07-21 Tim Janik  <timj@imendio.com>
+
+       * src/hildon-code-dialog.c (hildon_code_dialog_backspace): fixed up
+       insertion position after backspace, so additional digits are appended,
+       fixes Bug #85874.
+
+2008-07-17  Alejandro G. Castro         <alex@igalia.com>
+
+       * src/hildon-pannable-area.c,
+       (hildon_pannable_area_get_topmost): Cleaned the code, removed the
+       TODO list, it was complete and removed the g_debug and g_print
+       lines.
+
+2008-07-17  Alejandro G. Castro         <alex@igalia.com>
+
+       Added the movement modes to the hildon-pannable-area, with this
+       modes the developers can control in which directions the widget
+       can scroll. They can also connect to signals in order to do
+       something when that happens, allowing applications scroll. There
+       is an example uploaded showing how to use it.
+
+       * examples/Makefile.am:
+       * examples/hildon-pannable-area-example-4.c: Added this example of
+       an application using the modes.
+
+       * src/hildon-marshalers.list: Added a new marshaller for the new
+       signals.
+
+       * src/hildon-pannable-area.h: Added new enumerations and flags in
+       order to control the movement modes and the new signals to warn
+       about the movements in the area.
+
+       * src/hildon-pannable-area.c:
+       (hildon_pannable_axis_scroll),
+       (hildon_pannable_area_scroll),
+       (hildon_pannable_area_motion_notify_cb),
+       (hildon_pannable_area_get_property),
+       (hildon_pannable_area_set_property),
+       (hildon_pannable_area_map),
+       (hildon_pannable_area_class_init),
+       (hildon_pannable_area_init),
+       (hildon_pannable_area_jump_to): Added the modes to control the
+       movement in the widget. We have added properties to control it,
+       signals to warn about the movements and refactored some code.
+
+2008-07-15  Alejandro G. Castro         <alex@igalia.com>
+
+       Changes required in order to allow vfast_factor set to zero to
+       work properly.
+
+       * src/hildon-pannable-area.c:
+       (hildon_pannable_area_button_press_cb): Changed the condition, it
+       is required for not allowing click when vfast_factor is zero.
+       (hildon_pannable_area_timeout): Initialized velocity variables
+       when we stop moving, it was less than 1 but not zero and we need
+       to check zero in some situations.
+       (hildon_pannable_area_class_init): Changed the default value of
+       the speed factor, now the button_press is just sent in case the
+       speed is 2 per cent of the max speed.
+       (hildon_pannable_area_init): Initialization with 0.
+
+2008-07-04  Alejandro G. Castro         <alex@igalia.com>
+
+       * 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.
+
+2008-07-03  Alejandro G. Castro         <alex@igalia.com>
+
+       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.
+
+2008-07-03  Alejandro G. Castro         <alex@igalia.com>
+
+       * 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.
+
+2008-07-02  Alberto Garcia  <agarcia@igalia.com>
+
+       * 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.
+
+2008-07-02  Claudio Saavedra  <csaavedra@igalia.com>
+
+       * 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.
+
+2008-07-01  Alberto Garcia  <agarcia@igalia.com>
+
+       * 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.
+
+2008-06-27  Alejandro G. Castro <alex@ig\alia.com>
 
        * src/hildon-pannable-area.c,
        (hildon_pannable_area_button_press_cb),
        is no child of the pannable area. Maybe we will need more work
        here.
 
-2008-06-27  Alejandro G. Castro <alex@igalia.com>
+2008-06-27  Alejandro G. Castro <alex@ig\alia.com>
 
        * src/hildon-pannable-area.c,
        (hildon_pannable_area_dispose): Released the fade-out timeout when
        disposing the widget.
 
-2008-06-27  Alejandro G. Castro <alex@igalia.com>
+2008-06-27  Alejandro G. Castro <alex@ig\alia.com>
 
        * src/hildon-pannable-area.c: Fixed problem when overshoot_max is
        zero, we are going to use that property in order to deactivate the
        NOTE: removed trailing whitespaces from my previous comments of
        the Changelog.
 
-2008-06-26  Claudio Saavedra  <csaavedra@igalia.com>
+2008-06-26  Claudio Saavedra  <csaavedra@ig\alia.com>
 
        * src/hildon-pannable-area.c
        (hildon_pannable_area_get_property),
        to cause the widget give a hint about its panning abilities upon
        realization.
 
-2008-06-26  Claudio Saavedra  <csaavedra@igalia.com>
+2008-06-26  Claudio Saavedra  <csaavedra@ig\alia.com>
 
        * src/hildon-pannable-area.c: Several documentation improvements.
 
-2008-06-26  Alberto Garcia  <agarcia@igalia.com>
+2008-06-26  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-program.c
        * src/hildon-stackable-window.c: Update documentation.
 
-2008-06-26  Alberto Garcia  <agarcia@igalia.com>
+2008-06-26  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-stackable-window.c (get_previous_window_if_last):
        Renamed get_last_window()
        (get_previous_window_if_last):
        Detect if the window hasn't been added to a HildonProgram.
 
-2008-06-26  Alejandro G. Castro <alex@igalia.com>
+2008-06-26  Alejandro G. Castro <alex@ig\alia.com>
 
-       contributed and reviewed by: Claudio Saavedra <csaavedra@igalia.com>
+       contributed and reviewed by: Claudio Saavedra <csaavedra@ig\alia.com>
 
        * src/hildon-pannable-area.c
        (hildon_pannable_area_button_press_cb),
        * examples/hildon-pannable-area-example-3.c: Added these two new
        examples in order to test and show how the new APIs work.
 
-2008-06-25  Alberto Garcia  <agarcia@igalia.com>
+2008-06-25  Alberto Garcia  <agarcia@ig\alia.com>
 
        * examples/hildon-stackable-window-example.c (new_window):
        * src/Makefile.am (noinst_HEADERS):
        * src/hildon-window.c:
        Fix typo in doc
 
-2008-06-24  Alberto Garcia  <agarcia@igalia.com>
+2008-06-24  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-stackable-window.c
        (hildon_stackable_window_unset_program):
        (hildon_stackable_window_class_init):
        Ignore the delete event if the window is not the topmost one.
 
-2008-06-24  Alejandro G. Castro <alex@igalia.com>
+2008-06-24  Alejandro G. Castro <alex@ig\alia.com>
 
        * src/hildon-pannable-area.c
        (hildon_pannable_area_expose_event): Fixed a problem when
        selecting the background color of the scrollbars.
 
-2008-06-23  Alberto Garcia  <agarcia@igalia.com>
+2008-06-23  Alberto Garcia  <agarcia@ig\alia.com>
 
        * examples/hildon-stackable-window-example.c
        * src/hildon-stackable-window.c
        Send delete events to windows rather than closing them with
        gtk_widget_destroy()
 
-2008-06-19  Alberto Garcia  <agarcia@igalia.com>
+2008-06-19  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-pannable-area.c
        (hildon_pannable_area_button_release_cb): Fix overshooting in
        accel mode.
 
-2008-06-19  Claudio Saavedra  <csaavedra@igalia.com>
+2008-06-19  Claudio Saavedra  <csaavedra@ig\alia.com>
 
        * src/hildon-pannable-area.c
        (hildon_pannable_area_init): Initially show the scroll indicators.
 
        Add initial effect showing the widget is pannable.
 
-2008-06-19  Alberto Garcia  <agarcia@igalia.com>
+2008-06-19  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-pannable-area.c
        (hildon_pannable_area_class_init)
        New 'velocity_fast_factor' property to decide which velocity is
        considered fast.
 
-2008-06-19  Claudio Saavedra  <csaavedra@igalia.com>
+2008-06-19  Claudio Saavedra  <csaavedra@ig\alia.com>
 
        * src/hildon-pannable-area.c
        (hildon_pannable_draw_hscroll)
        Use float variables to calculate the size of the scrollbars to
        avoid error propagation and resizing during scrolling.
 
-2008-06-19  Alberto Garcia  <agarcia@igalia.com>
+2008-06-19  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-pannable-area.c
        (hildon_pannable_draw_vscroll)
        (hildon_stackable_window_class_init): Fix initialization of
        private structure.
 
-2008-06-18  Alberto Garcia  <agarcia@igalia.com>
+2008-06-18  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-stackable-window.c: Fixed typos in doc
 
-2008-06-18  Claudio Saavedra  <csaavedra@igalia.com>
+2008-06-18  Claudio Saavedra  <csaavedra@ig\alia.com>
 
        * 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.
 
-2008-06-17  Claudio Saavedra  <csaavedra@igalia.com>
+2008-06-17  Claudio Saavedra  <csaavedra@ig\alia.com>
 
        * src/hildon-app-menu.h
        Update API.
        (create_menu):
        Update to reflect API changes.
 
-2008-06-16  Claudio Saavedra  <csaavedra@igalia.com>
+2008-06-16  Claudio Saavedra  <csaavedra@ig\alia.com>
 
        * src/hildon-stackable-window.c
        (hildon_stackable_window_class_init):
        to apply theming and behavior specific to HildonStackableWindow
        windows.
 
-2008-06-12  Alberto Garcia  <agarcia@igalia.com>
+2008-06-12  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-note.c (hildon_note_button_release):
        Close information notes also when tapping on them
 
-2008-06-12  Alejandro G. Castro <alex@igalia.com>
+2008-06-12  Alejandro G. Castro <alex@ig\alia.com>
 
        Added BOUNCE_STEPS define to control the overshoot effect. Removed
        ELASTICITY, refactor and review, fix some issues with drawing
 
        (hildon_pannable_area_class_init): Changed some default values.
 
-2008-06-12  Claudio Saavedra  <csaavedra@igalia.com>
+2008-06-12  Claudio Saavedra  <csaavedra@ig\alia.com>
 
        * src/hildon-stackable-window.c: Fix some typos in the
        documentation.
 
-2008-06-12  Alberto Garcia  <agarcia@igalia.com>
+2008-06-12  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-dialog.c:
        Change indentation style
        Don't set the menu border explicitly, now we have the inner-border
        style property for that.
 
-2008-06-11  Alberto Garcia  <agarcia@igalia.com>
+2008-06-11  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-app-menu.c (hildon_app_menu_init):
        Make the window modal
        * src/hildon-banner.c (hildon_banner_realize):
        Add WM hints for Matchbox
 
-2008-06-10  Alberto Garcia  <agarcia@igalia.com>
+2008-06-10  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-app-menu-private.h
        * src/hildon-app-menu.c
        * examples/hildon-app-menu-example.c
        Remove hildon_app_menu_popup(), use gtk_widget_show() instead
 
-2008-06-09  Alberto Garcia  <agarcia@igalia.com>
+2008-06-09  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-note.c
        Added new transfer_window and close_if_pressed_outside private
        (hildon_banner_show_information_with_markup):
        Don't display an icon by default
 
-2008-06-09  Alejandro G. Castro <alex@igalia.com>
+2008-06-09  Alejandro G. Castro <alex@ig\alia.com>
 
        Added fading scrollbars and adapted all the overshooting code to
        horizontal scrolling. We have also fixed bugs with overshooting
        (get_sawtooth_label): Now we use smaller sawtooths, the effect
        looks better in the example.
 
-2008-06-03  Alberto Garcia  <agarcia@igalia.com>
+2008-06-03  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-window.c
        * src/hildon-window.h
        * examples/hildon-stackable-window-example.c
        HildonStackableWindow example
 
-2008-06-03 Alejandro G. Castro <alex@igalia.com>
+2008-06-03 Alejandro G. Castro <alex@ig\alia.com>
 
        * hildon-pannable-area.c: Added the overshoot property and removed
        the OVERSHOOT define. Fixed an indent style error.
        (main): Now we get the labels from the new get_sawtooth_label
        function.
 
-2008-05-26  Alberto Garcia  <agarcia@igalia.com>
+2008-05-26  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-app-menu.h
        * src/hildon-app-menu.c
 
        (hildon_time_editor_entry_keypress): add cast to fix warning.
 
-2008-05-23  Alberto Garcia  <agarcia@igalia.com>
+2008-05-23  Alberto Garcia  <agarcia@ig\alia.com>
 
        * doc/hildon-docs.sgml
        * doc/hildon.types
        * src/hildon.h
        New HildonAppMenu widget
 
-2008-05-21 Alejandro G. Castro <alex@igalia.com>
+2008-05-21 Alejandro G. Castro <alex@ig\alia.com>
 
        Rearranged the inheritance of the pannable area, now it inherits
        from GtkBin. This will allow us to control the event_window and
        Replaced the signal connections with overrides of the event
        callbacks.
 
-2008-05-20 Alejandro G. Castro <alex@igalia.com>
+2008-05-20 Alejandro G. Castro <alex@ig\alia.com>
 
        Bouncing effect added when touching the borders, you can change
        the elasticity of the border changing the ELASTICITY define.
        (hildon_pannable_area_timeout): Added inverse velocity when
        touching the border of the child widget, that causes a bounce.
 
-2008-05-20 Alejandro G. Castro <alex@igalia.com>
+2008-05-20 Alejandro G. Castro <alex@ig\alia.com>
 
        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
        (hildon_pannable_area_get_topmost): Replaced the ad-hoc search of
        the children windows function with gdk_window_get_children.
 
-2008-05-20 Alejandro G. Castro <alex@igalia.com>
+2008-05-20 Alejandro G. Castro <alex@ig\alia.com>
 
        * src/hildon-pannable-area.c:
        (hildon_pannable_area_dispose): Fixed a crash when closing the
        window and kinetics is activated.
 
-2008-05-19  Alberto Garcia  <agarcia@igalia.com>
+2008-05-19  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-pannable-area.h
        * src/hildon-pannable-area.c
        Changed indentation style to meet the one used in Hildon
 
-2008-05-19 Alejandro G. Castro <alex@igalia.com>
+2008-05-19 Alejandro G. Castro <alex@ig\alia.com>
 
        Reviewed the interaction of the AUTO mode, now we use the time
        attribute of the events and calculate the velocity in the motion,
        come from the old implementation that should be reviewed and
        handled properly.
 
-2008-05-15  Alberto Garcia  <agarcia@igalia.com>
+2008-05-15  Alberto Garcia  <agarcia@ig\alia.com>
 
        * doc/hildon-docs.sgml
        * doc/hildon.types
        * examples/hildon-pannable-area-example.c
        Updated copyright
 
-2008-05-14  Alberto Garcia  <agarcia@igalia.com>
+2008-05-14  Alberto Garcia  <agarcia@ig\alia.com>
 
        * src/hildon-dialog.c
        (hildon_dialog_new_with_buttons): New constructor.
        * examples/hildon-pannable-area-example.c
        (main): Update example.
 
-2008-05-13 Alberto Garcia <agarcia@igalia.com>
+2008-05-13 Alberto Garcia <agarcia@ig\alia.com>
 
        * doc/hildon-docs.sgml
        * doc/hildon.types
        Added HildonPannableArea to the documentation.
 
-2008-05-13 Victor Jaquez <vjaquez@igalia.com>
+2008-05-13 Victor Jaquez <vjaquez@ig\alia.com>
 
        * doc/visual_index.xml
        Fix reference to HildonLoginDialog in documentation
        * src/hildon.h
        New HildonDialog widget.
 
-2008-05-09 Alberto Garcia <agarcia@igalia.com>
+2008-05-09 Alberto Garcia <agarcia@ig\alia.com>
 
        * src/hildon-pannable-area.c
        Merge latest changes (r4318, r4342) from libmokoui trunk
 
-2008-05-09 Alberto Garcia <agarcia@igalia.com>
+2008-05-09 Alberto Garcia <agarcia@ig\alia.com>
 
        * examples/Makefile.am
        * examples/hildon-pannable-area-example.c