hildon
14 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>

14 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.

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

14 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.

14 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>

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

14 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

14 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.

14 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.

14 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

14 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.

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

14 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.

14 years agoBump build dependency on GTK+ to 2.14.3-1maemo5
Claudio Saavedra [Wed, 24 Jun 2009 07:20:29 +0000 (10:20 +0300)]
Bump build dependency on GTK+ to 2.14.3-1maemo5

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

14 years agoFix size and text alignment of HildonBanner
Alberto Garcia [Wed, 24 Jun 2009 12:21:11 +0000 (14:21 +0200)]
Fix size and text alignment of HildonBanner

* hildon/hildon-banner.c
(hildon_banner_class_init):
Center text.
(+hildon_banner_size_request):
Request always the full width of the screen.
(hildon_banner_realize)
(-hildon_banner_check_position, hildon_banner_map):
hildon_banner_check_position() is not needed in Hildon 2.2.
(-hildon_banner_reset_wrap_state)
(hildon_banner_constructor, hildon_banner_init):
Remove unnecessary calls to hildon_banner_reset_wrap_state()
(+banner_do_set_text)
(force_to_wrap_truncated):
Remove has_been_wrapped and has_been_truncated attributes.
(+reshow_banner, hildon_banner_real_show_information)
(hildon_banner_show_information_with_markup)
(hildon_banner_show_animation, hildon_banner_show_progress)
(hildon_banner_set_text, hildon_banner_set_markup):
Refactor code. Shrink banner vertically to use the minimum space
necessary everytime the text of the label is updated.
(screen_size_changed):
Call force_to_wrap_truncated() when the size of the screen
changes.

Fixes: NB#120500 (only device memory connect mmc in use info
banner is left aligned)

Fixes: NB#120613 (Size of HildonBanner varies depending on
previously opened banners)

14 years agoCorrect the color drag in HildonColorChooser
Claudio Saavedra [Wed, 24 Jun 2009 10:04:15 +0000 (13:04 +0300)]
Correct the color drag in HildonColorChooser

* hildon/hildon-color-chooser.c
(hildon_color_chooser_pointer_motion): Take the widget allocation
into account.

Fixes: NB#124385 (Unable to select exact point in color mixing box
in color palette dialog)

14 years agoHildonPannableArea: new 'panning-started' and 'panning-finished' signals
Alejandro G. Castro [Tue, 23 Jun 2009 14:39:15 +0000 (16:39 +0200)]
HildonPannableArea: new 'panning-started' and 'panning-finished' signals

* hildon/hildon-pannable-area.c (hildon_pannable_area_class_init)
(hildon_pannable_area_dispose)
(hildon_pannable_area_button_press_cb)
(hildon_pannable_area_timeout, hildon_pannable_area_check_move)
(hildon_pannable_area_button_release_cb)
(hildon_pannable_area_scroll_cb, hildon_pannable_area_jump_to):
New 'panning-started' and 'panning-finished' signals.

Fixes: NB#121732 (New feature request: Signal to pannable area
that informs when panning is stopped.)

14 years agoUse locale-dependant separator in HildonWizardDialog title
Mox Soini [Tue, 23 Jun 2009 11:58:50 +0000 (14:58 +0300)]
Use locale-dependant separator in HildonWizardDialog title

* hildon/hildon-wizard-dialog.c: (create_title): Use separator
instead of hardcoded colon.

Fixes: NB#124090 (New calendar wizard title is not using
ecdg_ti_caption_separator)

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

14 years agoSeveral fixes in the documentation of HildonFindToolbar
David King [Mon, 22 Jun 2009 11:33:21 +0000 (13:33 +0200)]
Several fixes in the documentation of HildonFindToolbar

* hildon/hildon-find-toolbar.c: Add Gtk-Doc markup for types,
constants and functions, as well as correct many typos throughout the
documentation text.

Fixes: MB#4700 (HildonFindToolbar documentation lacks Gtk-Doc markup,
and needs cleanup)

Signed-off-by: Alberto Garcia <agarcia@igalia.com>

14 years agoPost release version bump.
Claudio Saavedra [Mon, 22 Jun 2009 09:54:58 +0000 (12:54 +0300)]
Post release version bump.

* configure.ac: postrelease version bump.
* debian/changelog: post release version bump

14 years agoRelease 2.1.84 2.1.84-1
Claudio Saavedra [Mon, 22 Jun 2009 09:53:08 +0000 (12:53 +0300)]
Release 2.1.84

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

14 years agoPrevent windows from having the same stack index
Alberto Garcia [Thu, 18 Jun 2009 16:29:05 +0000 (18:29 +0200)]
Prevent windows from having the same stack index

