hildon
18 years agominor coding style change
Luc Pionchon [Mon, 17 Apr 2006 09:20:01 +0000 (09:20 +0000)]
minor coding style change

18 years ago* doc/hildon-libs-docs.sgml: added index for new symbols.
Luc Pionchon [Mon, 17 Apr 2006 08:52:08 +0000 (08:52 +0000)]
* doc/hildon-libs-docs.sgml: added index for new symbols.

18 years ago* doc/Makefile.am (version.xml): generates version.xml * doc/hildon-libs-docs.sgml...
Luc Pionchon [Mon, 17 Apr 2006 08:46:07 +0000 (08:46 +0000)]
* doc/Makefile.am (version.xml): generates version.xml * doc/hildon-libs-docs.sgml: added &version; entity, and display the version number in the doc title.

18 years agodon't use debian release number for gtk-doc Since tag...
Luc Pionchon [Mon, 17 Apr 2006 07:40:59 +0000 (07:40 +0000)]
don't use debian release number for gtk-doc Since tag...

18 years agoMinor changes for gtk-doc * hildon-note.c * hildon-weekday-picker.h * hildon-name...
Luc Pionchon [Sun, 16 Apr 2006 23:50:03 +0000 (23:50 +0000)]
Minor changes for gtk-doc * hildon-note.c * hildon-weekday-picker.h * hildon-name-password-dialog.c * hildon-calendar-popup.h * hildon-range-editor.h * hildon-volumebar-range.h * hildon-banner.c * hildon-app.c * hildon-time-editor.c * gtk-infoprint.c * hildon-date-editor.h