* hildon/hildon-window-stack.c
(hildon_window_stack_pop_and_push_list):
Prevent windows from having the same stack index

14 years agoFix dates in ChangeLog
Alberto Garcia [Thu, 18 Jun 2009 15:48:01 +0000 (17:48 +0200)]
Fix dates in ChangeLog

14 years agoUse the index of the previous window to calculate the new stack index
Alberto Garcia [Thu, 18 Jun 2009 15:11:36 +0000 (17:11 +0200)]
Use the index of the previous window to calculate the new stack index

* hildon/hildon-window-stack.c (_hildon_window_stack_do_push):
Use the index of the previous window rather than the stack length
to calculate the new index.

Fixes: NB#122389

14 years agoUpdate HildonDateSelector documentation
Alejandro Piñeiro [Thu, 18 Jun 2009 15:00:08 +0000 (17:00 +0200)]
Update HildonDateSelector documentation

* hildon/hildon-date-selector.c
(hildon_date_selector_select_current_date)
(hildon_date_selector_get_date)
(hildon_date_selector_select_day):
Update the documentation: uses always the range (1-31), as it is obvious
that the final one will depend on the month and the year, but globally
the range is this, in a similar GtkCalendar approach
(hildon_date_selector_get_date):
Update the documentation: add NULL as a valid value for the day, month
and year locations

Fix some details, after talk with David King on bug MB#4698

14 years ago2009-06-18 Alejandro Pinheiro <apinheiro@igalia.com>
Alejandro Piñeiro [Thu, 18 Jun 2009 14:32:49 +0000 (16:32 +0200)]
2009-06-18  Alejandro Pinheiro <apinheiro@igalia.com>

* hildon/hildon-touch-selector-entry.c
* hildon/hildon-touch-selector.c
Update the documentation of the "text-column" property

14 years agoAdd Gtk-Doc markup and correct some typos and mistakes in HildonNote docs
David King [Wed, 17 Jun 2009 13:37:22 +0000 (15:37 +0200)]
Add Gtk-Doc markup and correct some typos and mistakes in HildonNote docs

* hildon/hildon-note.c: Add Gtk-Doc markup where appropriate. Correct
several typos and errors throughout the documentation.

Fixes: MB#4701 (HildonNote documentation lacks some Gtk-Doc markup and
has some mistakes)

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

14 years agoMake HildonNote support portrait mode
Alberto Garcia [Thu, 18 Jun 2009 10:15:28 +0000 (12:15 +0200)]
Make HildonNote support portrait mode

* hildon/hildon-note.c (hildon_note_realize):
Make HildonNote support portrait mode.

Fixes: NB#123448 (HildonNote is not portrait-friendly)

14 years agoDocument hildon_color_chooser_new()
Alberto Garcia [Wed, 17 Jun 2009 18:59:38 +0000 (20:59 +0200)]
Document hildon_color_chooser_new()

* hildon/hildon-color-chooser.c (hildon_color_chooser_new):
Document this function

14 years agoDateSelector documentation fixes
David King [Wed, 17 Jun 2009 10:19:34 +0000 (12:19 +0200)]
DateSelector documentation fixes

* hildon/hildon-date-selector.c
(hildon_date_selector_select_current_date)
(hildon_date_selector_get_date): Update documentation regarding days,
as the day of the month is dependent on both the month and the year.
(hildon_date_selector_get_date): Fix documentation of output arguments.

Fixes: MB#4698 (DateSelector documentation has bad output argument
description, and the day depends on both the month and the year)

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

14 years agoOther documentation fixes to HildonCaption.
Claudio Saavedra [Wed, 17 Jun 2009 12:14:54 +0000 (15:14 +0300)]
Other documentation fixes to HildonCaption.

* hildon/hildon-caption.c: Other documentation fixes to
HildonCaption.

14 years agoDocumentation updates for HildonCaption
David King [Wed, 17 Jun 2009 09:46:39 +0000 (11:46 +0200)]
Documentation updates for HildonCaption

* hildon/hildon-caption.c: Minor documentation updates for
HildonCaption. Fixes MB#4697.

14 years agoDocument versioning macros
Claudio Saavedra [Wed, 17 Jun 2009 06:40:06 +0000 (09:40 +0300)]
Document versioning macros

* doc/hildon-docs.sgml: Add hildon-version section.
* doc/hildon-sections.txt:
* hildon/hildon-version.h.in: Document versioning macros and
add HILDON_VERSION.

14 years agoRemove HILDON_DISABLE_DEPRECATED from wrong docs section
Claudio Saavedra [Wed, 17 Jun 2009 05:20:54 +0000 (08:20 +0300)]
Remove HILDON_DISABLE_DEPRECATED from wrong docs section