18 years ago* hildon-widgets/hildon-time-editor.c (hildon_time_editor_set_show_hours) (hildon_tim...
Luc Pionchon [Sun, 16 Apr 2006 14:54:13 +0000 (14:54 +0000)]
* hildon-widgets/hildon-time-editor.c (hildon_time_editor_set_show_hours) (hildon_time_editor_get_show_hours): added gtk-doc tag 'Since:'

18 years agoupdate
Luc Pionchon [Sun, 16 Apr 2006 14:51:26 +0000 (14:51 +0000)]
update

18 years agoupdated dependency to GTK+
Luc Pionchon [Sat, 15 Apr 2006 16:19:10 +0000 (16:19 +0000)]
updated dependency to GTK+

18 years ago* hildon-widgets/hildon-time-editor.c (hildon_time_editor_entry_keypress): use hildon...
Luc Pionchon [Sat, 15 Apr 2006 16:12:31 +0000 (16:12 +0000)]
* hildon-widgets/hildon-time-editor.c (hildon_time_editor_entry_keypress): use hildon_gtk_widget_set_logical_font, provided by osso-GTK, since 2.6.10-1.osso4, instead of GTK private symbol _gtk_widget_set_logical_font

18 years agoadded "FIXME"
Luc Pionchon [Sat, 15 Apr 2006 16:11:57 +0000 (16:11 +0000)]
added "FIXME"

18 years agoFrom Murray Cummings (M#185 M#283), with slight changes:
Luc Pionchon [Sat, 15 Apr 2006 10:48:38 +0000 (10:48 +0000)]
From Murray Cummings (M#185 M#283), with slight changes:

* configure.ac: Add a --rebuilds option, defaulting to yes, so we
        can disable the regeneration of hildon-libs-enum-types.[h|c], also
        based on the gnome-vfs build.

        * hildon-widgets/Makefile.am: Use glib-mkenums to generate
        hildon-libs-enum-types.[h|c], and build them, based on the
        gnome-vfs build. This adds GTypes for the enums, needed for
        accurate signal registration, needed by bindings.

        * hildon-widgets/hildon-number-editor.h: Rename the error_handler
        default signal handler to range_error, so it has the same name as
        the signal, as expected by bindings.

        * hildon-widgets/hildon-marshalers.list: Change to the now-used
        marshallers.

        * hildon-widgets/hildon-note.h (HildonNodeType): Marked as 'skip'.
        since hildon_note_type_get_type is defined manually and
        glib-mkenums should ignore this enum.

        * hildon-widgets/hildon-app.h (HildonZoomLevel): Likewise.
        * hildon-widgets/hildon-caption.h (HildonCaptionStatus): Likewise.

        Correct the signal registration for:

        * hildon-widgets/hildon-app.c
        (hildon_app_class_init):
        "switch_to",
        "clipboard_copy",
        "clipboard_cut",
        "clipboard_paste"

        * hildon-widgets/hildon-date-editor.c
        (hildon_date_editor_class_init):
        "date_error"

        * hildon-widgets/hildon-find-toolbar.c
        (hildon_find_toolbar_class_init):
        "search",
        "close",
        "invalid_input",
        "history_append signals"

        * hildon-widgets/hildon-grid.c
        (hildon_grid_class_init):
        "popup_context_menu"

        * hildon-widgets/hildon-number-editor.c
        (hildon_number_editor_class_init):
        "range_error".

18 years agoM#90 - Use standard GLib macro names. Based on a patch from Osvaldo Santana <osvaldo...
Luc Pionchon [Thu, 13 Apr 2006 20:21:25 +0000 (20:21 +0000)]
M#90 - Use standard GLib macro names. Based on a patch from Osvaldo Santana <osvaldo.santana@indt.org.br>

Deprecate HILDON_*_TYPE, replace by HILDON_TYPE_*,
        * hildon-widgets/hildon-calendar-popup.h:
        * hildon-widgets/hildon-date-editor.h:
        * hildon-widgets/hildon-range-editor.h:
        * hildon-widgets/hildon-weekday-picker.h:
        * hildon-widgets/hildon-volumebar-range.h:

        Updated macro name,
        * hildon-widgets/hildon-calendar-popup.c:
        * hildon-widgets/hildon-date-editor.c:
        * hildon-widgets/hildon-range-editor.c:
        * hildon-widgets/hildon-volumebar-range.c:
        * hildon-widgets/hildon-weekday-picker.c:

18 years agoreleased and packaged 0.12.9
Luc Pionchon [Thu, 13 Apr 2006 19:25:39 +0000 (19:25 +0000)]
released and packaged 0.12.9

18 years ago2006-04-13 Johan Bilien <johan.bilien@nokia.com>
Johan Bilien [Thu, 13 Apr 2006 12:26:52 +0000 (12:26 +0000)]
2006-04-13 Johan Bilien <johan.bilien@nokia.com>

* hildon-widgets/hildon-code-dialog.c: Fixed L10n logical ids
  for Ok and Cancel buttons.

18 years agoadded /* FIXME */ about mandatory/optional logic (dead code?)
Luc Pionchon [Thu, 13 Apr 2006 11:03:36 +0000 (11:03 +0000)]
added /* FIXME */ about mandatory/optional logic (dead code?)

18 years ago* hildon-widgets/hildon-color-button.c (INNER_BORDER_THICKNESS, COLOR_BUTTON_WIDTH...
Luc Pionchon [Thu, 13 Apr 2006 10:43:40 +0000 (10:43 +0000)]
* hildon-widgets/hildon-color-button.c (INNER_BORDER_THICKNESS, COLOR_BUTTON_WIDTH, COLOR_BUTTON_HEIGHT): updated dimensions.

18 years ago2006-04-13 Luc Pionchon <luc.pionchon@nokia.com>
Luc Pionchon [Thu, 13 Apr 2006 10:26:29 +0000 (10:26 +0000)]
2006-04-13 Luc Pionchon <luc.pionchon@nokia.com>

* hildon-widgets/hildon-time-editor.c
        (convert_to_12h): removed m and s paramters (useless)
        (convert_to_24h): likewise.

18 years agoAutomatic focus movement for HildonTimeEditor (IMP-13)
Luc Pionchon [Thu, 13 Apr 2006 10:11:36 +0000 (10:11 +0000)]
focus movement for HildonTimeEditor (IMP-13)

* hildon-widgets/hildon-time-editor.c
        (hildon_time_editor_init): connect after signal "insert_text"
        (hildon_time_editor_inserted_text): new function.
        On inserted text, if entry has two digits, jumps to the next field.

18 years agoPops up the color selector on 'selecte' hardkey (IMP-15)
Luc Pionchon [Thu, 13 Apr 2006 09:39:39 +0000 (09:39 +0000)]
Pops up the color selector on 'selecte' hardkey (IMP-15)

* hildon-widgets/hildon-color-button.c
        (hildon_color_button_init): connect "key-release-event"
        (hildon_color_button_key_released): new function.
        Pops up the color selector on 'select' hardkey release

18 years agoHildon grid, set items to be focus-and-activate instead of single tap activation...
Luc Pionchon [Thu, 13 Apr 2006 09:20:33 +0000 (09:20 +0000)]
Hildon grid, set items to be focus-and-activate instead of single tap activation (IMP-14)

* hildon-widgets/hildon-grid.c (hildon_grid_button_pressed): do not set focus.
        * hildon-widgets/hildon-grid.c (hildon_grid_button_released): activate selected item.

18 years agoFetch hours/minutes/seconds separators from current locale (IMP-8)
Luc Pionchon [Thu, 13 Apr 2006 08:44:51 +0000 (08:44 +0000)]
Fetch hours/minutes/seconds separators from current locale (IMP-8)

* hildon-widgets/hildon-time-editor.c
        (struct _HildonTimeEditorPrivate): added 'hm_sep_symbol' and 'ms_sep_symbol'
        (hildon_time_editor_init): do not get separator labels from i18n, but from locale
        (hildon_time_editor_finalize): free separator symbols
        (get_time_separators): new function. Get time separators from locale.
        (hildon_time_editor_check_locale): call get_time_separators.

18 years agoRemoved icon for mandatory fields. Note: the logic and API to specify mandatory field...
Luc Pionchon [Thu, 13 Apr 2006 07:58:40 +0000 (07:58 +0000)]
Removed icon for mandatory fields. Note: the logic and API to specify mandatory fields is preserved.

* hildon-widgets/hildon-caption.c (HILDON_CAPTION_MANDATORY_ICON): removed.
        (struct _HildonCaptionPrivate): removed 'mandatory_icon' field.
        (hildon_caption_set_property): case PROP_STATUS, removed related code.
        (hildon_caption_set_label_alignment): removed related code.

18 years ago'configure' update
Luc Pionchon [Wed, 12 Apr 2006 21:04:17 +0000 (21:04 +0000)]
'configure' update

18 years agoupdate
Luc Pionchon [Fri, 7 Apr 2006 18:36:21 +0000 (18:36 +0000)]
update

18 years agoreleased and packaged 0.12.8
Luc Pionchon [Fri, 7 Apr 2006 18:24:26 +0000 (18:24 +0000)]
released and packaged 0.12.8

18 years ago- correct version for gtk-doc "Since" markers - moved implementation comment into...
Luc Pionchon [Fri, 7 Apr 2006 18:22:42 +0000 (18:22 +0000)]
- correct version for gtk-doc "Since" markers - moved implementation comment into function

18 years ago* hildon-widgets/hildon-banner.c: added gtk-doc Since markers.
Luc Pionchon [Fri, 7 Apr 2006 18:10:14 +0000 (18:10 +0000)]
* hildon-widgets/hildon-banner.c: added gtk-doc Since markers.

18 years agoupdate
Luc Pionchon [Fri, 7 Apr 2006 18:08:03 +0000 (18:08 +0000)]
update

18 years ago2006-04-07 Tomas Junnonen <tomas.junnonen@nokia.com>
Luc Pionchon [Fri, 7 Apr 2006 18:05:07 +0000 (18:05 +0000)]
2006-04-07 Tomas Junnonen <tomas.junnonen@nokia.com>

- Added support for Pango markup
          Added   hildon_banner_show_information_with_markup
        - Removed hildon_banner_show_confirmation
        - Re-position the banner when its content changes
        - Banner now doesn't truncate strings nor insert linebreaks
        - fixes N#24339 - Information banners do not resize

        * hildon-widgets/hildon-banner.[ch]
        (hildon_banner_show_information_with_markup): new function. Adds
        pango markup support for information banners.

        (hildon_banner_show_confirmation): removed. 'confirmation' was
        used only for the taask navigator (at most). It should use
        _show_information_with_markup with appropriate markup.

        (hildon_banner_set_markup): new function.

        (hildon_banner_check_position): new function. Factor code from
        hildon_banner_realize(), and update position calculation.

        (struct _HildonBannerPrivate): removed max_lines.
        Uses as much lines as needed.

        (hildon_banner_init): set banner label to wrap lines.

        (hildon_banner_set_text): do not truncate. Update banner's position.

        (hildon_banner_set_markup): new function.
                                    Set banner's text with Pango markup.

        (_hildon_gtk_label_set_text_n_lines): marked as deprecated.

        * hildon-widgets/gtk-infoprint.c
        (gtk_confirmation_banner): use hildon_banner_show_information
        instead of _show_confirmation.
        (gtk_confirmation_banner_with_icon_name): likewise.

18 years ago* hildon-widgets/hildon-color-button.c (hildon_color_field_expose_event): correct...
Luc Pionchon [Fri, 7 Apr 2006 14:00:09 +0000 (14:00 +0000)]
* hildon-widgets/hildon-color-button.c (hildon_color_field_expose_event): correct parameter order.

18 years ago2006-04-07 Johan Bilien <johan.bilien@nokia.com>
Johan Bilien [Fri, 7 Apr 2006 11:46:21 +0000 (11:46 +0000)]
2006-04-07 Johan Bilien <johan.bilien@nokia.com>

* hildon-widgets/hildon-window.c:
  - Fixed a potential infinite loop when detaching the menus
    from the window widget (Closes N#26033)

18 years ago2006-04-06 Johan Bilien <johan.bilien@nokia.com>
Johan Bilien [Thu, 6 Apr 2006 14:09:53 +0000 (14:09 +0000)]
2006-04-06 Johan Bilien <johan.bilien@nokia.com>

* hildon-widgets/hildon-window.c:
  - Fixed a bug that made window fullscreen state tracking fail
  - Apply correct theming to menus so that they get placed
    correctly (Fixes N#24325)
  - Redraw the window borders if the size of the toolbar vbox changes
  - Reset the program to NULL in hildon_window_destroy
  - Stop the ESC key-press timeout when the window loses the focus
  - Small cleanups
* hildon-widgets/hildon-program.c:
  - Reset the common toolbar to NULL when the program is finalised

18 years ago* hildon-widgets/hildon-get-password-dialog.h, hildon-widgets/hildon-get-password...
Marius Vollmer [Tue, 4 Apr 2006 06:49:12 +0000 (06:49 +0000)]
* hildon-widgets/hildon-get-password-dialog.h, hildon-widgets/hildon-get-password-dialog.c (hildon_get_password_dialog_new, hildon_get_password_dialog_new_with_default): Renamed get_old_password_title parameter to "get_old" to correspond with the property name. This helps the C++ bindings. * ut/hildon-widgets_tests.c (test43, test44): New.

18 years agogit-svn-id: https://stage.maemo.org/svn/maemo/projects/haf/trunk/hildon-libs@3307...
Marius Vollmer [Mon, 3 Apr 2006 14:33:06 +0000 (14:33 +0000)]
git-svn-id: https://stage.maemo.org/svn/maemo/projects/haf/trunk/hildon-libs@3307 50eb543b-83fa-0310-9bb7-f7cbbee4ab39

18 years agoFrom Murray Cumming.
Marius Vollmer [Mon, 3 Apr 2006 14:32:49 +0000 (14:32 +0000)]
From Murray Cumming.

* hildon-lgpl/hildon-caption.c:
(hildon_caption_init): Do the hildon_caption_set_child_expand()
here.
(hildon_caption_new): Use the child property from GtkContainer
instead of calling gtk_container_add(), because _new() functions
should just use g_object_new(), so that language-bindings can do
the same.

* ut/hildon-widgets_tests.c: Added test42 for hildon_caption_new.

18 years ago* ut/hildon-widgets_tests.c: Disabled unimplemented testcases: test20a, test20b,...
Marius Vollmer [Mon, 3 Apr 2006 14:25:57 +0000 (14:25 +0000)]
* ut/hildon-widgets_tests.c: Disabled unimplemented testcases: test20a, test20b, test20c, test20d, test36a, test36b, test36c, test36d.

18 years agoFix typo in debian/changelog
Natalia Dobrovolskaya [Fri, 31 Mar 2006 11:43:08 +0000 (11:43 +0000)]
Fix typo in debian/changelog

18 years agoCommit config.*
Natalia Dobrovolskaya [Fri, 31 Mar 2006 11:32:52 +0000 (11:32 +0000)]
Commit config.*

18 years agodebian/control: removed -l10n-english dependency (does not exist (yet))
Natalia Dobrovolskaya [Fri, 31 Mar 2006 11:30:20 +0000 (11:30 +0000)]
debian/control: removed -l10n-english dependency (does not exist (yet))

18 years agoreleased and packaged 0.12.7
Luc Pionchon [Thu, 30 Mar 2006 17:02:49 +0000 (17:02 +0000)]
released and packaged 0.12.7

18 years agoupdate
Luc Pionchon [Wed, 29 Mar 2006 15:18:20 +0000 (15:18 +0000)]
update

18 years agoFixes N#20917 * hildon-widgets/hildon-font-selection-dialog.c (REFERENCE_LINE): remov...
Luc Pionchon [Wed, 29 Mar 2006 15:16:43 +0000 (15:16 +0000)]
Fixes N#20917 * hildon-widgets/hildon-font-selection-dialog.c (REFERENCE_LINE): removed (hildon_font_selection_dialog_show_preview): added l10n support for the reference string (use to differentiate sub/super script in font preview) (hildon_font_selection_dialog_show_preview): likewise

18 years ago* po/en_GB.po: update
Luc Pionchon [Tue, 28 Mar 2006 16:11:39 +0000 (16:11 +0000)]
* po/en_GB.po: update

18 years ago* debian/control (Depends): changed l10n dependency according to the new process...
Luc Pionchon [Tue, 28 Mar 2006 16:03:58 +0000 (16:03 +0000)]
* debian/control (Depends): changed l10n dependency according to the new process (marketing releases 'mr')

18 years ago* hildon-widgets/hildon-add-home-dialog.c (hildon_add_home_dialog_init): removed...
Luc Pionchon [Tue, 28 Mar 2006 09:59:49 +0000 (09:59 +0000)]
* hildon-widgets/hildon-add-home-dialog.c (hildon_add_home_dialog_init): removed i18n support (deprecated widget. Hinder logical ID processing) (hildon_add_home_dialog_new): likewise.

* hildon-widgets/hildon-insert-object-dialog.c
        (hildon_insert_object_dialog_init): likewise.

18 years ago2006-03-27 Johan Bilien <johan.bilien@nokia.com>
Johan Bilien [Mon, 27 Mar 2006 07:25:43 +0000 (07:25 +0000)]
2006-03-27 Johan Bilien <johan.bilien@nokia.com>

* hildon-widgets/hildon-window.[ch]:
  - update the title when the window is realized
  - added support for long press on the ESC key. Fixes N#24620

18 years ago* hildon-widgets/hildon-time-editor.h: indent, improve readability.
Luc Pionchon [Sun, 26 Mar 2006 00:18:35 +0000 (00:18 +0000)]
* hildon-widgets/hildon-time-editor.h: indent, improve readability.

18 years ago* hildon-widgets/hildon-seekbar.c (hildon_seekbar_button_press_event): use if stateme...
Luc Pionchon [Sat, 25 Mar 2006 23:58:42 +0000 (23:58 +0000)]
* hildon-widgets/hildon-seekbar.c (hildon_seekbar_button_press_event): use if statement instead of 's?a:b'

18 years agoadded note to explain what this file is
Luc Pionchon [Sat, 25 Mar 2006 18:53:54 +0000 (18:53 +0000)]
added note to explain what this file is

18 years agoreleased and packaged 0.12.6
Luc Pionchon [Fri, 24 Mar 2006 10:01:15 +0000 (10:01 +0000)]
released and packaged 0.12.6

18 years ago* hildon-widgets/hildon-defines.h (HILDON_HARDKEY_LEFT): fixed typo GKD_Left -> GDK_Left
Luc Pionchon [Thu, 23 Mar 2006 18:14:54 +0000 (18:14 +0000)]
* hildon-widgets/hildon-defines.h (HILDON_HARDKEY_LEFT): fixed typo GKD_Left -> GDK_Left

18 years agoFixed i18n issues:
Luc Pionchon [Wed, 22 Mar 2006 16:21:50 +0000 (16:21 +0000)]
Fixed i18n issues:

Updated logical id to lower case: Ckct_ -> ckct_
        * hildon-widgets/hildon-date-editor.c (hildon_date_editor_date_error):
        * hildon-widgets/hildon-number-editor.c (hildon_number_editor_error_handler):
        * hildon-widgets/hildon-range-editor.c (hildon_range_editor_class_init)
        (hildon_range_editor_init, hildon_range_editor_entry_validate)
        (hildon_range_editor_entry_validate):
        * hildon-widgets/hildon-time-editor.c (validated_conversion)
        (validated_conversion, hildon_time_editor_real_validate):
        * hildon-widgets/hildon-grid.c (hildon_grid_class_init)
        (hildon_grid_init):

        Updated logical id to lower case: Ecdg_ -> ecdg_
        * hildon-widgets/hildon-time-editor.c (hildon_time_editor_init):
        * hildon-widgets/hildon-time-picker.c (hildon_time_picker_init):
        * hildon-widgets/hildon-calendar-popup.c (hildon_calendar_popup_init):
        * hildon-widgets/hildon-color-popup.c (hildon_color_popup_new)
        * hildon-widgets/hildon-wizard-dialog.c (hildon_wizard_dialog_init)
        (hildon_wizard_dialog_create_title):
        * hildon-widgets/hildon-find-toolbar.c (hildon_find_toolbar_class_init):
        (hildon_find_toolbar_init):
        * hildon-widgets/hildon-note.c (hildon_note_rebuild)
        (hildon_note_rebuild, hildon_note_set_button_text):

        Removed i18n support for property description,
        * hildon-widgets/hildon-time-picker.c (hildon_time_picker_class_init):

18 years agoupdate autotools generated files...
Luc Pionchon [Tue, 21 Mar 2006 17:03:36 +0000 (17:03 +0000)]
update autotools generated files...

18 years agoreleased and packaged 0.12.5-1
Luc Pionchon [Tue, 21 Mar 2006 17:02:58 +0000 (17:02 +0000)]
released and packaged 0.12.5-1

18 years agocleanup ChangeLog
Luc Pionchon [Tue, 21 Mar 2006 16:50:49 +0000 (16:50 +0000)]
cleanup ChangeLog

18 years agoMinor documentation fixes.
Tommi Komulainen [Tue, 21 Mar 2006 16:09:08 +0000 (16:09 +0000)]
Minor documentation fixes.

2006-03-21  Tommi Komulainen  <tommi.komulainen@nokia.com>

* doc/hildon-libs-docs.sgml: Move HildonWizardDialog in Dialogs
* hildon-widgets/hildon-caption.c: Fix erroneous gtk-doc comment
blocks, again.

18 years ago2006-03-20 Johan Bilien <johan.bilien@nokia.com>
Johan Bilien [Mon, 20 Mar 2006 17:56:34 +0000 (17:56 +0000)]
2006-03-20 Johan Bilien <johan.bilien@nokia.com>

* hildon-widgets/hildon-grid.c: added missing include hildon-app.h for
  HILDON_IS_APP

18 years ago2006-03-20 Johan Bilien <johan.bilien@nokia.com>
Johan Bilien [Mon, 20 Mar 2006 15:47:33 +0000 (15:47 +0000)]
2006-03-20 Johan Bilien <johan.bilien@nokia.com>

Cleanup wizard dialog
* hildon-widgets/hildon-wizard-dialog.c
  (HildonWizardDialogPrivate?): Removed the previous_button and
  next_button members of the structure (they are no longer needed).
  (hildon_wizard_dialog_response): This new private function handles the
  'response' signal and replaces the funtion direction_button_clicked()
  in taking care of notebook page changes and button dimming. Much of the
  old code in direction_button_clicked() was rewritten and simplified.
  (hildon_wizard_dialog_init): 'previous' and 'next' buttons are now added
  to the dialog as response buttons. This enables the
  usage of GtkDialog? API for setting their sensitiveness
  (dimming/undimming). Connected hildon_wizard_dialog_response to
  "resonse" signal. Removed useless title creation because it depends
  on the notebook which is not yet created.
  (hildon_wizard_dialog_set_property): Minor indentation and comments
  changes.
  (hildon_wizard_dialog_create_title): Removed useless else-if statement.
* hildon-widgets/hildon-wizard-dialog.h
  (hildon_wizard_dialog_get_type): added G_GNUC_CONST at end of declaration

* hildon-widgets/hildon-wizard-dialog.{c,h}: Reverted the patch
  adding the page_change signal, as the application can now
  track the response signal instead.

18 years agoreleased and packaged 0.12.4-1
Luc Pionchon [Fri, 17 Mar 2006 16:58:09 +0000 (16:58 +0000)]
released and packaged 0.12.4-1

18 years agoFIXME: should be moved to hildon-fm (file handling, depends on gnome-vfs) FIXME:...
Luc Pionchon [Thu, 16 Mar 2006 15:30:41 +0000 (15:30 +0000)]
FIXME: should be moved to hildon-fm (file handling, depends on gnome-vfs) FIXME: deprecated widget. Shall not be used anywhere.

18 years agominor doc update
Luc Pionchon [Thu, 16 Mar 2006 15:30:17 +0000 (15:30 +0000)]
minor doc update

18 years ago* doc/tmpl/* * hildon-widgets/* moved widget descriptions to respective source file...
Luc Pionchon [Thu, 16 Mar 2006 15:29:44 +0000 (15:29 +0000)]
* doc/tmpl/* * hildon-widgets/* moved widget descriptions to respective source file (*.c) + minor doc updates

18 years agoCleanup color button
Luc Pionchon [Thu, 16 Mar 2006 15:18:33 +0000 (15:18 +0000)]
Cleanup color button

* hildon-widgets/hildon-color-button.c:
        - removed unused #include
        - removed unused gettext macro

        (COLOR_FIELD_WIDTH) : renamed to COLOR_FILLED_WIDTH
        (COLOR_FIELD_HEIGHT): renamed to COLOR_FILLED_HEIGHT
        + value updated to match specifications

        (struct _HildonColorButtonPrivate):
        removed 'drawing_area' and 'pixbuf' members (unused)

        (hildon_color_button_init):
        use drawing_area directly, update COLOR_FILLED_ macro names

        (hildon_color_button_unrealize): new function.
        (hildon_color_button_class_init): register unrealize function
        (hildon_color_button_finalize): free allocated GC in unrealize
        handler instead of in finalize.

        (hildon_color_button_recolor_pixbuf): removed. (use
        gdk_draw_rectangle() instead)
        (hildon_color_button_draw_pixbuf_borders): likewise

        (hildon_color_field_expose_event): use gdk_draw_rectangle() to
        draw the button
        (hildon_color_button_set_property): queue the drawing - instead of
        calling recolor_pixbuf

        (hildon_color_button_clicked): renamed variable 'csd' to 'cs_dialog'

18 years agoMore cleanup for range editor,
Luc Pionchon [Thu, 16 Mar 2006 15:18:08 +0000 (15:18 +0000)]
More cleanup for range editor,

* hildon-widgets/hildon-range-editor.[ch]
        - removed useless includes
        (hildon_range_editor_new_with_separator): set char parameter 'const'

        * hildon-widgets/hildon-range-editor.c
        - removed useless includes
        - rewritten a lot of functions because code was inefficient.
        - removed useless g_return_if_fail calls from various functions.

        (hildon_range_editor_init): Romoved unneeded casts, added composite names.
        (hildon_range_editor_entry_keypress):  rewritten
        (hildon_range_editor_entry_focus_out): rewritten
        (hildon_range_editor_refresh_widths): New function
        (hildon_range_editor_set_range): Make sure that the values are in
        correct order
        (hildon_range_editor_set_lower):  rewritten.
        (hildon_range_editor_set_higher): rewritten.
        (hildon_range_editor_set_min):    rewritten.
        (hildon_range_editor_set_max):    rewritten.

        (hildon_range_editor_entry_validate): New validator function
        (hildon_range_editor_entry_changed): New signal handler for
        "changed" for entries, this will now validate whenever entry changes.

        (hildon_range_editor_entry_focus_out): Added g_assert for
        editor. Removed call to hildon_range_editor_apply_current_range().
        Added call to the new function hildon_range_editor_entry_validate()
        for validation.

        (hildon_range_editor_init): connected
        hildon_range_editor_entry_changed to "changed" for entries.

18 years agoMajor cleanup for time editor
Luc Pionchon [Thu, 16 Mar 2006 15:17:23 +0000 (15:17 +0000)]
Major cleanup for time editor

* hildon-widgets/hildon-time-editor.c
        - removed unused #includes.
        - Removed useless g_return_if_fail(editor) calls
        (HILDON_IS_TIME_EDITOR does this check as well for us).

        (hildon_time_editor_add_style):         removed, obsolete.
        (hildon_time_editor_mnemonic_activate): removed, obsolete
        (hildon_time_editor_get_max_values):    removed, obsolete.

        (validated_conversion): New helper function

        (hildon_time_editor_entry_changed): New function, now the widget
        interactively validates the inputted contents (not requiring focus
        move).

        (ticks_to_time): rewritten, using less arithmetic operations.
        (hildon_time_editor_validate):          rewritten
        (hildon_time_editor_set_ticks):         rewritten
        (hildon_time_editor_set_duration_mode): rewritten
        (hildon_time_editor_entry_keypress):    rewritten

        * hildon-widgets/hildon-time-editor.[ch]
        (hildon_time_editor_set_show_hours)
        (hildon_time_editor_get_show_hours) new functions to show/hide hours

18 years agoCleanup number editor
Luc Pionchon [Thu, 16 Mar 2006 15:16:45 +0000 (15:16 +0000)]
Cleanup number editor

* hildon-widgets/hildon-number-editor.c:
        (SPACE_BORDER): removed

        (hildon_number_editor_size_request):
        (hildon_number_editor_size_allocate): updated to use hildondefines

        (hildon_number_editor_mnemonic_activate): function removed,
        mnemonic are not used

        (hildon_number_editor_stop_repeat_timer): new function, to avoid
        duplicated code
        (hildon_number_editor_button_release):
        (hildon_number_editor_finalize): updated to use new function

        (hildon_number_editor_entry_keypress): completely rewritten
        (change_numbers): likewise
        (do_mouse_timeout): likewise
        (hildon_number_editor_set_range): likewise

        (hildon_number_editor_validate_value): new function, used for all
        validation
        (hildon_number_editor_focus_out):
        (hildon_number_editor_entry_changed): updated to use previous.

        (hildon_number_editor_real_set_value): new function that formats
        given int to field. Used by change_numbers and set_value

        (integer_to_string): removed, we now have one place that
        converts numbers and that uses buffer from stack.
        (hildon_number_editor_set_value): changed to use new format function.

18 years agomarked a few functions only used from deprecated APIs
Luc Pionchon [Thu, 16 Mar 2006 15:16:17 +0000 (15:16 +0000)]
marked a few functions only used from deprecated APIs

18 years ago* hildon-widgets/hildon-time-picker.c:
Luc Pionchon [Thu, 16 Mar 2006 15:15:00 +0000 (15:15 +0000)]
* hildon-widgets/hildon-time-picker.c:

reorganized how the widgets are stored to reduce code
        (HildonTimePickerWidgetGroup): new struct
        (struct _HildonTimePickerPrivate): added member 'widgets' as an array of HildonTimePickerWidgetGroup
        (hildon_time_picker_init)
        (hildon_time_picker_arrow_press)
        (hildon_time_picker_event_box_key_press)
        (hildon_time_picker_change_time)
        (hildon_time_picker_map)
        (hildon_time_picker_event_box_key_release): use new widget organization

        (hildon_time_picker_init): return value from nl_timeinfo() is
        valid only until it's called again, so g_strdup() the value when
        storing it.

        (MINS_IN_1H, MINS_IN_24H, MINS_IN_12H): defines hardcoded values
        (HILDON_TIME_PICKER_LABEL_X_PADDING)
        (HILDON_TIME_PICKER_LABEL_Y_PADDING): defines hardcoded values
        (hildon_time_picker_set_time):
        (hildon_time_picker_get_time):
        (hildon_time_picker_ampm_release): used the new defines

        (struct _HildonTimePickerPrivate)
        (hildon_time_picker_init)
        (hildon_time_picker_event_box_key_press)
        (hildon_time_picker_change_time):
        - c12h     renamed to show_ampm,
        - ampo_pos renamed to ampm_left.

        (hildon_time_picker_timeout): renamed to
        hildon_time_picker_key_repeat_timeout(),
        and renamed parameter to 'hildon_time_picker'

        (hildon_time_picker_event_box_press): renamed to
        hildon_time_picker_event_box_button_press()

        (hildon_time_picker_finalize): Added finalizer to make sure the
        key repeat timeout handler gets removed.

        (hildon_time_picker_arrow_press): Placed multipliers into
        button_multipliers[] array to avoid multiple if/then/else
        blocks.

18 years agominor doc update
Luc Pionchon [Thu, 16 Mar 2006 15:14:37 +0000 (15:14 +0000)]
minor doc update

18 years agominor doc update
Luc Pionchon [Thu, 16 Mar 2006 15:14:04 +0000 (15:14 +0000)]
minor doc update

18 years agominor doc update
Luc Pionchon [Thu, 16 Mar 2006 15:13:16 +0000 (15:13 +0000)]
minor doc update

18 years ago* hildon-lgpl/hildon-find-toolbar.c (hildon_find_toolbar_filter): calculates correctl...
Luc Pionchon [Thu, 16 Mar 2006 15:12:36 +0000 (15:12 +0000)]
* hildon-lgpl/hildon-find-toolbar.c (hildon_find_toolbar_filter): calculates correctly which items will be visible. Fixes N#16991.

18 years ago/* FIXME: Possible browser hack?? */
Luc Pionchon [Thu, 16 Mar 2006 15:12:13 +0000 (15:12 +0000)]
/* FIXME: Possible browser hack?? */

18 years ago* hildon-widgets/hildon-find-toolbar.c (hildon_find_toolbar_history_append): set...
Luc Pionchon [Thu, 16 Mar 2006 15:11:41 +0000 (15:11 +0000)]
* hildon-widgets/hildon-find-toolbar.c (hildon_find_toolbar_history_append): set "column" property only after model has been set.

18 years ago* hildon-widgets/hildon-app.c (hildon_app_escape_timeout): rename the parameter more...
Luc Pionchon [Thu, 16 Mar 2006 15:11:04 +0000 (15:11 +0000)]
* hildon-widgets/hildon-app.c (hildon_app_escape_timeout): rename the parameter more descriptively

18 years agoCleanup HildonApp,
Luc Pionchon [Thu, 16 Mar 2006 15:10:18 +0000 (15:10 +0000)]
Cleanup HildonApp,

* hildon-widgets/hildon-app-private.h: use G_*_DECLS

        * hildon-widgets/hildon-app.[ch]
        (hildon_zoom_level_get_type): removed G_CONST_RETURN

        * hildon-widgets/hildon-app.c:
        - removed HILDON_DISABLE_DEPRECATED flags
        - added g_assert'ions to internal functions
        - more code comments

        (hildon_app_button): Move the fixed define to the function itself,
        add simple autodetection, clean up comments.

        (hildon_app_key_release): Remove bogus argument to signal emission
        (not needed), emit the "fullscreen_state_change" directly instead
        of calling set_fullscreen.

        (hildon_app_construct_title): removed dead code

        (hildon_app_register_view_with_id): do not call g_slist_nth() to
        get the first element...

18 years ago* hildon-widgets/hildon-appview.c: (hildon_appview_init): indented comments properly...
Luc Pionchon [Thu, 16 Mar 2006 15:09:38 +0000 (15:09 +0000)]
* hildon-widgets/hildon-appview.c: (hildon_appview_init): indented comments properly (paint_toolbar): indented comments properly (hildon_appview_expose): indented code properly (hildon_appview_toolbar_toggle_request): removed dead code

18 years ago* hildon-widgets/hildon-caption.c (hildon_caption_expose): use g_assert instead of...
Luc Pionchon [Thu, 16 Mar 2006 15:09:13 +0000 (15:09 +0000)]
* hildon-widgets/hildon-caption.c (hildon_caption_expose): use g_assert instead of g_return_val_if_fail (hildon_caption_size_allocate): likewise. (hildon_caption_forall): likewise.

18 years agoCleanup Find toolbar,
Luc Pionchon [Thu, 16 Mar 2006 15:08:40 +0000 (15:08 +0000)]
Cleanup Find toolbar,

* hildon-widgets/hildon-find-toolbar.[ch]
        (hildon_find_toolbar_new): set 'label' parameter const.
        (hildon_find_toolbar_new_with_model): likewise.

        * hildon-widgets/hildon-find-toolbar.c
        (struct _HildonFindToolbarPrivate):
          changed entry_combo_box type to GtkComboBoxEntry*

        (hildon_find_toolbar_get_list_model): new function, to factor
        member access and casting
        (hildon_find_toolbar_get_entry): likewise.
        (hildon_find_toolbar_apply_filter): removed set_column parameter
        since it was used by only one caller, and made the caller do it
        instead. Removed unnecessary casts.

        (hildon_find_toolbar_find_string): new function.
        (hildon_find_toolbar_history_append): code cleanup. use
        hildon_find_toolbar_find_string.

        (hildon_find_toolbar_get_property)
        (hildon_find_toolbar_get_entry)
        (hildon_find_toolbar_init)
        (hildon_find_toolbar_new)
        (hildon_find_toolbar_new_with_model)
        (hildon_find_toolbar_highlight_entry): Removed unnecessary casts
        and changed some of them to use the new convenience functions
        instead.

        (hildon_find_toolbar_highlight_entry): use g_return_if_fail()
        instead of if-check to validate parameter.

18 years agoCleanup hildon-defines,
Luc Pionchon [Thu, 16 Mar 2006 15:07:30 +0000 (15:07 +0000)]
Cleanup hildon-defines,

* hildon-widgets/hildon-defines.c (hildon_icon_sizes_init)
        (hildon_change_style_recursive_from_ld): use G_GNUC_EXTENSION macro instead of #ifdef

        (hildon_logical_data_free): new function. Free logical data.
        (hildon_gtk_widget_set_logical_font): store logicalfontstring g_strdup()ed.
        (hildon_gtk_widget_set_logical_color): store logicalcolorstring g_strdup()ed.

        * hildon-widgets/hildon-defines.[ch]
        (hildon_gtk_widget_set_logical_font): use const gchar*
        (hildon_gtk_widget_set_logical_color): likewise.

        * hildon-widgets/hildon-defines.c:
        (hildoniconsizes): set const
        (hildoninternaliconsizes): set static, renamed 'iis'

18 years agoCleanup Caption widget,
Luc Pionchon [Thu, 16 Mar 2006 15:06:53 +0000 (15:06 +0000)]
Cleanup Caption widget,

* hildon-lgpl/hildon-caption.[ch]
        (hildon_caption_status_get_type, hildon_caption_get_type):
        G_CONST_RETURN removed, G_GNUC_CONST added

        * hildon-widgets/hildon-caption.c

        (struct _HildonCaptionPrivate): removed 'activate_block' member; not used anymore.

        (hildon_caption_set_property): removed useless code.
        (hildon_caption_button_press): simplified greatly by removing the
        unnecessary recursion to locate the first focusable child of a
        container - simple gtk_widget_grab_focus achieves the same
        (get_first_focusable_child): removed (not used anymore)

        (hildon_caption_set_focus): uses gtk_widget_is_ancestor instead of reinventing it

        (hildon_caption_set_focus_child): removed (not used anymore)
        (hildon_caption_class_init): remove ref to hildon_caption_set_focus_child()

        (hildon_caption_hierarchy_changed): type check added
        (hildon_caption_forall): callback null check added
        (hildon_caption_set_status): type check added
        (hildon_caption_set_icon_image): type check added
        (hildon_caption_activate): activate_block kludge removed as outdated
        (hildon_caption_get_child_expand): argument declared const
        (hildon_caption_set_label_text): g_return_if_fail changed to
        g_assert since this is not a public function;
        Duplicate separator check now uses correct localized separator
        instead of assuming ':'

18 years agoCleanup AppView,
Luc Pionchon [Thu, 16 Mar 2006 15:03:53 +0000 (15:03 +0000)]
Cleanup AppView,

* hildon-lgpl/hildon-appview-c:
        (hildon_app_view_init): Fixed a problem that prevented to set an
        arbitrary value for TOOLBAR_MIDDLE (the distance, in pixel,
        between toolbars). This fix involves a change in the default gtkrc
        file, ie. the modification of the 'border' value of the
        "toolbar-frame-middle" image in the osso-appview-background style.

        (hildon_appview_add_with_scrollbar): pack in a scrolled window all
        widget supporting adjustements, not only viewports.

        (visible_toolbar): use proper parameter names
        (find_findtoolbar_index): likewise.
        (find_findtoolbar): likewise.

        (find_findtoolbar): use g_assert for internal functions instead of g_return_if_fail
        (hildon_appview_finalize): likewise.
        (hildon_appview_signal_marshal): likewise.
        (hildon_appview_forall): likewise.
        (hildon_appview_switched_to): likewise.
        (hildon_appview_real_fullscreen_state_change): likewise.

18 years ago* hildon-widgets/hildon-date-editor.c (hildon_date_editor_entry_validate): Now, if...
Luc Pionchon [Thu, 16 Mar 2006 15:03:18 +0000 (15:03 +0000)]
* hildon-widgets/hildon-date-editor.c (hildon_date_editor_entry_validate): Now, if an invalid date is entered, date-editor reverts to previous date, instead of setting the maximum allowed days.

18 years ago* hildon-widgets/hildon-date-editor.h (enum HildonDateEditorErrorType): added NO_ERRO...
Luc Pionchon [Thu, 16 Mar 2006 15:02:48 +0000 (15:02 +0000)]
* hildon-widgets/hildon-date-editor.h (enum HildonDateEditorErrorType): added NO_ERROR entry.

* hildon-widgets/hildon-date-editor.c
        (hildon_date_editor_entry_validate): initialize error_code to NO_ERROR.
        (hildon_date_editor_entry_validate): check error_code against NO_ERROR

18 years ago* hildon-widgets/hildon-get-password-dialog.c: (hildon_get_password_dialog_set_title...
Luc Pionchon [Thu, 16 Mar 2006 15:02:14 +0000 (15:02 +0000)]
* hildon-widgets/hildon-get-password-dialog.c: (hildon_get_password_dialog_set_title): Removed the deprecation #ifdefs from the .c file.

* hildon-widgets/hildon-file-handling-note.c: likewise.

18 years ago* hildon-widgets/hildon-color-selector.c: Removed unused defines.
Luc Pionchon [Thu, 16 Mar 2006 15:01:49 +0000 (15:01 +0000)]
* hildon-widgets/hildon-color-selector.c: Removed unused defines.

* hildon-widgets/hildon-color-selector.c
        (struct _HildonColorSelectorPriv): split 'index' into 'selected_index' and 'focus_index'
        (hildon_color_selector_expose)
        (hildon_color_selector_get_color)
        (hildon_color_selector_set_color)
        (key_pressed)
        (select_color)
        (modify_focused): Separate selected color and focused color.
        Focused color now draws a different colored border around it.
        Renamed modify_selected() to modify_focused().

        * hildon-widgets/hildon-color-selector.c
        (hildon_color_selector_expose)
        (select_color): Changed the logic in how the box positions are
        calculated. The old logic was wrong, but just happened to work
        with those specific values.

        * hildon-widgets/hildon-color-selector.c
        (hildon_color_selector_expose): Draw the selected-border using
        ImageBorderColor color instead of hardcoded black.

18 years ago#include <stdlib.h> (malloc, free) prevents compilation warnings
Luc Pionchon [Thu, 16 Mar 2006 15:01:11 +0000 (15:01 +0000)]
#include <stdlib.h> (malloc, free) prevents compilation warnings

18 years ago* hildon-widgets/hildon-color-popup.c (hildon_color_popup_new): removed current_color...
Luc Pionchon [Thu, 16 Mar 2006 15:00:37 +0000 (15:00 +0000)]
* hildon-widgets/hildon-color-popup.c (hildon_color_popup_new): removed current_color; use initial_color directly. Disabled select-hardkey from activating to OK-button by default.

18 years agoconfigure files update
Luc Pionchon [Thu, 16 Mar 2006 15:00:04 +0000 (15:00 +0000)]
configure files update

18 years ago* hildon-widgets/hildon-date-editor.c (hildon_date_editor_keypress): removed the...
Luc Pionchon [Thu, 16 Mar 2006 14:54:30 +0000 (14:54 +0000)]
* hildon-widgets/hildon-date-editor.c (hildon_date_editor_keypress): removed the unnecessary check for the position of the cursor in the text-field which was hindering the Left key from working as expected.

18 years ago* hildon-widgets/hildon-date-editor.c: connect 'toggled' signal after setting the...
Luc Pionchon [Thu, 16 Mar 2006 14:53:55 +0000 (14:53 +0000)]
* hildon-widgets/hildon-date-editor.c: connect 'toggled' signal after setting the toggle_button active. Prevents GLIB_CRITICALs.

ooops, here come the changeset. (previous changeset was minor change)

18 years ago* hildon-widgets/hildon-date-editor.c: connect 'toggled' signal after setting the...
Luc Pionchon [Thu, 16 Mar 2006 14:49:28 +0000 (14:49 +0000)]
* hildon-widgets/hildon-date-editor.c: connect 'toggled' signal after setting the toggle_button active. Prevents GLIB_CRITICALs.

18 years ago* hildon-widgets/hildon-dialoghelp.c: minor cleanups
Luc Pionchon [Thu, 16 Mar 2006 14:48:37 +0000 (14:48 +0000)]
* hildon-widgets/hildon-dialoghelp.c: minor cleanups

18 years ago* hildon-widgets/hildon-font-selection-dialog.c (hildon_font_selection_dialog_show_pr...
Luc Pionchon [Thu, 16 Mar 2006 14:46:19 +0000 (14:46 +0000)]
* hildon-widgets/hildon-font-selection-dialog.c (hildon_font_selection_dialog_show_preview): set line wrap for preview label.

18 years ago* hildon-widgets/hildon-date-editor.c (hildon_child_forall): cast 'container' (hildon...
Luc Pionchon [Thu, 16 Mar 2006 14:44:58 +0000 (14:44 +0000)]
* hildon-widgets/hildon-date-editor.c (hildon_child_forall): cast 'container' (hildon_date_editor_size_allocate): adjusted height allocation.

18 years agoCleanup calendar popup,
Luc Pionchon [Thu, 16 Mar 2006 14:44:26 +0000 (14:44 +0000)]
Cleanup calendar popup,

* hildon-widgets/hildon-calendar-popup.c:
        - updated 'longdesc' comment.
        - removed gtk-infoprint.h from included headers (unused).

        (struct HildonCalendarPopupPrivate): removed member
        'can_exit' (useless).
        (hildon_calendar_day_selected): removed (useless).
        (hildon_calendar_allow_exit): likewise.
        (hildon_calendar_deny_exit): likewise.

        (hildon_calendar_selected_date): new function. replaces
        hildon_calendar_allow_exit()

        (hildon_calendar_popup_init):
        - Removed initialization for 'can_exit'.
        - Removed connection to removed useless functions.
        - Connect "selected_date" to hildon_calendar_selected_date().
        - Do not grab the focus (useless)

        (hildon_key_pressed): just handle ESC and Return keys.

        (hildon_calendar_popup_get_property): removed unused variables.

18 years ago* hildon-widgets/hildon-color-selector.c (key_pressed): use g_assert instead of g_ret...
Luc Pionchon [Thu, 16 Mar 2006 14:43:01 +0000 (14:43 +0000)]
* hildon-widgets/hildon-color-selector.c (key_pressed): use g_assert instead of g_return_val_if_fail

+ indent changes

18 years ago* hildon-widgets/hildon-get-password-dialog.[ch]: (hildon_get_password_dialog_set_tit...
Luc Pionchon [Thu, 16 Mar 2006 14:42:27 +0000 (14:42 +0000)]
* hildon-widgets/hildon-get-password-dialog.[ch]: (hildon_get_password_dialog_set_title) marked deprecated.

+ cleanup header coding style

18 years agoCleanup font selection dialog
Luc Pionchon [Thu, 16 Mar 2006 14:42:00 +0000 (14:42 +0000)]
Cleanup font selection dialog

* hildon-widgets/hildon-font-selection-dialog.c

        (hildon_font_selection_dialog_construct_notebook): removed dummy
        label

        (color_modified_cb): renamed argument 'data' to 'fsd_priv'

        (hildon_font_selection_dialog_preview_key_press): Renamed argument
        'data' to 'unused'. Replaced g_return_val_if_fail with g_assert.

        (toggle_clicked): renamed argument 'data' to 'unused'

        (hildon_font_selection_dialog_set_preview_text): added proper
        argument checking

18 years agoadded a few FIXMEs
Luc Pionchon [Thu, 16 Mar 2006 14:41:19 +0000 (14:41 +0000)]
added a few FIXMEs