* doc/hildon-sections.txt: Remove HILDON_DISABLE_DEPRECATED
from HildonPickerDialog section.

14 years agoSet a different widget name to banners in portrait mode
Alberto Garcia [Tue, 16 Jun 2009 14:52:17 +0000 (16:52 +0200)]
Set a different widget name to banners in portrait mode

* hildon/hildon-banner.c (hildon_banner_bind_style)
(screen_size_changed, hildon_banner_init)
(hildon_banner_real_show_information)
(hildon_banner_show_information_with_markup)
(hildon_banner_show_animation, hildon_banner_show_progress):
Set a different widget name to banners in portrait mode, for them
to be themed correctly.

14 years agoSet a different widget name to notes in portrait mode
Alberto Garcia [Tue, 16 Jun 2009 12:14:46 +0000 (14:14 +0200)]
Set a different widget name to notes in portrait mode

* hildon/hildon-note.c (hildon_note_rename, screen_size_changed):
Set a different widget name to notes in portrait mode, for them to
be themed correctly.

Partially fixes: NB#118401 (HildonNote causes unnecessary
rescaling of images)

14 years agoMake HildonNote request always the full width of the screen
Alberto Garcia [Tue, 16 Jun 2009 12:02:12 +0000 (14:02 +0200)]
Make HildonNote request always the full width of the screen

* hildon/hildon-note.c (hildon_note_class_init)
(+hildon_note_size_request, screen_size_changed):
Always request the full width of the screen.

Fixes: NB#118375 (unnecessary rescaling of images)

14 years agoRefactored event flags code in HildonPannableArea
Alejandro G. Castro [Tue, 16 Jun 2009 08:07:28 +0000 (10:07 +0200)]
Refactored event flags code in HildonPannableArea

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_init),
(hildon_pannable_area_realize): Replaced old code adding flags in
the object init, now we add it with the other flags in the realize
method.

14 years agoDocumentation improvements for HildonNote
Claudio Saavedra [Mon, 15 Jun 2009 22:03:19 +0000 (01:03 +0300)]
Documentation improvements for HildonNote

* hildon/hildon-note.c: (hildon_note_class_init): Several
documentation improvements to the HildonNote widget.

14 years agoDocument the HildonNoteType enumeration
Claudio Saavedra [Mon, 15 Jun 2009 22:00:04 +0000 (01:00 +0300)]
Document the HildonNoteType enumeration

* hildon/hildon-note.h: Document the HildonNoteType enumeration.

Fixes: MB#4556 (HildonNoteType is undocumented)

14 years agoExplain how HildonPickerButton sets the title of its dialog
Alberto Garcia [Mon, 15 Jun 2009 19:05:25 +0000 (21:05 +0200)]
Explain how HildonPickerButton sets the title of its dialog

* hildon/hildon-picker-button.c:
Explain how HildonPickerButton sets the title of its dialog

Fixes: MB#4528 (HildonPickerButton docs should mention how to set
the title of its dialog)

14 years agoHildonCheckButton documentation updates
Alberto Garcia [Thu, 11 Jun 2009 15:47:23 +0000 (17:47 +0200)]
HildonCheckButton documentation updates

* hildon/hildon-check-button.c:
Documentation updates

Fixes: MB#4598 (HildonCheckButton documentation doesn't say why it
exists)

14 years agoAdd progress indicator to the HildonEditToolbar.
Alberto Garcia [Mon, 18 May 2009 16:05:51 +0000 (18:05 +0200)]
Add progress indicator to the HildonEditToolbar.

* hildon/Makefile.am
* hildon/hildon-edit-toolbar-private.h
* hildon/hildon-edit-toolbar.c
(+hildon_edit_toolbar_set_progress_indicator)
(hildon_edit_toolbar_init): Add progress indicator to the
toolbar.

* hildon/hildon-gtk.c
(hildon_gtk_window_set_progress_indicator):
If the window contains a HildonEditToolbar, enable the progress
indicator there too.

* hildon/hildon-private.h
* hildon/hildon-private.c
(+hildon_private_create_animation)
* hildon/hildon-banner.c
(-hildon_banner_create_animation):
Moved to hildon-private.c

Fixes: NB#102373 (Progress indicator also for the Edit mode
toolbar)

14 years agoMake sure that buttons in HildonAppMenu receive 'button-release-event'
Alberto Garcia [Mon, 15 Jun 2009 15:01:27 +0000 (17:01 +0200)]
Make sure that buttons in HildonAppMenu receive 'button-release-event'

* hildon/hildon-app-menu-private.h
* hildon/hildon-app-menu.c (hildon_app_menu_insert)
(hildon_app_menu_add_filter, +menu_item_button_event)
(hildon_app_menu_button_release, hildon_app_menu_init):
Make sure that buttons receive 'button-release-event' in spite of
the grab held by HildonAppMenu

Fixes: NB#108337 (Focus mismatch in items of AppMenu)

14 years agoNew style property to set the size of the group of filter buttons
Alberto Garcia [Mon, 15 Jun 2009 10:45:48 +0000 (12:45 +0200)]
New style property to set the size of the group of filter buttons

* hildon/hildon-app-menu.c
(hildon_app_menu_apply_style, hildon_app_menu_class_init):
New style property to set the size of the group of filter buttons.

Fixes: NB#122033 (Filter buttons in view menus incorrectly sized)

14 years agoRelease 2.1.82 2.1.82-1
Claudio Saavedra [Mon, 15 Jun 2009 09:56:33 +0000 (12:56 +0300)]
Release 2.1.82

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

14 years agoDependencies fixes in debian/control
Claudio Saavedra [Mon, 15 Jun 2009 09:25:41 +0000 (12:25 +0300)]
Dependencies fixes in debian/control

14 years agoMinor documentation fixes.
Claudio Saavedra [Sat, 13 Jun 2009 14:32:50 +0000 (17:32 +0300)]
Minor documentation fixes.

* hildon/hildon-main.c: Minor documentation fixes.

14 years agoDocument hildon-defines.h
Claudio Saavedra [Sat, 13 Jun 2009 14:31:52 +0000 (17:31 +0300)]
Document hildon-defines.h

Fixes: MB#4463 (Hildon size #defines are undocumented)

14 years agoRemove redundant "represents" wording from most of the documentation.
Claudio Saavedra [Sat, 13 Jun 2009 10:47:34 +0000 (13:47 +0300)]
Remove redundant "represents" wording from most of the documentation.

Fixes: MB#4554 (Documentation: Annoying "represents" phrasing.)

14 years agoRemove hildon-banner-private.h
Alberto Garcia [Fri, 12 Jun 2009 12:18:11 +0000 (14:18 +0200)]
Remove hildon-banner-private.h

* po/POTFILES.in
* doc/Makefile.am
* hildon/Makefile.am
* hildon/hildon-banner-private.h
* hildon/hildon-banner.c:
Move HildonBannerPrivate to hildon-banner.c and remove
hildon-banner-private.h
Use a bit field to store private booleans.

14 years agoHildonAppMenu: avoid installing duplicate idle functions
Alberto Garcia [Fri, 12 Jun 2009 09:52:15 +0000 (11:52 +0200)]
HildonAppMenu: avoid installing duplicate idle functions

* hildon/hildon-app-menu.c (hildon_app_menu_map):
Don't install a new idle function if there's already one
installed.

Fixes: NB#122254

14 years agoSet _HILDON_WM_WINDOW_TYPE property to legacy Gtk app menus
Alberto Garcia [Thu, 11 Jun 2009 15:58:23 +0000 (17:58 +0200)]
Set _HILDON_WM_WINDOW_TYPE property to legacy Gtk app menus

* hildon/hildon-window.c (hildon_window_toggle_gtk_menu)
(+legacy_menu_realized, +legacy_menu_unmapped)
(+set_legacy_menu_type):
Set the _HILDON_WM_WINDOW_TYPE property to legacy Gtk app menus so
they can be identified by the window manager.

Fixes: NB#101437 (Invoking CSM on the left side of page area is
displayed in wrong location)

Fixes: MB#4563 (Popup menu won't locate at the left side of the
screen)

14 years agoRemove m4/gtk-doc.m4, as it already comes with gtk-doc-tools
Alberto Garcia [Thu, 11 Jun 2009 15:09:19 +0000 (17:09 +0200)]
Remove m4/gtk-doc.m4, as it already comes with gtk-doc-tools

Fixes: MB#4616 (Compiling libhildon requires gtk-doc but does not
use gtk-doc support)

14 years agoMisc documentation updates
Alberto Garcia [Thu, 11 Jun 2009 14:36:58 +0000 (16:36 +0200)]
Misc documentation updates

* hildon/hildon-code-dialog.c
* hildon/hildon-date-editor.c
* hildon/hildon-number-editor.c
* hildon/hildon-seekbar.c
* hildon/hildon-stackable-window.c
* hildon/hildon-window.c:
Misc documentation updates

14 years agoMake HildonEntry:size a G_PARAM_CONSTRUCT property
Claudio Saavedra [Wed, 10 Jun 2009 14:25:23 +0000 (17:25 +0300)]
Make HildonEntry:size a G_PARAM_CONSTRUCT property

* hildon/hildon-entry.c (hildon_entry_class_init): Make HildonEntry:size
a G_PARAM_CONSTRUCT property, to allow the default size to be set.

Fixes: NB#117931 (Theming issues in accounts dialogs)

14 years agoAdded faked release coordinates to the release event if we want
Alejandro G. Castro [Tue, 9 Jun 2009 12:19:54 +0000 (14:19 +0200)]
Added faked release coordinates to the release event if we want
to avoid activation.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_button_release_cb): Changed the coordinates
of the original release in case we want to discard the release,
some widgets in Fremantle do not handle the leave-notify.

14 years agoReviewed release button logic
Alejandro G. Castro [Tue, 9 Jun 2009 12:10:38 +0000 (14:10 +0200)]
Reviewed release button logic

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_button_release_cb): Reviewed the logic of
the release using the last refactored functions and avoiding the
movement if an element was selected.

14 years agoRefactored the motion_notify method
Alejandro G. Castro [Tue, 9 Jun 2009 10:46:16 +0000 (12:46 +0200)]
Refactored the motion_notify method

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_check_move),
(hildon_pannable_area_handle_move),
(hildon_pannable_area_motion_notify_cb): Refactored the
motion_notify method using a couple of new functions.

14 years agoUse hildon_touch_selector_set/get_text_column() in the touchselector widgets
Claudio Saavedra [Tue, 9 Jun 2009 12:29:17 +0000 (15:29 +0300)]
Use hildon_touch_selector_set/get_text_column() in the touchselector widgets

* hildon/hildon-date-selector.c:
(hildon_date_selector_construct_ui):
* hildon/hildon-time-selector.c:
(hildon_time_selector_constructor):
* hildon/hildon-touch-selector-entry.c:
(hildon_touch_selector_entry_set_text_column),
(hildon_touch_selector_entry_get_text_column):
* hildon/hildon-touch-selector.c: (_default_print_func),
(hildon_touch_selector_new_text): Use
hildon_touch_selector_set/get_text_column() instead of
setting/getting the "text-column" property.

14 years agoMake hildon_touch_selector_column_get/set_column public
Claudio Saavedra [Tue, 9 Jun 2009 08:47:03 +0000 (11:47 +0300)]
Make hildon_touch_selector_column_get/set_column public

* doc/hildon-sections.txt: Add the new public methods below.

* examples/hildon-picker-button-multicolumn-example.c:
(create_touch_selector):
* examples/hildon-touch-selector-example.c: (create_selector):
* examples/hildon-touch-selector-multi-cells-example.c:
(create_selector):
Use hildon_touch_selector_column_set_text_column()

* hildon/hildon-touch-selector-column.h:
* hildon/hildon-touch-selector.c:
(hildon_touch_selector_column_set_text_column),
(hildon_touch_selector_column_get_text_column):
Make hildon_touch_selector_column_set/get_column() public, use
them in the inline example, document them, and reference to them
in the docs.

14 years agoFix the docs for hildon_time_selector_new_step()
Claudio Saavedra [Tue, 9 Jun 2009 08:50:16 +0000 (11:50 +0300)]
Fix the docs for hildon_time_selector_new_step()

* hildon/hildon-time-selector.c: Fix the docs for
hildon_time_selector_new_step().

14 years agoImprove the hildon_touch_selector_append_column() documentation
Claudio Saavedra [Tue, 9 Jun 2009 06:41:40 +0000 (09:41 +0300)]
Improve the hildon_touch_selector_append_column() documentation

* hildon/hildon-touch-selector.c: Improve the documentation for
hildon_touch_selector_append_column().

Fixes MB#4641 (Documentation:
hildon_touch_selector_append_column() ref-counting)

14 years agoComment out test of broken hildon_controlbar_set_range()
Claudio Saavedra [Mon, 8 Jun 2009 15:07:07 +0000 (18:07 +0300)]
Comment out test of broken hildon_controlbar_set_range()

* tests/check-hildon-controlbar.c: (test_set_range_invalid):
Comment out test 5, since the hildon_controlbar_set_range() range
check is broken and fixing it would have side effects. Also,
this finally fixes make distcheck.

Fixes: NB#101420 (Update unit tests and fix make distcheck)

14 years agoRemove bogus test from HildonControlbar
Claudio Saavedra [Wed, 13 May 2009 19:52:32 +0000 (22:52 +0300)]
Remove bogus test from HildonControlbar

* tests/TEST-CASES.txt: Remove other bogus test.
* tests/check-hildon-controlbar.c: (test_set_value_invalid):
Remove bogus test that was setting/retrieving a valid value.

14 years agoRemove three bogus tests for HildonColorChooser
Claudio Saavedra [Wed, 13 May 2009 19:32:45 +0000 (22:32 +0300)]
Remove three bogus tests for HildonColorChooser

* tests/TEST-CASES.txt: Remove bogus tests.
* tests/check-hildon-color-chooser.c: (test_set_color_invalid):
Remove three bogus tests that were actually setting valid colors.

14 years agoFix debian/changelog
Claudio Saavedra [Mon, 8 Jun 2009 14:27:51 +0000 (17:27 +0300)]
Fix debian/changelog

14 years agoPost release version bump
Claudio Saavedra [Mon, 8 Jun 2009 13:42:23 +0000 (16:42 +0300)]
Post release version bump

* configure.ac: post release version bump
* debian/changelog: post release version bump

14 years agoRelease 2.1.80
Claudio Saavedra [Mon, 8 Jun 2009 13:40:40 +0000 (16:40 +0300)]
Release 2.1.80

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

14 years agoBackfold debian/changelog 2.1.78-2
Claudio Saavedra [Mon, 8 Jun 2009 13:27:50 +0000 (16:27 +0300)]
Backfold debian/changelog 2.1.78-2

14 years agoCorrect errors in hildon_format_file-size_for_display
Christian Dywan [Mon, 8 Jun 2009 11:33:23 +0000 (14:33 +0300)]
Correct errors in hildon_format_file-size_for_display

* debian/changelog:
* debian/control:
* hildon/hildon-helper.c (hildon_format_file_size_for_display):
Correct errors in hildon_format_file-size_for_display and use
translations from the hildon-fm package instead of osso-filemanager.

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

14 years agoImproved the diagonal movement adjustment handling.
Alejandro G. Castro [Mon, 8 Jun 2009 11:06:57 +0000 (13:06 +0200)]
Improved the diagonal movement adjustment handling.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_init): Initialized new values to handle the
adjustment position.
(hildon_pannable_area_adjust_value_changed): Check if the values
changed before even call the redraw function.
(hildon_pannable_area_size_allocate),
(hildon_pannable_axis_scroll),
(hildon_pannable_area_scroll),
(hildon_pannable_area_jump_to): Improved the diagonal movement
case.

Fixes: NB#113065 (Image viewer image scrolling updates in X, then
Y)

14 years agoUpdated HildonBanner example
Alberto Garcia [Mon, 8 Jun 2009 10:51:31 +0000 (12:51 +0200)]
Updated HildonBanner example

* examples/hildon-banner-example.c:
Several style updates
(on_animation_clicked, on_animation_idle)
(on_progress_clicked, on_progress_idle):
Add additional reference for the cases when the parent window is
destroyed.

14 years agoDocumentation updates
Alberto Garcia [Mon, 8 Jun 2009 08:49:35 +0000 (10:49 +0200)]
Documentation updates

* doc/hildon-sections.txt
* hildon/hildon-pannable-area.c
* hildon/hildon-banner.h
* hildon/hildon-banner.c: Documentation updates.

Fixes: MB#4643 (Documentation: hildon_banner_show_information()
memory management)

14 years agoReplaced gtk 2.14 deprecated symbols
Alejandro G. Castro [Fri, 5 Jun 2009 10:21:36 +0000 (12:21 +0200)]
Replaced gtk 2.14 deprecated symbols

* hildon/hildon-calendar-popup.h:
* hildon/hildon-caption.h:
* hildon/hildon-code-dialog.h:
* hildon/hildon-controlbar.h:
* hildon/hildon-date-editor.h:
* hildon/hildon-dialog.h:
* hildon/hildon-get-password-dialog.h:
* hildon/hildon-hvolumebar.h:
* hildon/hildon-login-dialog.h:
* hildon/hildon-note.h:
* hildon/hildon-number-editor.h:
* hildon/hildon-range-editor.h:
* hildon/hildon-seekbar.h:
* hildon/hildon-set-password-dialog.h:
* hildon/hildon-sort-dialog.h:
* hildon/hildon-time-editor.h:
* hildon/hildon-time-picker.h:
* hildon/hildon-volumebar-range.h:
* hildon/hildon-volumebar.h:
* hildon/hildon-vvolumebar.h:
* hildon/hildon-weekday-picker.h:
* hildon/hildon-window.h:
* hildon/hildon-wizard-dialog.h: Replaced the deprecated GTK
macros with the current replacements

Fixes: NB#120941 (HildonWindow using deprecated GTK_CHECK* macros)

14 years agoImprove size of HildonColorButton
Claudio Saavedra [Thu, 4 Jun 2009 15:45:19 +0000 (18:45 +0300)]
Improve size of HildonColorButton

* hildon/hildon-color-button.c (hildon_color_button_init): Use
HILDON_ICON_PIXEL_SIZE_FINGER for the color icon and 80x70 for the button
itself, to make it fit better with Fremantle style.

Fixes: NB#109878 (height and width of focus on color icon is not
consistent with other item in the application tool bar)

14 years agoHildonTouchSelector::optimal_size_request need to manage any extra widget added
Alejandro Piñeiro [Tue, 2 Jun 2009 11:56:44 +0000 (13:56 +0200)]
HildonTouchSelector::optimal_size_request need to manage any extra widget added
internally

* hildon/hildon-touch-selector.c:
(hildon_touch_selector_optimal_size_request): use the current requisition
as the base, in order to include any possible extra widget, like the
hildon entry on HildonTouchSelectorEntry

Fixes: NB#119805 (Merge conflict picker dialogs are too small)

14 years agoPost release version bump
Claudio Saavedra [Fri, 29 May 2009 15:42:46 +0000 (17:42 +0200)]
Post release version bump

14 years agoRelease 2.1.78 2.1.78-1
Claudio Saavedra [Fri, 29 May 2009 15:34:41 +0000 (17:34 +0200)]
Release 2.1.78

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

14 years agoProperly center HildonBanner contents
Claudio Saavedra [Fri, 29 May 2009 13:28:28 +0000 (15:28 +0200)]
Properly center HildonBanner contents

* hildon/hildon-banner-private.h: Add a GtkAlignment to the private
structure.
* hildon/hildon-banner.c (hildon_banner_init): Use a GtkAlignment
to ensure the banner contents are centered, instead of relying on
the expand and fill properties in GtkHBox.
(hildon_banner_ensure_child): Do not expand nor fill the child widget.

Fixes: NB#108265 (Animation banner not properly centered)

14 years agoEnsure to show the scrollbars, if required, on the adjustment::changed signal
Alejandro Piñeiro [Thu, 28 May 2009 15:50:40 +0000 (17:50 +0200)]
Ensure to show the scrollbars, if required, on the adjustment::changed signal
handler

* hildon/hildon-pannable-area.c
(hildon_pannable_area_initial_effect): Remove the initial_effect
management, check initial_hint
(hildon_pannable_are_expose_event): Remove the initial_hint management,
set initial_effect to FALSE
(hildon_pannable_are_refresh): Check if we need to show the scrollbars,
by launching the fade_timeout if the scrollbars state has changed and are
visible
* examples/hildon-pannable-area-initial-hint-example.c
Modified to allow to remove rows too. Add and remove rows one by one

14 years agoDon't close HildonAppMenu if there's an animation actor below it
Alberto Garcia [Thu, 28 May 2009 09:27:18 +0000 (11:27 +0200)]
Don't close HildonAppMenu if there's an animation actor below it

* hildon/hildon-app-menu.c (hildon_app_menu_find_intruder):
Don't close the menu if there's an animation actor below it.

Fixes: NB#117927 (Application menu not usable with animation
actors)

14 years agoDo not focus on clicking the HildonPickerDialog button
Claudio Saavedra [Wed, 27 May 2009 14:59:21 +0000 (17:59 +0300)]
Do not focus on clicking the HildonPickerDialog button

* hildon/hildon-picker-dialog.c (hildon_picker_dialog_init): Unset
"focus-on-click" from the dialog button, to avoid stealing the
focus from the entry.

Fixes: NB#118903 (Account setup wizard: Text in Search field
should be focused when "Region" touch list picker is reopened
again)

14 years agoHide the separator in HildonPickerDialog
Claudio Saavedra [Wed, 27 May 2009 14:16:04 +0000 (17:16 +0300)]
Hide the separator in HildonPickerDialog

* hildon/hildon-picker-dialog.c (hildon_picker_dialog_init),
(prepare_action_area): Completely hide the dialog separator.

14 years agoUse HildonEntry API in HildonTouchSelectorEntry
Claudio Saavedra [Wed, 27 May 2009 14:06:56 +0000 (17:06 +0300)]
Use HildonEntry API in HildonTouchSelectorEntry

* hildon/hildon-touch-selector-entry.c
(hildon_touch_selector_entry_print_func), (entry_on_text_changed),
(hildon_touch_selector_entry_changed): Use HildonEntry text API,
now that the entry is exposed.

14 years agoAvoid unnecessary scaling in HildonTouchSelectorEntry
Claudio Saavedra [Wed, 27 May 2009 11:11:21 +0000 (14:11 +0300)]
Avoid unnecessary scaling in HildonTouchSelectorEntry

* hildon/hildon-touch-selector-entry.c
(hildon_touch_selector_entry_init): Change the entry's size
to HILDON_SIZE_FINGER_HEIGHT, avoiding unnecessary scaling.

14 years agoChange default height for HildonEntry
Claudio Saavedra [Wed, 27 May 2009 10:37:11 +0000 (12:37 +0200)]
Change default height for HildonEntry

* hildon/hildon-entry.c (hildon_entry_class_init): Set the default
height to HILDON_SIZE_AUTO_WIDTH and HILDON_SIZE_FINGER_HEIGHT, to
avoid unnecessary scaling.

14 years agoCreate grab transfer window for HildonAppMenu before mapping
Alberto Garcia [Wed, 27 May 2009 10:37:43 +0000 (12:37 +0200)]
Create grab transfer window for HildonAppMenu before mapping

* hildon/hildon-app-menu.c (hildon_app_menu_map):
Create grab transfer window before calling parent's map function.

Fixes: NB#115988 (hildon_app_menu_popup creates menu with
"crushed" button(s) in the top left corner)

14 years agoCheck if a window is already realized when adding it to a stack
Alberto Garcia [Tue, 26 May 2009 11:10:28 +0000 (13:10 +0200)]
Check if a window is already realized when adding it to a stack

* hildon/hildon-window-stack.c (_hildon_window_stack_do_push):
Check if the window is already realized when pushing it.

14 years agopost release version bump
Claudio Saavedra [Mon, 25 May 2009 18:19:17 +0000 (20:19 +0200)]
post release version bump

14 years agoRelease 2.1.76
Claudio Saavedra [Mon, 25 May 2009 15:38:49 +0000 (17:38 +0200)]
Release 2.1.76

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

14 years agoBackfold debian/changelog
Claudio Saavedra [Tue, 19 May 2009 13:12:58 +0000 (16:12 +0300)]
Backfold debian/changelog

14 years agoDoc updates to HildonAppMenu
Alberto Garcia [Mon, 25 May 2009 17:57:06 +0000 (19:57 +0200)]
Doc updates to HildonAppMenu

* hildon/hildon-app-menu.c: Doc updates.

14 years agoRemove a leftover macro
Claudio Saavedra [Mon, 25 May 2009 17:49:32 +0000 (20:49 +0300)]
Remove a leftover macro

* hildon/hildon-banner.c: Remove leftover macro.

14 years agoReviewed the minimum speed conditions.
Alejandro G. Castro [Mon, 25 May 2009 17:23:20 +0000 (19:23 +0200)]
Reviewed the minimum speed conditions.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_scroll_indicator_fade),
(hildon_pannable_area_button_release_cb): Reviewed vmin
conditions, it could cause problems in the fadeout procedure.

14 years agoAdded a threshold to push the animation if the speed is big (MAX_SPEED_THRESHOLD).
Alejandro G. Castro [Fri, 22 May 2009 09:27:56 +0000 (11:27 +0200)]
Added a threshold to push the animation if the speed is big (MAX_SPEED_THRESHOLD).

* hildon/hildon-pannable-area.c
(hildon_pannable_area_button_release_cb): Added a threshold to
push the animation if the speed is big (MAX_SPEED_THRESHOLD).

14 years agoAdded code to sync the gtk dnd threshold with the panning threshold.
Alejandro G. Castro [Fri, 22 May 2009 09:22:03 +0000 (11:22 +0200)]
Added code to sync the gtk dnd threshold with the panning threshold.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_set_property): Added code to sync the gtk
dnd threshold with the panning threshold.

14 years agoChanged some of the default values.
Alejandro G. Castro [Fri, 22 May 2009 09:19:06 +0000 (11:19 +0200)]
Changed some of the default values.

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_class_init): Changed some of the default
values, now it should be less responsive and more accurate.

14 years agoReplaced the name of the clicked attribute, now it is button_pressed
Alejandro G. Castro [Fri, 22 May 2009 09:09:04 +0000 (11:09 +0200)]
Replaced the name of the clicked attribute, now it is button_pressed

* hildon/hildon-pannable-area.c,
(hildon_pannable_area_init),
(hildon_pannable_area_scroll_indicator_fade),
(hildon_pannable_area_button_press_cb),
(hildon_pannable_axis_scroll),
(hildon_pannable_area_timeout),
(hildon_pannable_area_motion_notify_cb),
(hildon_pannable_area_button_release_cb): Changed the name of the
clicked attribute to button_pressed, it is more clear about its use.