check if ancestor widget still exists in set-focus handler
[hildon] / ChangeLog
1 2006-04-27 Tapani Palli <tapani.palli@nokia.com>
2
3         * hildon-widgets/hildon-caption.c : check if ancestor
4         (still) exists in set-focus handler, fixes N#25501
5
6 2006-04-27  Luc Pionchon  <luc.pionchon@nokia.com>
7
8         * hildon-widgets/hildon-time-editor.c
9         (hildon_time_editor_check_locale): do not force lower case for
10         AM/PM symbols. Use the string as it is given by the locale. Makes
11         it coherent with hildon time picker. Fixes N#27963
12
13
14 2006-04-26  Luc Pionchon  <luc.pionchon@nokia.com>
15
16         * hildon-widgets/hildon-set-password-dialog.c
17         (c_): new macro, calls dgettext on "hildon-common-strings" domain.
18         (hildon_set_password_response_set): use c_ for common strings
19         (hildon_set_password_response_change): likewise.
20         Fixes N#27749
21
22         * hildon-widgets/hildon-set-password-dialog.h: indent cleanup
23
24
25 2006-04-26  Luc Pionchon  <luc.pionchon@nokia.com>
26
27         * hildon-widgets/hildon-file-handling-note.c (gettext macro): use
28         "hildon-fm" as textual domain. Fixes N#27702
29
30 2006-04-26  Luc Pionchon  <luc.pionchon@nokia.com>
31
32         * configure.ac: 0.12.12
33
34         * Makefile.am (clean-all): brutal target to cleanup the
35         folder. Will do this properly later.
36
37 2006-04-25  Luc Pionchon  <luc.pionchon@nokia.com>
38
39         * doc/Makefile.am: use "-include" for gtk-doc.make (ignore
40         included Makefile if missing).
41
42         * configure.ac: temporarily disable GTK_DOC_CHECK (problem in
43         integration environement)
44
45         * configure.ac: print configuration summary after processing
46
47 2006-04-24  Marius Vollmer  <marius.vollmer@nokia.com>
48
49         From Murray Cumming  <murrayc@murrayc.com>, M#183.
50
51         * hildon-widgets/hildon-calendar-popup.c:
52         (hildon_calendar_popup_new): Use only g_object_new(), passing 
53         it properties, so that language bindings can do the same.
54         (hildon_calendar_popup_set_date): Veryify the date here, 
55         instead of only in the _new() function.
56         (hildon_calendar_popup_set_property): Use get/set_date() to 
57         verify the new date and to select it.
58         (hildon_calendar_popup_get_property): Remove unused variables.
59         * ut/hildon-widgets_tests.c (test45): New.
60
61         * hildon-widgets/hildon-add-home-dialog.c:
62         (hildon_add_home_dialog_new): Move code into
63         hildon_add_home_dialog_init(),
64         hildon_add_home_dialog_set_old_name(), and
65         hildon_add_home_dialog_set_new_name().  Supply parameters as
66         properties values to g_object_new() instead, so that language
67         bindings can do the same.
68         (hildon_add_home_dialog_class_init): Added name and new_name
69         properties.
70         (hildon_add_home_dialog_init): Create always-needed widgets.
71         (hildon_add_home_dialog_get_property),
72         (hildon_add_home_dialog_set_property): Get/Set the name and
73         new_name properties, recreating widgets if necessary, using new
74         static helper function.
75         * ut/hildon-widgets_tests.c (test46): New.
76
77         * hildon-widgets/hildon-grid-item.c
78         (hildon_grid_item_set_property), (hildon_grid_item_get_property),
79         (hildon_grid_item_class_init): Add icon-basename property.
80         (hildon_grid_item_new, hildon_grid_item_new_with_label): Move code
81         from here to hildon_grid_item_init(), so we can just call
82         g_object_new().
83         (hildon_grid_item_set_label): Convert NULL label to empty string.
84         Bug fix: don't cast the label widget to a string and compare it
85         against the new label text, use gtk_label_get_label instead.
86         Expect priv->label to always be non-NULL.
87         (update_icon): Don't pass NULL icon name to
88         gtk_icon_theme_load_icon, use default icon instead in that case.
89         * hildon-widgets/hildon-grid-item.h: Make
90         _hildon_grid_item_set_label into public
91         hildon_grid_item_set_label(), so that language bindings can use
92         it.
93         * ut/hildon-widgets_tests.c (VALID_ICON): Use existing icon.
94         (test33a2, test33b4, test33b4): Expect them to succeed now that a
95         HildonGridItem can handle NULL icons.
96         
97 2006-04-21  Luc Pionchon  <luc.pionchon@nokia.com>
98
99         * configure.ac: 0.12.11
100
101
102 2006-04-19 Tapani Palli <tapani.palli@nokia.com>
103
104         * thread safety (N#24348), fixed timeout and idle callbacks :
105         hildon-widgets/hildon-window.c : hildon_window_escape_timeout()
106         hildon-widgets/hildon-time-picker.c : hildon_time_picker_key_repeat_timeout()
107         hildon-widgets/hildon-number-editor.c : do_mouse_timeout(),hildon_number_editor_select_all()
108         hildon-widgets/hildon-banner.c : hildon_banner_timeout()
109         hildon-widgets/hildon-app.c : hildon_app_escape_timeout()
110         hildon-widgets/hildon-time-editor.c : highlight_callback()
111         hildon-widgets/hildon-date-editor.c : _hildon_date_editor_entry_select_all()
112
113 2006-04-19 Tapani Palli <tapani.palli@nokia.com>
114
115         * hildon-widgets/hildon-app.c (hildon_app_key_release): send
116         correct state for fullscreen, fixes N#26611
117
118 2006-04-19  Johan Bilien  <johan.bilien@nokia.com>
119
120         N#22909 
121         * hildon-widgets/hildon-window.c:
122           - hildon_window_toggle_menu now returns whether or not something was
123             done
124           - hildon_window_key_press_event(): when handling the menu hard key,
125             return TRUE if we actually handled it
126         * hildon-widgets/hildon-appview.c: _hildon_appview_toggle_menu()
127           now returns if something was done
128         * hildon-widgets/hildon-app.c: hildon_app_key_snooper(): return TRUE
129           if we actually handled the menu hard key.
130
131 2006-04-19  Johan Bilien  <johan.bilien@nokia.com>
132
133         * hildon-widgets/hildon-window.c: Fixed a bug in child size allocation
134           in fullscreen.
135
136 2006-04-19  Luc Pionchon  <luc.pionchon@nokia.com>
137
138         * configure.ac: 0.12.10
139
140
141 2006-04-17  Luc Pionchon  <luc.pionchon@nokia.com>
142
143         * doc/hildon-libs-docs.sgml: added index for new symbols.
144
145         
146 2006-04-17  Luc Pionchon  <luc.pionchon@nokia.com>
147
148         * doc/Makefile.am (version.xml): generates version.xml
149         * doc/hildon-libs-docs.sgml: added &version; entity, and display
150         the version number in the doc title.
151         
152
153 2006-04-17  Luc Pionchon  <luc.pionchon@nokia.com>
154
155         Minor changes for gtk-doc
156         * hildon-note.c
157         * hildon-weekday-picker.h
158         * hildon-name-password-dialog.c
159         * hildon-calendar-popup.h
160         * hildon-range-editor.h
161         * hildon-volumebar-range.h
162         * hildon-banner.c
163         * hildon-app.c
164         * hildon-time-editor.c
165         * gtk-infoprint.c
166         * hildon-date-editor.h
167
168
169 2006-04-16  Luc Pionchon  <luc.pionchon@nokia.com>
170
171         * hildon-widgets/hildon-time-editor.c
172         (hildon_time_editor_set_show_hours) 
173         (hildon_time_editor_get_show_hours): added gtk-doc tag 'Since:'
174
175
176 2006-04-15  Luc Pionchon  <luc.pionchon@nokia.com>
177
178         N#22557
179         * hildon-widgets/hildon-time-editor.c
180         (hildon_time_editor_entry_keypress): use
181         hildon_gtk_button_set_depressed, provided by osso-GTK, since
182         2.6.10-1.osso4, instead of GTK private symbol
183         _gtk_button_set_depressed
184
185
186 2006-04-15  Marius Vollmer  <marius.vollmer@nokia.com>
187
188         From Murray Cummings (M#185 M#283), with slight changes:
189
190         * configure.ac: Add a --rebuilds option, defaulting to yes, so we
191         can disable the regeneration of hildon-libs-enum-types.[h|c], also
192         based on the gnome-vfs build.
193
194         * hildon-widgets/Makefile.am: Use glib-mkenums to generate
195         hildon-libs-enum-types.[h|c], and build them, based on the
196         gnome-vfs build. This adds GTypes for the enums, needed for
197         accurate signal registration, needed by bindings.
198
199         * hildon-widgets/hildon-number-editor.h: Rename the error_handler
200         default signal handler to range_error, so it has the same name as
201         the signal, as expected by bindings.
202
203         * hildon-widgets/hildon-marshalers.list: Change to the now-used
204         marshallers.
205
206         * hildon-widgets/hildon-note.h (HildonNodeType): Marked as 'skip'.
207         since hildon_note_type_get_type is defined manually and
208         glib-mkenums should ignore this enum.
209
210         * hildon-widgets/hildon-app.h (HildonZoomLevel): Likewise.
211         * hildon-widgets/hildon-caption.h (HildonCaptionStatus): Likewise.
212
213         Correct the signal registration for:
214         
215         * hildon-widgets/hildon-app.c 
216         (hildon_app_class_init):
217         "switch_to",
218         "clipboard_copy",
219         "clipboard_cut",
220         "clipboard_paste"
221
222         * hildon-widgets/hildon-date-editor.c
223         (hildon_date_editor_class_init):
224         "date_error"
225
226         * hildon-widgets/hildon-find-toolbar.c
227         (hildon_find_toolbar_class_init):
228         "search", 
229         "close",
230         "invalid_input", 
231         "history_append signals"
232
233         * hildon-widgets/hildon-grid.c
234         (hildon_grid_class_init):
235         "popup_context_menu"
236
237         * hildon-widgets/hildon-number-editor.c
238         (hildon_number_editor_class_init):
239         "range_error".
240
241
242 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
243
244         M#90 - Use standard GLib macro names.
245         Based on a patch from Osvaldo Santana <osvaldo.santana@indt.org.br>
246
247         Deprecate HILDON_*_TYPE, replace by HILDON_TYPE_*,
248         * hildon-widgets/hildon-calendar-popup.h: 
249         * hildon-widgets/hildon-date-editor.h: 
250         * hildon-widgets/hildon-range-editor.h: 
251         * hildon-widgets/hildon-weekday-picker.h: 
252         * hildon-widgets/hildon-volumebar-range.h: 
253
254         Updated macro name,
255         * hildon-widgets/hildon-calendar-popup.c: 
256         * hildon-widgets/hildon-date-editor.c: 
257         * hildon-widgets/hildon-range-editor.c: 
258         * hildon-widgets/hildon-volumebar-range.c: 
259         * hildon-widgets/hildon-weekday-picker.c:
260
261
262 2006-04-13  Johan Bilien  <johan.bilien@nokia.com>
263
264         * hildon-widgets/hildon-code-dialog.c: Fixed L10n logical ids
265           for Ok and Cancel buttons.
266
267 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
268
269         * configure.ac: 0.12.9
270
271 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
272
273         * hildon-widgets/hildon-color-button.c
274         (INNER_BORDER_THICKNESS, COLOR_BUTTON_WIDTH, COLOR_BUTTON_HEIGHT):
275         updated dimensions.
276
277
278 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
279
280         * hildon-widgets/hildon-time-editor.c
281         (convert_to_12h): removed m and s paramters (useless)
282         (convert_to_24h): likewise.
283
284         
285 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
286
287         Automatic focus movement for HildonTimeEditor (IMP-13)
288
289         * hildon-widgets/hildon-time-editor.c
290         (hildon_time_editor_init): connect after signal "insert_text"
291         (hildon_time_editor_inserted_text): new function.
292         On inserted text, if entry has two digits, jumps to the next field.
293
294
295 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
296
297         Pops up the color selector on 'select' hardkey (IMP-15)
298         
299         * hildon-widgets/hildon-color-button.c
300         (hildon_color_button_init): connect "key-release-event"
301         (hildon_color_button_key_released): new function.
302         Pops up the color selector on 'select' hardkey release
303
304
305 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
306
307         Hildon grid, set items to be focus-and-activate instead of single
308         tap activation (IMP-14) 
309         
310         * hildon-widgets/hildon-grid.c (hildon_grid_button_pressed): do not set focus.
311         * hildon-widgets/hildon-grid.c (hildon_grid_button_released): activate selected item.
312
313
314 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
315
316         Fetch hours/minutes/seconds separators from current locale (IMP-8)
317         N#19061
318
319         * hildon-widgets/hildon-time-editor.c
320         (struct _HildonTimeEditorPrivate): added 'hm_sep_symbol' and 'ms_sep_symbol'
321         (hildon_time_editor_init): do not get separator labels from i18n, but from locale
322         (hildon_time_editor_finalize): free separator symbols
323         (get_time_separators): new function. Get time separators from locale.
324         (hildon_time_editor_check_locale): call get_time_separators.
325
326 2006-04-13  Luc Pionchon  <luc.pionchon@nokia.com>
327
328         Removed icon for mandatory fields (IMP-3).
329         Note: the logic and API to specify mandatory fields is preserved.
330
331         * hildon-widgets/hildon-caption.c (HILDON_CAPTION_MANDATORY_ICON): removed.
332         (struct _HildonCaptionPrivate): removed 'mandatory_icon' field.
333         (hildon_caption_set_property): case PROP_STATUS, removed related code.
334         (hildon_caption_set_label_alignment): removed related code.
335
336
337 2006-04-07  Luc Pionchon  <luc.pionchon@nokia.com>
338
339         * configure.ac: 0.12.8
340
341 2006-04-07  Luc Pionchon  <luc.pionchon@nokia.com>
342
343         * hildon-widgets/hildon-banner.c: added gtk-doc Since markers.
344
345
346 2006-04-07  Tomas Junnonen  <tomas.junnonen@nokia.com>
347
348         - Added support for Pango markup
349           Added   hildon_banner_show_information_with_markup
350         - Removed hildon_banner_show_confirmation
351         - Re-position the banner when its content changes
352         - Banner now doesn't truncate strings nor insert linebreaks
353         - fixes N#24339 - Information banners do not resize
354
355         * hildon-widgets/hildon-banner.[ch]
356         (hildon_banner_show_information_with_markup): new function. Adds
357         pango markup support for information banners.
358         
359         (hildon_banner_show_confirmation): removed. 'confirmation' was
360         used only for the taask navigator (at most). It should use
361         _show_information_with_markup with appropriate markup.
362         
363         (hildon_banner_set_markup): new function. 
364
365         (hildon_banner_check_position): new function. Factor code from
366         hildon_banner_realize(), and update position calculation.
367
368         (struct _HildonBannerPrivate): removed max_lines.
369         Uses as much lines as needed.
370
371         (hildon_banner_init): set banner label to wrap lines.
372         
373         (hildon_banner_set_text): do not truncate. Update banner's position.
374
375         (hildon_banner_set_markup): new function.
376                                     Set banner's text with Pango markup.
377
378         (_hildon_gtk_label_set_text_n_lines): marked as deprecated.
379
380
381         * hildon-widgets/gtk-infoprint.c
382         (gtk_confirmation_banner): use hildon_banner_show_information
383         instead of _show_confirmation.
384         (gtk_confirmation_banner_with_icon_name): likewise.
385
386
387 2006-04-07  Luc Pionchon  <luc.pionchon@nokia.com>
388
389         * hildon-widgets/hildon-color-button.c
390         (hildon_color_field_expose_event): correct parameter order.
391
392
393 2006-04-07  Johan Bilien  <johan.bilien@nokia.com>
394
395         * hildon-widgets/hildon-window.c:
396           - Fixed a potential infinite loop when detaching the menus
397             from the window widget (Closes N#26033)
398
399 2006-04-06  Johan Bilien  <johan.bilien@nokia.com>
400
401         * hildon-widgets/hildon-window.c:
402           - Fixed a bug that made window fullscreen state tracking fail
403           - Apply correct theming to menus so that they get placed
404             correctly (Fixes N#24325)
405           - Redraw the window borders if the size of the toolbar vbox changes
406           - Reset the program to NULL in hildon_window_destroy
407           - Stop the ESC key-press timeout when the window loses the focus
408           - Small cleanups
409         * hildon-widgets/hildon-program.c:
410           - Reset the common toolbar to NULL when the program is finalised
411
412 2006-04-04  Marius Vollmer  <marius.vollmer@nokia.com>
413
414         * hildon-widgets/hildon-get-password-dialog.h,
415         hildon-widgets/hildon-get-password-dialog.c
416         (hildon_get_password_dialog_new,
417         hildon_get_password_dialog_new_with_default): Renamed
418         get_old_password_title parameter to "get_old" to correspond with
419         the property name.  This helps the C++ bindings.
420         * ut/hildon-widgets_tests.c (test43, test44): New.
421
422 2006-04-03  Marius Vollmer  <marius.vollmer@nokia.com>
423
424         * ut/hildon-widgets_tests.c: Disabled unimplemented testcases:
425         test20a, test20b, test20c, test20d, test36a, test36b, test36c,
426         test36d.
427
428         From Murray Cumming.
429         
430         * hildon-lgpl/hildon-caption.c:
431         (hildon_caption_init): Do the hildon_caption_set_child_expand()
432         here.
433         (hildon_caption_new): Use the child property from GtkContainer
434         instead of calling gtk_container_add(), because _new() functions
435         should just use g_object_new(), so that language-bindings can do
436         the same.
437
438         * ut/hildon-widgets_tests.c: Added test42 for hildon_caption_new. 
439
440 2006-03-30  Luc Pionchon  <luc.pionchon@nokia.com>
441
442         * configure.ac: 0.12.7
443
444 2006-03-29  Luc Pionchon  <luc.pionchon@nokia.com>
445
446         Fixes N#20917
447         * hildon-widgets/hildon-font-selection-dialog.c
448         (REFERENCE_LINE): removed
449         (hildon_font_selection_dialog_show_preview): added l10n support
450         for the reference string (use to differentiate sub/super script in
451         font preview)
452         (hildon_font_selection_dialog_show_preview): likewise
453
454
455 2006-03-28  Luc Pionchon  <luc.pionchon@nokia.com>
456
457         * po/en_GB.po: update
458
459 2006-03-28  Luc Pionchon  <luc.pionchon@nokia.com>
460
461         * hildon-widgets/hildon-add-home-dialog.c
462         (hildon_add_home_dialog_init): removed i18n support (deprecated
463         widget. Hinder logical ID processing)
464         (hildon_add_home_dialog_new): likewise.
465
466         * hildon-widgets/hildon-insert-object-dialog.c
467         (hildon_insert_object_dialog_init): likewise.
468
469
470 2006-03-28  Luc Pionchon  <luc.pionchon@nokia.com>
471
472         * hildon-widgets/hildon-font-selection-dialog.c
473         (hildon_font_selection_dialog_construct_notebook): logical ID typo
474         
475
476 2006-03-27  Johan Bilien  <johan.bilien@nokia.com>
477
478         * hildon-widgets/hildon-window.[ch]:
479           - update the title when the window is realized
480           - added support for long press on the ESC key. Fixes N#24620
481
482 2006-03-26  Luc Pionchon  <luc.pionchon@nokia.com>
483
484         * hildon-widgets/hildon-time-editor.h: indent, improve readability.
485
486 2006-03-26  Luc Pionchon  <luc.pionchon@nokia.com>
487
488         * hildon-widgets/hildon-seekbar.c
489         (hildon_seekbar_button_press_event): use if statement instead of 's?a:b'
490
491 2006-03-24  Luc Pionchon  <luc.pionchon@nokia.com>
492
493         * configure.ac: 0.12.6
494
495 2006-03-23  Luc Pionchon  <luc.pionchon@nokia.com>
496
497         * hildon-widgets/hildon-defines.h (HILDON_HARDKEY_LEFT):
498         fixed typo GKD_Left -> GDK_Left, N#24042
499
500
501 2006-03-22  Luc Pionchon  <luc.pionchon@nokia.com>
502
503
504         Fixed i18n issues:
505
506
507         Updated logical id to lower case: Ckct_ -> ckct_
508         * hildon-widgets/hildon-date-editor.c (hildon_date_editor_date_error): 
509         * hildon-widgets/hildon-number-editor.c (hildon_number_editor_error_handler): 
510         * hildon-widgets/hildon-range-editor.c (hildon_range_editor_class_init) 
511         (hildon_range_editor_init, hildon_range_editor_entry_validate) 
512         (hildon_range_editor_entry_validate): 
513         * hildon-widgets/hildon-time-editor.c (validated_conversion) 
514         (validated_conversion, hildon_time_editor_real_validate): 
515         * hildon-widgets/hildon-grid.c (hildon_grid_class_init) 
516         (hildon_grid_init): 
517
518
519         Updated logical id to lower case: Ecdg_ -> ecdg_
520         * hildon-widgets/hildon-time-editor.c (hildon_time_editor_init): 
521         * hildon-widgets/hildon-time-picker.c (hildon_time_picker_init): 
522         * hildon-widgets/hildon-calendar-popup.c (hildon_calendar_popup_init): 
523         * hildon-widgets/hildon-color-popup.c (hildon_color_popup_new) 
524         * hildon-widgets/hildon-wizard-dialog.c (hildon_wizard_dialog_init) 
525         (hildon_wizard_dialog_create_title): 
526         * hildon-widgets/hildon-find-toolbar.c (hildon_find_toolbar_class_init): 
527         (hildon_find_toolbar_init): 
528         * hildon-widgets/hildon-note.c (hildon_note_rebuild) 
529         (hildon_note_rebuild, hildon_note_set_button_text): 
530
531
532         Removed i18n support for property description,
533         * hildon-widgets/hildon-time-picker.c (hildon_time_picker_class_init):
534
535
536 2006-03-21  Luc Pionchon  <luc.pionchon@nokia.com>
537
538         * configure.ac: 0.12.5
539
540 2006-03-21  Tommi Komulainen  <tommi.komulainen@nokia.com>
541         
542         * doc/hildon-libs-docs.sgml: Move HildonWizardDialog in Dialogs
543         * hildon-widgets/hildon-caption.c: Fix erroneous gtk-doc comment
544         blocks, again.
545
546 2006-03-20  Johan Bilien  <johan.bilien@nokia.com>
547
548         * hildon-widgets/hildon-grid.c: added missing include hildon-app.h for
549           HILDON_IS_APP
550
551 2006-03-20  Johan Bilien  <johan.bilien@nokia.com>
552
553         Cleanup wizard dialog,
554
555         * hildon-widgets/hildon-wizard-dialog.c
556         (struct HildonWizardDialogPrivate): removed 'previous_button'
557           and 'next_button' (obsolete)
558         
559         (hildon_wizard_dialog_response): new private function. Handles the
560         'response' signal and replaces direction_button_clicked() in
561         taking care of notebook page changes and button dimming.
562
563         (hildon_wizard_dialog_init): 'previous' and 'next' buttons are now
564         added to the dialog as response buttons. This enables the usage of
565         GtkDialog API for setting their sensitiveness.
566         
567         (dimming/undimming): Connected hildon_wizard_dialog_response to
568         "resonse" signal. Removed useless title creation because it
569         depends on the notebook which is not yet created.
570         
571         (hildon_wizard_dialog_set_property): minor code cleanup
572         
573         (hildon_wizard_dialog_create_title): removed useless else-if
574         statement.
575
576         * hildon-widgets/hildon-wizard-dialog.h
577         (hildon_wizard_dialog_get_type): added G_GNUC_CONST
578
579
580         * hildon-widgets/hildon-wizard-dialog.[ch]: Reverted the patch
581           adding the page_change signal, as the application can now track
582           the response signal instead.
583
584
585 2006-03-17  Luc Pionchon  <luc.pionchon@nokia.com>
586
587         * configure.ac: 0.12.4
588
589
590 2006-03-16  Luc Pionchon  <luc.pionchon@nokia.com>
591
592         * doc/tmpl/*
593         * hildon-widgets/*
594         moved widget descriptions to respective source file (*.c)
595         + minor doc updates
596
597
598 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
599
600         Cleanup color button
601
602         * hildon-widgets/hildon-color-button.c: 
603         - removed unused #include
604         - removed unused gettext macro
605
606         (COLOR_FIELD_WIDTH) : renamed to COLOR_FILLED_WIDTH
607         (COLOR_FIELD_HEIGHT): renamed to COLOR_FILLED_HEIGHT
608         + value updated to match specifications
609         
610         (struct _HildonColorButtonPrivate):
611         removed 'drawing_area' and 'pixbuf' members (unused)
612
613         (hildon_color_button_init):     
614         use drawing_area directly, update COLOR_FILLED_ macro names
615
616         (hildon_color_button_unrealize): new function.
617         (hildon_color_button_class_init): register unrealize function   
618         (hildon_color_button_finalize): free allocated GC in unrealize
619         handler instead of in finalize.
620         
621         (hildon_color_button_recolor_pixbuf): removed. (use
622         gdk_draw_rectangle() instead)
623         (hildon_color_button_draw_pixbuf_borders): likewise
624         
625         (hildon_color_field_expose_event): use gdk_draw_rectangle() to
626         draw the button
627         (hildon_color_button_set_property): queue the drawing - instead of
628         calling recolor_pixbuf
629
630         (hildon_color_button_clicked): renamed variable 'csd' to 'cs_dialog'
631
632
633 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
634
635         More cleanup for range editor,
636         
637         * hildon-widgets/hildon-range-editor.[ch]
638         - removed useless includes
639         (hildon_range_editor_new_with_separator): set char parameter 'const'
640
641         * hildon-widgets/hildon-range-editor.c
642         - removed useless includes
643         - rewritten a lot of functions because code was inefficient.  
644         - removed useless g_return_if_fail calls from various functions.  
645
646         (hildon_range_editor_init): Romoved unneeded casts, added composite names.
647         (hildon_range_editor_entry_keypress):  rewritten
648         (hildon_range_editor_entry_focus_out): rewritten
649         (hildon_range_editor_refresh_widths): New function
650         (hildon_range_editor_set_range): Make sure that the values are in
651         correct order
652         (hildon_range_editor_set_lower):  rewritten.
653         (hildon_range_editor_set_higher): rewritten.
654         (hildon_range_editor_set_min):    rewritten.
655         (hildon_range_editor_set_max):    rewritten.
656
657         (hildon_range_editor_entry_validate): New validator function
658         (hildon_range_editor_entry_changed): New signal handler for
659         "changed" for entries, this will now validate whenever entry changes.
660
661         (hildon_range_editor_entry_focus_out): Added g_assert for
662         editor. Removed call to hildon_range_editor_apply_current_range().
663         Added call to the new function hildon_range_editor_entry_validate()
664         for validation.
665         
666         (hildon_range_editor_init): connected
667         hildon_range_editor_entry_changed to "changed" for entries.
668
669
670 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
671
672         Major cleanup for time editor
673
674         * hildon-widgets/hildon-time-editor.c
675         - removed unused #includes.
676         - Removed useless g_return_if_fail(editor) calls
677         (HILDON_IS_TIME_EDITOR does this check as well for us).
678         
679         (hildon_time_editor_add_style):         removed, obsolete.
680         (hildon_time_editor_mnemonic_activate): removed, obsolete
681         (hildon_time_editor_get_max_values):    removed, obsolete.
682         
683         (validated_conversion): New helper function
684
685         (hildon_time_editor_entry_changed): New function, now the widget
686         interactively validates the inputted contents (not requiring focus
687         move).
688
689         (ticks_to_time): rewritten, using less arithmetic operations.
690         (hildon_time_editor_validate):          rewritten
691         (hildon_time_editor_set_ticks):         rewritten
692         (hildon_time_editor_set_duration_mode): rewritten
693         (hildon_time_editor_entry_keypress):    rewritten
694
695         * hildon-widgets/hildon-time-editor.[ch]
696         (hildon_time_editor_set_show_hours)
697         (hildon_time_editor_get_show_hours) new functions to show/hide hours
698
699         
700 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
701
702         Cleanup number editor
703         
704         * hildon-widgets/hildon-number-editor.c: 
705         (SPACE_BORDER): removed
706         
707         (hildon_number_editor_size_request):
708         (hildon_number_editor_size_allocate): updated to use hildondefines
709         
710         (hildon_number_editor_mnemonic_activate): function removed,
711         mnemonic are not used
712         
713         (hildon_number_editor_stop_repeat_timer): new function, to avoid
714         duplicated code
715         (hildon_number_editor_button_release):
716         (hildon_number_editor_finalize): updated to use new function
717
718         (hildon_number_editor_entry_keypress): completely rewritten
719         (change_numbers): likewise
720         (do_mouse_timeout): likewise
721         (hildon_number_editor_set_range): likewise
722
723         (hildon_number_editor_validate_value): new function, used for all
724         validation
725         (hildon_number_editor_focus_out):
726         (hildon_number_editor_entry_changed): updated to use previous.
727
728         (hildon_number_editor_real_set_value): new function that formats
729         given int to field. Used by change_numbers and set_value
730
731         (integer_to_string): removed, we now have one place that
732         converts numbers and that uses buffer from stack.
733         (hildon_number_editor_set_value): changed to use new format function.
734
735
736 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
737
738         * hildon-widgets/hildon-time-picker.c:
739         reorganized how the widgets are stored to reduce code
740         (HildonTimePickerWidgetGroup): new struct
741         (struct _HildonTimePickerPrivate): added member 'widgets' as an array of HildonTimePickerWidgetGroup
742         (hildon_time_picker_init)
743         (hildon_time_picker_arrow_press)
744         (hildon_time_picker_event_box_key_press)
745         (hildon_time_picker_change_time)
746         (hildon_time_picker_map)
747         (hildon_time_picker_event_box_key_release): use new widget organization
748         
749
750         (hildon_time_picker_init): return value from nl_timeinfo() is
751         valid only until it's called again, so g_strdup() the value when
752         storing it.
753
754         (MINS_IN_1H, MINS_IN_24H, MINS_IN_12H): defines hardcoded values
755         (HILDON_TIME_PICKER_LABEL_X_PADDING) 
756         (HILDON_TIME_PICKER_LABEL_Y_PADDING): defines hardcoded values
757         (hildon_time_picker_set_time):
758         (hildon_time_picker_get_time):
759         (hildon_time_picker_ampm_release): used the new defines
760
761         (struct _HildonTimePickerPrivate)
762         (hildon_time_picker_init) 
763         (hildon_time_picker_event_box_key_press) 
764         (hildon_time_picker_change_time): 
765         - c12h     renamed to show_ampm,
766         - ampo_pos renamed to ampm_left.
767
768         (hildon_time_picker_timeout): renamed to
769         hildon_time_picker_key_repeat_timeout(), 
770         and renamed parameter to 'hildon_time_picker'
771
772         (hildon_time_picker_event_box_press): renamed to
773         hildon_time_picker_event_box_button_press()
774
775         (hildon_time_picker_finalize): Added finalizer to make sure the
776         key repeat timeout handler gets removed.
777
778         (hildon_time_picker_arrow_press): Placed multipliers into
779         button_multipliers[] array to avoid multiple if/then/else
780         blocks.
781
782
783 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
784
785         * hildon-lgpl/hildon-find-toolbar.c (hildon_find_toolbar_filter):
786         calculates correctly which items will be visible. Fixes N#16991.
787
788
789 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
790
791         * hildon-widgets/hildon-find-toolbar.c
792         (hildon_find_toolbar_history_append): set "column" property only
793         after model has been set.
794         
795         
796 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
797
798         * hildon-widgets/hildon-app.c (hildon_app_escape_timeout): rename
799         the parameter more descriptively
800
801
802 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
803
804         Cleanup HildonApp,
805         
806         * hildon-widgets/hildon-app-private.h: use G_*_DECLS
807
808         * hildon-widgets/hildon-app.[ch]
809         (hildon_zoom_level_get_type): removed G_CONST_RETURN
810
811         * hildon-widgets/hildon-app.c:
812         - removed HILDON_DISABLE_DEPRECATED flags
813         - added g_assert'ions to internal functions
814         - more code comments
815         
816         (hildon_app_button): Move the fixed define to the function itself,
817         add simple autodetection, clean up comments.
818
819         (hildon_app_key_release): Remove bogus argument to signal emission
820         (not needed), emit the "fullscreen_state_change" directly instead
821         of calling set_fullscreen.
822
823         (hildon_app_construct_title): removed dead code
824
825         (hildon_app_register_view_with_id): do not call g_slist_nth() to
826         get the first element...
827         
828         
829 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
830
831         * hildon-widgets/hildon-appview.c: 
832         (hildon_appview_init):   indented comments properly
833         (paint_toolbar):         indented comments properly
834         (hildon_appview_expose): indented code properly
835         (hildon_appview_toolbar_toggle_request): removed dead code
836
837
838 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
839
840         * hildon-widgets/hildon-caption.c
841         (hildon_caption_expose): use g_assert instead of g_return_val_if_fail
842         (hildon_caption_size_allocate): likewise.
843         (hildon_caption_forall): likewise.
844
845
846 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
847
848         Cleanup Find toolbar,
849         
850         * hildon-widgets/hildon-find-toolbar.[ch]
851         (hildon_find_toolbar_new): set 'label' parameter const.
852         (hildon_find_toolbar_new_with_model): likewise.
853
854         * hildon-widgets/hildon-find-toolbar.c
855         (struct _HildonFindToolbarPrivate):
856           changed entry_combo_box type to GtkComboBoxEntry*
857
858         (hildon_find_toolbar_get_list_model): new function, to factor
859         member access and casting
860         (hildon_find_toolbar_get_entry): likewise.
861         (hildon_find_toolbar_apply_filter): removed set_column parameter
862         since it was used by only one caller, and made the caller do it
863         instead. Removed unnecessary casts.
864
865         (hildon_find_toolbar_find_string): new function.
866         (hildon_find_toolbar_history_append): code cleanup. use
867         hildon_find_toolbar_find_string.
868         
869         (hildon_find_toolbar_get_property)
870         (hildon_find_toolbar_get_entry)
871         (hildon_find_toolbar_init)
872         (hildon_find_toolbar_new)
873         (hildon_find_toolbar_new_with_model)
874         (hildon_find_toolbar_highlight_entry): Removed unnecessary casts
875         and changed some of them to use the new convenience functions
876         instead.
877
878         (hildon_find_toolbar_highlight_entry): use g_return_if_fail()
879         instead of if-check to validate parameter.
880
881         
882 2006-03-15  Luc Pionchon  <luc.pionchon@nokia.com>
883
884         Cleanup hildon-defines,
885         
886         * hildon-widgets/hildon-defines.c (hildon_icon_sizes_init) 
887         (hildon_change_style_recursive_from_ld): use G_GNUC_EXTENSION macro instead of #ifdef
888
889         (hildon_logical_data_free): new function. Free logical data.
890         (hildon_gtk_widget_set_logical_font): store logicalfontstring g_strdup()ed.
891         (hildon_gtk_widget_set_logical_color): store logicalcolorstring g_strdup()ed.
892
893         * hildon-widgets/hildon-defines.[ch]
894         (hildon_gtk_widget_set_logical_font): use const gchar*
895         (hildon_gtk_widget_set_logical_color): likewise.
896
897         * hildon-widgets/hildon-defines.c: 
898         (hildoniconsizes): set const
899         (hildoninternaliconsizes): set static, renamed 'iis'
900
901         
902 2006-03-14  Luc Pionchon  <luc.pionchon@nokia.com>
903
904         Cleanup Caption widget,
905         
906         * hildon-lgpl/hildon-caption.[ch]
907         (hildon_caption_status_get_type, hildon_caption_get_type):
908         G_CONST_RETURN removed, G_GNUC_CONST added
909
910         * hildon-widgets/hildon-caption.c
911
912         (struct _HildonCaptionPrivate): removed 'activate_block' member; not used anymore.
913
914         (hildon_caption_set_property): removed useless code.
915         (hildon_caption_button_press): simplified greatly by removing the
916         unnecessary recursion to locate the first focusable child of a
917         container - simple gtk_widget_grab_focus achieves the same
918         (get_first_focusable_child): removed (not used anymore)
919         
920         (hildon_caption_set_focus): uses gtk_widget_is_ancestor instead of reinventing it
921
922         (hildon_caption_set_focus_child): removed (not used anymore)
923         (hildon_caption_class_init): remove ref to hildon_caption_set_focus_child()
924
925         (hildon_caption_hierarchy_changed): type check added
926         (hildon_caption_forall): callback null check added
927         (hildon_caption_set_status): type check added
928         (hildon_caption_set_icon_image): type check added
929         (hildon_caption_activate): activate_block kludge removed as outdated
930         (hildon_caption_get_child_expand): argument declared const
931         (hildon_caption_set_label_text): g_return_if_fail changed to
932         g_assert since this is not a public function;
933         Duplicate separator check now uses correct localized separator
934         instead of assuming ':'
935
936         
937 2006-03-14  Luc Pionchon  <luc.pionchon@nokia.com>
938
939         Cleanup AppView,
940         
941         * hildon-lgpl/hildon-appview-c:
942         (hildon_app_view_init): Fixed a problem that prevented to set an
943         arbitrary value for TOOLBAR_MIDDLE (the distance, in pixel,
944         between toolbars). This fix involves a change in the default gtkrc
945         file, ie. the modification of the 'border' value of the
946         "toolbar-frame-middle" image in the osso-appview-background style.
947
948         (hildon_appview_add_with_scrollbar): pack in a scrolled window all
949         widget supporting adjustements, not only viewports.
950
951         (visible_toolbar): use proper parameter names
952         (find_findtoolbar_index): likewise.
953         (find_findtoolbar): likewise.
954         
955         (find_findtoolbar): use g_assert for internal functions instead of g_return_if_fail
956         (hildon_appview_finalize): likewise.
957         (hildon_appview_signal_marshal): likewise.
958         (hildon_appview_forall): likewise.
959         (hildon_appview_switched_to): likewise. 
960         (hildon_appview_real_fullscreen_state_change): likewise.
961
962         
963 2006-03-14  Luc Pionchon  <luc.pionchon@nokia.com>
964
965         * hildon-widgets/hildon-date-editor.c
966         (hildon_date_editor_entry_validate): Now, if an invalid date is
967         entered, date-editor reverts to previous date, instead of setting
968         the maximum allowed days.
969
970
971 2006-03-14  Luc Pionchon  <luc.pionchon@nokia.com>
972
973         * hildon-widgets/hildon-date-editor.h
974         (enum HildonDateEditorErrorType): added NO_ERROR entry.
975
976         * hildon-widgets/hildon-date-editor.c
977         (hildon_date_editor_entry_validate): initialize error_code to NO_ERROR.
978         (hildon_date_editor_entry_validate): check error_code against NO_ERROR
979
980
981 2006-03-14  Luc Pionchon  <luc.pionchon@nokia.com>
982
983         * hildon-widgets/hildon-get-password-dialog.c:
984         (hildon_get_password_dialog_set_title): Removed the deprecation
985         #ifdefs from the .c file.
986
987         * hildon-widgets/hildon-file-handling-note.c: likewise.
988
989
990
991 2006-03-14  Luc Pionchon  <luc.pionchon@nokia.com>
992
993         * hildon-widgets/hildon-color-selector.c: Removed unused defines.
994
995         * hildon-widgets/hildon-color-selector.c
996         (struct _HildonColorSelectorPriv): split 'index' into 'selected_index' and 'focus_index'
997         (hildon_color_selector_expose)
998         (hildon_color_selector_get_color)
999         (hildon_color_selector_set_color)
1000         (key_pressed)
1001         (select_color)  
1002         (modify_focused): Separate selected color and focused color.
1003         Focused color now draws a different colored border around it.
1004         Renamed modify_selected() to modify_focused().
1005
1006         * hildon-widgets/hildon-color-selector.c
1007         (hildon_color_selector_expose)
1008         (select_color): Changed the logic in how the box positions are
1009         calculated. The old logic was wrong, but just happened to work
1010         with those specific values.
1011
1012         * hildon-widgets/hildon-color-selector.c
1013         (hildon_color_selector_expose): Draw the selected-border using
1014         ImageBorderColor color instead of hardcoded black.
1015
1016
1017 2006-03-13  Luc Pionchon  <luc.pionchon@nokia.com>
1018
1019         * hildon-widgets/hildon-color-popup.c (hildon_color_popup_new):
1020         removed current_color; use initial_color directly.
1021         Disabled select-hardkey from activating to OK-button by default. 
1022
1023
1024 2006-03-13  Luc Pionchon  <luc.pionchon@nokia.com>
1025
1026         * hildon-widgets/hildon-date-editor.c
1027         (hildon_date_editor_keypress): removed the unnecessary check for
1028         the position of the cursor in the text-field which was hindering
1029         the Left key from working as expected.
1030
1031
1032 2006-03-13  Luc Pionchon  <luc.pionchon@nokia.com>
1033
1034         * hildon-widgets/hildon-date-editor.c: connect 'toggled' signal 
1035         after setting the toggle_button active. Prevents GLIB_CRITICALs. 
1036
1037 2006-03-13  Luc Pionchon  <luc.pionchon@nokia.com>
1038
1039         * hildon-widgets/hildon-dialoghelp.c: minor cleanups
1040
1041         
1042 2006-03-13  Luc Pionchon  <luc.pionchon@nokia.com>
1043
1044         * hildon-widgets/hildon-font-selection-dialog.c
1045         (hildon_font_selection_dialog_show_preview): set line wrap for
1046         preview label.
1047
1048
1049 2006-03-13  Luc Pionchon  <luc.pionchon@nokia.com>
1050
1051         * hildon-widgets/hildon-date-editor.c
1052         (hildon_child_forall): cast 'container'
1053         (hildon_date_editor_size_allocate): adjusted height allocation.
1054
1055
1056 2006-03-13  Luc Pionchon  <luc.pionchon@nokia.com>
1057
1058         Cleanup calendar popup,
1059
1060         * hildon-widgets/hildon-calendar-popup.c: 
1061         - updated 'longdesc' comment.
1062         - removed gtk-infoprint.h from included headers (unused).
1063
1064         (struct HildonCalendarPopupPrivate): removed member
1065         'can_exit' (useless).
1066         (hildon_calendar_day_selected): removed (useless).
1067         (hildon_calendar_allow_exit): likewise.
1068         (hildon_calendar_deny_exit): likewise.
1069
1070         (hildon_calendar_selected_date): new function. replaces
1071         hildon_calendar_allow_exit()
1072
1073         (hildon_calendar_popup_init):
1074         - Removed initialization for 'can_exit'. 
1075         - Removed connection to removed useless functions.
1076         - Connect "selected_date" to hildon_calendar_selected_date().
1077         - Do not grab the focus (useless)
1078
1079         (hildon_key_pressed): just handle ESC and Return keys.
1080
1081         (hildon_calendar_popup_get_property): removed unused variables.
1082
1083
1084 2006-03-13  Tommi Komulainen  <tommi.komulainen@nokia.com>
1085
1086         * hildon-widgets/hildon-caption.c
1087         * hildon-widgets/hildon-composite-widget.h
1088         * hildon-widgets/hildon-get-password-dialog.c
1089         * hildon-widgets/hildon-grid.h
1090         * hildon-widgets/hildon-grid-item.h
1091         * hildon-widgets/hildon-volumebar-range.c
1092         * hildon-widgets/hildon-vvolumebar.c: Fix erroneous gtk-doc comment
1093         blocks.
1094         (hildon_controlbar_get_type): likewise.
1095
1096 2006-03-13  Tommi Komulainen  <tommi.komulainen@nokia.com>
1097
1098         * doc/hildon-libs.types: Add missing types
1099         * doc/hildon-libs-docs.sgml: Add missing links and some organization
1100         * doc/tmpl/*: Regenerate and add new files
1101
1102 2006-03-13  Tommi Komulainen  <tommi.komulainen@nokia.com>
1103
1104         * doc/Makefile.am: 
1105         * doc/hildon-libs-docs.xml: rename to hildon-libs-docs.sgml
1106
1107 2006-03-13  Tommi Komulainen  <tommi.komulainen@nokia.com>
1108
1109         * doc/tmpl/hildon-wizard-dialog.sgml: Fix unmatching tags
1110         * doc/Makefile.am: Ignore right files with IGNORE_HFILES
1111
1112 2006-03-13  Tommi Komulainen  <tommi.komulainen@nokia.com>
1113         
1114         * autogen.sh
1115         * configure.ac
1116         * doc/Makefile.am: Update gtk-doc framework bits
1117         * gtk-doc.make (commit generated file)
1118         * doc/hildon-libs-overrides.txt (add empty file for gtk-doc 1.1) 
1119
1120 2006-03-13  Johan Bilien  <johan.bilien@nokia.com>
1121         * hildon-widgets/hildon-code-dialog.c:
1122           - Add default title
1123           - Fix l10n
1124
1125 2006-03-07  Johan Bilien  <johan.bilien@nokia.com>
1126
1127         * hildon-widgets/hildon-window.c: propagate key-press event to the
1128           parent class (Closes N#23400)
1129         * configure.ac: 0.12.3
1130
1131 2006-03-06  Johan Bilien  <johan.bilien@nokia.com>
1132
1133         * hildon-wizard-dialog.[ch]: Add page_change signal. Patch courtesy
1134           of Artem Garmash 
1135         * configure.ac: 0.12.2
1136
1137
1138 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1139
1140         * hildon-widgets/hildon-color-selector.c (key_pressed): use
1141         g_assert instead of g_return_val_if_fail
1142
1143         + indent changes
1144
1145
1146 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1147
1148         * hildon-widgets/hildon-get-password-dialog.[ch]: 
1149         (hildon_get_password_dialog_set_title) marked deprecated.
1150
1151         + cleanup header coding style
1152
1153         
1154 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1155
1156         Cleanup font selection dialog
1157         
1158         * hildon-widgets/hildon-font-selection-dialog.c
1159
1160         (hildon_font_selection_dialog_construct_notebook): removed dummy
1161         label
1162
1163         (color_modified_cb): renamed argument 'data' to 'fsd_priv'
1164
1165         (hildon_font_selection_dialog_preview_key_press): Renamed argument
1166         'data' to 'unused'. Replaced g_return_val_if_fail with g_assert.
1167
1168         (toggle_clicked): renamed argument 'data' to 'unused'
1169
1170         (hildon_font_selection_dialog_set_preview_text): added proper
1171         argument checking
1172
1173
1174 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1175
1176         * hildon-widgets/hildon-system-sound.c (hildon_play_system_sound):
1177         removed console messages.
1178
1179         
1180 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1181
1182         * hildon-widgets/hildon-sort-dialog.c: removed unused #include
1183         (struct _HildonSortDialogPrivate):
1184         - removed okButton, cancelButton
1185         - removed sort_by_value, sort_order_type
1186         - removed index_first
1187         - renamed combo1   to combo_key
1188         - renamed caption1 to caption_key
1189         - renamed combo2   to combo_order
1190         - renamed caption2 to cpation_order
1191
1192         (hildon_sort_dialog_init): removed init of unused fields.
1193                                    use new field names.
1194         (hildon_sort_dialog_get_sort_key): likewise.
1195         (hildon_sort_dialog_get_sort_order): likewise.
1196         (hildon_sort_dialog_set_sort_key): likewise.
1197         (hildon_sort_dialog_set_sort_order): likewise.
1198         (hildon_sort_dialog_add_sort_key): likewise.
1199         
1200 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1201
1202         * hildon-widgets/hildon-date-editor.c
1203         (hildon_child_forall): use g_assert instead of g_return_if_fail
1204         (hildon_date_editor_entry_validate): likewise.
1205
1206
1207 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1208
1209         * hildon-widgets/hildon-controlbar.c
1210         (hildon_controlbar_change_value): commented function.
1211
1212         * hildon-widgets/hildon-wizard-dialog.c
1213         (hildon_wizard_dialog_get_property): likewise.
1214
1215
1216 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1217
1218         Cleanup weekday picker,
1219
1220         * hildon-widgets/hildon-weekday-picker.c
1221         (_): removed unused gettext macro
1222         (button_toggle): use meaningful parameter name
1223         (hildon_weekday_picker_forall): use g_asserts instead of g_return_if_fail
1224         (hildon_weekday_picker_size_allocate): likewise.
1225         (button_toggle): likewise.
1226
1227         
1228 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
1229
1230         Cleanup time editor,
1231         
1232         * hildon-widgets/hildon-time-editor.c
1233         (HILDON_TIME_EDITOR_GET_PRIVATE): moved up in the file.
1234         (ENTRY_BORDER, ICON_WIDTH, ICON_HEIGHT): removed hardcoded pixel sizes.
1235         (HILDON_TIME_EDITOR_TIME_LOWER_VALUE): removed (unused)
1236         (HILDON_TIME_EDITOR_TIME_UPPER_VALUE): removed (unused)
1237
1238         (struct _HildonTimeEditorPrivate):
1239         - h_entry, m_entry, s_entry replaced by entries[],
1240                                     allows to remove a lot of code.
1241         - label  renamed to hm_label
1242         - label2 renamed to sec_label
1243         - ampm   renamed to ampm_label
1244         - show_s renamed to show_seconds
1245         - removed fields: icon, valid_value, validated
1246
1247         + moved up in the file.
1248
1249         (enum HildonValidation): removed unused field 'VALIDATION_ERROR'
1250
1251         (ENTRY_HOURS, ENTRY_MINS, ENTRY_SECS): added (enum)
1252
1253         (set_widget_allocation): removed
1254         (hildon_time_editor_entry_changed): removed
1255
1256         (hildon_time_editor_forall): use g_asserts instead of g_return_if_fails
1257
1258         (hildon_time_editor_forall): removed unnecessary code
1259         (hildon_time_editor_destroy): likewise. 
1260
1261         (hildon_time_editor_class_init): use MIN_DURATION and MAX_DURATION
1262
1263         (hildon_time_editor_tap_and_hold_setup): loop on 'entries[]'
1264
1265         (hildon_time_editor_set_to_current_time): new function. (factorise code)
1266         (hildon_time_editor_init): loop on 'entries[]' (simplifies the code),
1267                                    use new variable names,
1268                                    use hildon_time_editor_set_to_current_time
1269         
1270         (hildon_time_editor_mnemonic_activate): uses 'entries[]'
1271         (hildon_time_editor_set_ticks): use g_assert instead of
1272                                         g_return_if_fails, use
1273                                         'entries[]', removed dead code
1274
1275         (hildon_time_editor_set_show_seconds): use 'entries[]' and new variable names
1276         (hildon_time_editor_validate): use 'entries[]', removed dead code
1277         (hildon_time_editor_get_max_values): use 'entries[]'
1278
1279
1280         (hildon_time_editor_get_show_seconds): use new variable names
1281         (hildon_time_editor_set_duration_mode): likewise.
1282
1283         (hildon_time_editor_check_locale): do not g_strdup (fix memory leak)
1284
1285         (hildon_time_editor_ampm_clicked): use g_asserts instead of g_return_if_fails
1286                                            removed dead code
1287         (hildon_time_editor_icon_clicked): use g_asserts instead of g_return_if_fails
1288
1289         (hildon_time_editor_size_request): cleaned up, removed hardcoded sizes.
1290
1291         (set_widget_allocation): removed (unused)
1292         (hildon_time_editor_entry_changed): removed (unused)
1293
1294         (IS_VALID_KEYPRESS): new macro
1295         (hildon_time_editor_entry_keypress): use g_asserts instead of g_return_if_fails
1296                                              deleate dead/unnecessary code
1297                                              use 'entries[]'
1298                                              use IS_VALID_KEYPRESS
1299
1300         (hildon_time_editor_validate_duration): use g_asserts instead of g_return_if_fails
1301
1302         (hildon_time_editor_validate_time): removed 'editor' parameter (unused)
1303
1304         (hildon_time_editor_size_allocate): cleanup
1305         (convert_to_12h): cleanup code style
1306
1307         (hildon_time_editor_show_seconds): removed deprecation flag
1308         (hildon_time_editor_enable_duration_mode): likewise.
1309
1310
1311 2006-03-02  Luc Pionchon  <luc.pionchon@nokia.com>
1312         
1313         Cleanup volume bars,
1314
1315         * hildon-widgets/hildon-volumebar.h: removed unused #include
1316         + coding style cleanup
1317
1318         * hildon-widgets/hildon-volumebar.c
1319         (_hildon_volumebar_mute_toggled): new function. Sends mute-toggled
1320         signal to widget.
1321         (hildon_child_forall): use g_assert instead of g_return_if_fail
1322
1323         * hildon-widgets/hildon-volumebar-range.h: removed unused #include
1324         + coding style cleanup
1325
1326         * hildon-widgets/hildon-volumebar-private.h:
1327         added missing #include.
1328         added _hildon_volumebar_mute_toggled.
1329         (struct _HildonVolumebarPrivate): removed 'orientation' field (unused)
1330
1331
1332         
1333         * hildon-widgets/hildon-vvolumebar.h: removed unused #include
1334         + coding style cleanup
1335
1336         * hildon-widgets/hildon-vvolumebar.c
1337         (hildon_vvolumebar_size_request)
1338         (hildon_vvolumebar_size_allocate)
1339         (hildon_vvolumebar_expose): use g_assert instead of g_return_if_fail
1340
1341         * hildon-widgets/hildon-vvolumebar.c (hildon_vvolumebar_mute): removed (unused).
1342         
1343         * hildon-widgets/hildon-vvolumebar.c: removed unused #include
1344         (vvolumebar_class_init): renamed to hildon_vvolumebar_class_init
1345         (vvolumebar_init): renamed to hildon_vvolumebar_init
1346         (hildon_vvolumebar_init): removed unused 'orientation'
1347         initialisation. Use _hildon_volumebar_mute_toggled instead of
1348         removed hildon_vvolumebar_mute.
1349
1350
1351         
1352         * hildon-widgets/hildon-hvolumebar.h: removed unused #include
1353         
1354         * hildon-widgets/hildon-hvolumebar.c (hvolumebar_class_init):
1355         renamed to hildon_hvolumebar_class_init
1356
1357         * hildon-widgets/hildon-hvolumebar.c (hvolumebar_init): renamed to
1358         hildon_hvolumebar_init
1359
1360         * hildon-widgets/hildon-hvolumebar.c (hildon_hvolumebar_mute):
1361         removed (unused).
1362
1363         * hildon-widgets/hildon-hvolumebar.c (hildon_hvolumebar_init):
1364         removed unused 'orientation' initialisation.
1365
1366         * hildon-widgets/hildon-hvolumebar.c (hildon_hvolumebar_init): use
1367         _hildon_volumebar_mute_toggled instead of removed
1368         hildon_hvolumebar_mute.
1369
1370
1371 2006-03-02  Luc Pionchon  <luc.pionchon@nokia.com>
1372
1373         More cleanup,
1374
1375         * hildon-widgets/hildon-dialoghelp.h: use G_BEGIN_DECLS +
1376         coding style cleanup
1377
1378         * hildon-widgets/hildon-color-popup.h: likewise.
1379
1380         * hildon-widgets/hildon-color-popup.[ch] (hildon_color_popup_new):
1381         use const parameter
1382
1383         * hildon-widgets/hildon-color-selector.c
1384         (hildon_color_selector_new): use g_return_val_if_fail instead of
1385         g_assert.
1386         (select_color): use g_assert instead of g_return_if_fail
1387
1388         * hildon-widgets/hildon-calendar-popup.c
1389         (hildon_calendar_allow_exit): use g_assert instead of g_return_if_fail.
1390
1391
1392
1393 2006-03-02  Johan Bilien  <johan.bilien@nokia.com>
1394
1395         * hildon-widgets/hildon-code-dialog.[ch], hildon-widgets/Makefile.am:
1396           added HildonCodeDialog widget
1397
1398
1399 2006-03-02  Johan Bilien  <johan.bilien@nokia.com>
1400
1401         * hildon-widgets/hildon-window.c: 
1402           - set the toolbar height explicitely
1403           - use show instead of show_all on the common_toolbar
1404           - add the toolbars bottom-up instead of top-down
1405         * hildon-widgets/hildon-program.c:
1406           - don't assume that a window was realized when added to 
1407             the program
1408
1409
1410 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1411
1412         Cleanup font selection dialog,
1413
1414         * hildon-widgets/hildon-font-selection-dialog.h: use G_BEGIN_DECLS
1415         + coding style cleanup
1416
1417         * hildon-widgets/hildon-font-selection-dialog.c
1418         (hildon_font_selection_dialog_finalize): use g_return_if_fail
1419         instead of g_assert.
1420
1421         * hildon-widgets/hildon-font-selection-dialog.c
1422         (hildon_font_selection_dialog_get_text_tag)
1423         (hildon_font_selection_dialog_set_buffer)
1424         (hildon_font_selection_dialog_get_font)
1425         (hildon_font_selection_dialog_set_font): Removed deprecation #ifdef.
1426
1427
1428 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1429
1430         Cleanup range editor,
1431         
1432         * hildon-widgets/hildon-range-editor.c
1433         (hildon_range_editor_calss_init):Removed
1434         widget_calss->mnemonic_activate init
1435
1436         * hildon-widgets/hildon-range-editor.c
1437         (hildon_range_editor_mnemonic_activate): Removed static function
1438         hildon_range_mnemonic_activate and FIXME. It is useless even
1439         through it is overriding function for
1440         GtkWidgetClass->mnemonic_activate. The activation and keyboard
1441         focus will be realized based on different applications.
1442
1443         * hildon-widgets/hildon-range-editor.c
1444         (is_valid_keyvalue_for_entry_keypress): new function.
1445
1446         * hildon-widgets/hildon-range-editor.c
1447         (hildon_range_editor_entry_keypress): uses
1448         is_valid_keyvalue_for_entry_keypress
1449         
1450         * hildon-widgets/hildon-range-editor.c
1451         (hildon_range_editor_forall): use g_return_if_fail instead of
1452         g_assert
1453
1454         * hildon-widgets/hildon-range-editor.cvn
1455         (hildon_range_editor_mnemonic_activate): removed. (unused)
1456
1457
1458 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1459
1460         Cleanup hildon-note,
1461         
1462         * hildon-widgets/hildon-note.[ch]
1463
1464         (hildon_note_five_line_truncate): removed.
1465         (hildon_note_one_line_truncate): removed.
1466
1467         (hildon_note_set_property): use _hildon_gtk_label_set_text_n_lines
1468         instead of _{one|five}_line_truncate() functions.
1469
1470
1471         (hildon_note_new_information_with_icon_theme): Deprecated. Turned
1472         into wrapper of "hildon_note_new_information_with_icon_name".
1473
1474         (hildon_note_new_confirmation_with_icon_stock): Deprecated (broken)
1475         (hildon_note_new_information_with_icon_stock): Deprecated (broken)
1476         
1477         - removed some unnessecary includes.
1478
1479         - Merged hildon_note_create & hildon_note_create_form and rewrote
1480         the combination as hildon_note_rebuild
1481
1482         - Added missing g_return_* into public functions.
1483
1484         - Acquire real references to children which are packed/unpacked,
1485         so we do not need to bother about refcounting while changing the
1486         layout.
1487         
1488         
1489 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1490
1491         More cleanup:
1492         
1493         * hildon-widgets/hildon-number-editor.c
1494
1495         (set_widget_allocation): use const parameter.
1496
1497         (hildon_number_editor_forall): use g_assert instead of g_return_if_fail
1498
1499         (struct _HildonNumberEditorPrivate): removed unused member 'negative'
1500         (hildon_number_editor_set_range): removed 'negative'
1501
1502
1503         * hildon-widgets/hildon-sort-dialog.c (hildon_sort_dialog_init):
1504         use g_assert instead of g_return_if_fail
1505
1506
1507         * hildon-widgets/hildon-time-picker.c:
1508         - in several places, replace 1440 by 24*60
1509         (PROP_AMPM): removed, unused.
1510         (hildon_time_picker_timeout): use significant parameter name,
1511                                       removed dead code
1512         (hildon_time_picker_init): removed useless call to _change_time()
1513
1514
1515 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1516         
1517         Cleanup Seekbar,
1518         
1519         * hildon-widgets/hildon-seekbar.c
1520
1521         (_): Removed dgettext macro definition.
1522         
1523         (HildonSeekbarPrivate): Removed 'label' and 'draw_value'. (unused).
1524
1525         (hildon_seekbar_finalize): removed. not needed.
1526         (hildon_seekbar_class_init): Removed hildon_seekbar_finalize.
1527         
1528         (hildon_seekbar_size_request): indent cleanup.
1529
1530         (hildon_seekbar_size_allocate): simplified function.
1531
1532         (hildon_seekbar_button_press_event): Removed unused variables.
1533         (hildon_seekbar_button_release_event): likewise.
1534
1535
1536 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1537
1538         Cleanup date editor,
1539
1540         * hildon-widgets/hildon-date-editor.c
1541
1542         (BUTTON_SPACING): removed. Use HILDON_MARGIN_DEFAULT
1543         (MAX_DATE_LEN): removed. Specify buffer lenght in code.
1544
1545         (hildon_date_editor_get_font_width): removed (legacy static
1546         function), use gtk_entry_set_width_chars instead.
1547         
1548         (hildon_date_editor_mnemonic_activate): removed mnemonic
1549         activation handler, since it's no more used by HildonCaption.
1550
1551         
1552         - Removed some meaningless code (if (somewidget != NULL)) from
1553         size allocate.
1554         
1555         - HEAVILY modified key_press, completely removed if/grab_focus
1556         spaghetti by gtk_widget_child_focus
1557
1558         - Removed input validation from keypress (that would not work
1559         anyway, since our input method do not generate presses).  => This
1560         allows to change default return value to FALSE and remove all cases
1561         that just returned FALSE for some keys.
1562         
1563         - Merged all *_entry_changed callbacks to use the same
1564         function. Again using gtk_widget_child_focus, but now with return
1565         value as well to detect last field.
1566
1567         - Changed that calendar button is no more implemented through
1568         changing widget hierarchy (old implementation caused critical
1569         issues when you used both stylus and hardkeys at the same time to
1570         popup. => finalize method no longer contained anything => removed
1571
1572         - Locale type is no longer needed after initial setup.
1573
1574         - Changed idle_popup to popup_calendar_dialog. Idle was a legacy
1575         hack from the days of background dimming (it was important to
1576         process background updates before the dimming was done).
1577
1578         - Changed the field order/delimeters to be correcly derived form
1579         the locale.
1580
1581         - Rewrote validation function, combined it with validation done in
1582         focus_out (since both are now called at the same time).
1583
1584         - Changed set_date function to set all components at one go
1585         without doing any validation there between (before setting each
1586         component).
1587
1588
1589
1590 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1591         
1592         Cleanup set-password dialog
1593         
1594         * hildon-widgets/hildon-set-password-dialog.[ch]
1595         (hildon_set_password_dialog_set_domain): gchar * param is const
1596         (hildon_set_password_dialog_new_with_default): likewise.
1597
1598         * hildon-widgets/hildon-set-password-dialog.c
1599
1600         (hildon_set_password_set_property): setting 'modify-protection'
1601         now creates the UI
1602
1603         (hildon_set_password_get_property): fixed broken 'domain' (missing
1604         break statement!) and 'modify-protection' (was a null operation)
1605         properties; code simplified.
1606
1607         (hildon_set_password_dialog_constructor),
1608         (create_contents),
1609         (hildon_set_password_dialog_class_init),
1610         (hildon_set_password_dialog_init):
1611         hildon_set_password_dialog_constructor removed as weird and
1612         obsolete and replaced with new function create_contents; fixed
1613         leaking group variable; removed some unused, outdated code that
1614         was already commented out.
1615
1616         (hildon_set_password_response_change),
1617         (hildon_set_password_response_set): GtkWindow *parent arguments
1618         changed to gpointer unused; cleaned up unnecessary strcmp's
1619
1620         (hildon_checkbox_toggled): fixed typo in function name (checbox ->
1621         checkbox). gpointer renamed to be more descriptive; Code simplified  
1622
1623         (hildon_set_password_dialog_get_type): empty function argument
1624         list replaced with void keyword.
1625
1626         (hildon_set_password_dialog_new),
1627         (hildon_set_password_dialow_new_with_default): simplified by
1628         having the simpler constructor call the more complex one, not vice
1629         versa; moved callback connects to create_contents since they
1630         depend on the status of 'modify-protection' property
1631
1632         (hildon_set_password_dialog_get_password): type check added
1633         (hildon_set_password_dialog_get_protected): likewise
1634         (hildon_set_password_dialog_set_domain): likewise
1635         
1636         
1637 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1638
1639         Cleanup name-password dialog:
1640         
1641         * hildon-widgets/hildon-name-password-dialog.[ch]
1642
1643         (HildonNamePasswordDialogPrivate): nameEntry and passwordEntry
1644         types changed from *HildonCaption to *GtkEntry
1645
1646         (hildon_name_password_dialog_set_property): layout fixes;
1647         duplicated code replaced with calls to relevant public functions
1648
1649         (hildon_name_password_dialog_get_property): layout fixes;
1650         duplicated code replaced with calls to relevant public functions
1651
1652         (hildon_name_password_dialog_init): fixed leaking group variable;
1653         reworked to have captions as local variables and captioned entries
1654         in the private struct
1655
1656         (hildon_name_password_dialog_new_with_default): name and password
1657         arguments declared const
1658
1659         (hildon_name_password_dialog_get_name): type check added + cleanup
1660         (hildon_name_password_dialog_get_password): likewise.
1661
1662         (hildon_name_password_dialog_set_domain): domain argument declared
1663         const; type check added + cleanup
1664
1665
1666 2006-03-01  Luc Pionchon  <luc.pionchon@nokia.com>
1667
1668         Cleanup get-password dialog:
1669         
1670         * hildon-widgets/hildon-get-password-dialog.[ch]
1671
1672         (HildonGetPasswordDialogPrivate): gboolean get_old added
1673
1674         (hildon_get_password_set_property): fixed broken 'numbers-only'
1675         and 'max-characters' cases; 'get-old' property added
1676
1677         (hildon_get_password_get_property): added support for reading
1678         'numbers-only' properties; added missing break to 'domain' case.
1679         added 'get-old' property
1680
1681         (hildon_get_password_dialog_class_init): 'domain' and
1682         'numbers-only' properties are now readable; 'get-old' property
1683         added
1684
1685         (hildon_get_password_dialog_init, create_contents): everything
1686         that depends on the type of the dialog (i.e. 'get-old' property)
1687         is now done in create_contents after properties are initialized;
1688         fixed leaking group variable
1689
1690         (hildon_get_password_dialog_get_type): empty function argument
1691         list replaced with void keyword
1692
1693         (hildon_get_password_dialog_new): moved setting the labels of the
1694         get password dialog to init where it should be done; 'get-old'
1695         property set upon construction to achieve this
1696
1697         (hildon_get_password_dialog_new_with_default): password argument
1698         declared const
1699
1700         (hildon_get_password_dialog_get_password): type check added
1701         (hildon_get_password_dialog_set_domain): type check added; domain
1702         argument declared const; duplicate function declaration removed
1703
1704         (hildon_get_password_dialog_set_title): type check added;
1705         new_title argument declared const
1706
1707         (hildon_get_password_dialog_set_caption): type check added;
1708         new_caption argument declared const
1709
1710         (hildon_get_password_dialog_set_max_characters): broken type check fixed
1711         (_invalid_input): gpointer data argument renamed unused
1712
1713
1714 2006-02-28  Luc Pionchon  <luc.pionchon@nokia.com>
1715
1716         (*_get_type): declared G_GNUC_CONST
1717         
1718         * hildon-widgets/hildon-app.h:
1719         * hildon-widgets/hildon-appview.h:
1720         * hildon-widgets/hildon-calendar-popup.h:
1721         * hildon-widgets/hildon-color-selector.h:
1722         * hildon-widgets/hildon-date-editor.h:
1723         * hildon-widgets/hildon-find-toolbar.h: 
1724         * hildon-widgets/hildon-get-password-dialog.h:
1725         * hildon-widgets/hildon-name-password-dialog.h:
1726         * hildon-widgets/hildon-number-editor.h:
1727         * hildon-widgets/hildon-seekbar.h:
1728         * hildon-widgets/hildon-set-password-dialog.h:
1729         * hildon-widgets/hildon-sort-dialog.h:
1730         * hildon-widgets/hildon-time-editor.h:
1731         * hildon-widgets/hildon-weekday-picker.h:
1732         * hildon-widgets/hildon-wizard-dialog.h:
1733
1734 2006-02-28  Luc Pionchon  <luc.pionchon@nokia.com>
1735
1736         Volume bars cleanup
1737         
1738         * hildon-widgets/hildon-volumebar.c
1739         (hildon_volumebar_class_init): object class casts cleaned up
1740         (hildon_child_forall): removed unnecessary variable vbar; type check added
1741         (hildon_volumebar_set_property): removed unnecessary variable vbar
1742         (hildon_volumebar_set_level): type check added
1743         (hildon_volumebar_get_level): type check added
1744         (hildon_volumebar_set_mute): type check added
1745         (hildon_volumebar_get_mute): type check added
1746         (hildon_volumebar_get_adjustment): type check added
1747         (hildon_volumebar_key_press): removed unnecessary g_return_if_fail
1748
1749         * hildon-widgets/hildon-volumebar.h
1750         (hildon_volumebar_get_type): declared G_GNUC_CONST
1751
1752         * hildon-widgets/hildon-volumebar-private.h:
1753         - G_BEGIN_DECLS/G_END_DECLS added
1754         - ownorientation removed from private struct
1755
1756         * hildon-widgets/hildon-volumebar-range.c
1757         (hildon_volumebar_range_init): vacuous return statement removed
1758
1759         (hildon_volumebar_range_set_level): removed unnecessary clamping
1760         kludge that violated object oriented principles only to provide an
1761         extremely minor, unnecessary optimization; type check added
1762
1763         (hildon_volumebar_range_get_level): now accesses adjustment value
1764         with appropriate functions instead of reading it directly from the
1765         struct, which is bad OOP; type check added
1766
1767         (hildon_volumebar_range_button_press_event): Added more descriptive comments
1768         (hildon_volumebar_range_button_release_event): Added more descriptive comments
1769
1770         * hildon-widgets/hildon-volumebar-range.h
1771         (hildon_volumebar_range_get_type): declared G_GNUC_CONST
1772
1773         * hildon-widgets/hildon-hvolumebar.c
1774         (hvolumebar_init): priv->ownorientation and v_ptr removed;
1775         completely removed the gtk_widget_show() call that was already
1776         commented out
1777
1778         (hildon_hvolumebar_new): empty function parameter list replaced
1779         with void keyword
1780
1781         (hildon_hvolumebar_map): vbar variable removed; type check added
1782         (hildon_hvolumebar_expose): type check added
1783         (hildon_hvolumebar_size_request): type check added
1784         (hildon_hvolumebar_size_allocate): vbar variable removed; type check added
1785
1786         * hildon-widgets/hildon-hvolumebar.h
1787         (hildon_hvolumebar_get_type): declared G_GNUC_CONST
1788
1789         * hildon-widgets/hildon-vvolumebar.c
1790         (vvolumebar_init): priv->ownorientation and v_ptr removed
1791         (hildon_vvolumebar_new): empty function parameter list replaced with void keyword
1792
1793         (hildon_vvolumebar_expose): type check added
1794         (hildon_vvolumebar_size_request): type check added
1795         (hildon_vvolumebar_size_allocate): vbar variable removed; type check added
1796
1797         * hildon-widgets/hildon-vvolumebar.h
1798         (hildon_vvolumebar_get_type): declared G_GNUC_CONST 
1799
1800
1801 2006-02-28  Luc Pionchon  <luc.pionchon@nokia.com>
1802
1803         * hildon-widgets/hildon-weekday-picker.c
1804         (_HildonWeekdayPickerPrivate): Removed members: dayorder, days,
1805         last_index; added day_order_buttons
1806         
1807         (hildon_weekday_picker_mnemonic_activate): removed.
1808                                          mnemonics are no longer used.
1809         
1810         (hildon_weekday_picker_class_init): Removed mnemonic_activate
1811         function. Rewritten creation of buttons. Unref'ed size group.
1812         
1813         (button_toggle): Removed bit mask checking, simplified function
1814         
1815         (hildon_weekday_picker_set_day):
1816         (hildon_weekday_picker_unset_day): Removed bit mask checking, date
1817                                            adjustment, unecessary for loop
1818         
1819         (hildon_weekday_picker_toggle_day): Removed date adjustment and
1820         unecessary for loop. Simplified button toggling
1821
1822         (hildon_weekday_picker_set_all):
1823         (hildon_weekday_picker_unset_all): Removed bit mask checking and
1824                                            simplified for loop
1825
1826         (hildon_weekday_picker_isset_day): Removed date adjustment and
1827                                            unecessary for loop;
1828
1829 2006-02-21  Luc Pionchon  <luc.pionchon@nokia.com>
1830
1831         Added hildon-banner, as a clean replacement for gtk-infoprint
1832         * hildon-widgets/hildon-banner.[ch]: implementation and header  
1833         * hildon-widgets/Makefile.am: reference new files
1834         * hildon-widgets/gtk-infoprint.c: removed implementation, now just
1835         a compatibility wrapper to hildon-banner
1836         
1837 2006-02-21  Luc Pionchon  <luc.pionchon@nokia.com>
1838         
1839         * hildon-widgets/hildon-color-button.c: added comments
1840         * hildon-widgets/hildon-controlbar.c: Likewise.
1841         * hildon-widgets/hildon-composite-widget.c: Likewise.
1842         * hildon-widgets/hildon-calendar-popup.c: Likewise.
1843
1844 2006-02-21  Luc Pionchon  <luc.pionchon@nokia.com>
1845
1846         * ChangeLog-hildon-lgpl: copied from old hildon-lgpl/ChangeLog for
1847         reference
1848
1849 2006-02-21  Luc Pionchon  <luc.pionchon@nokia.com>
1850
1851         * configure.ac: 0.12.1
1852
1853 2006-02-21  Johan Bilien  <johan.bilien@nokia.com>
1854
1855         * doc/tmpl/hildon-program.sgml: added from hildon-lgpl HW branch
1856         * doc/tmpl/hildon-window.sgml: likewise.
1857         * hildon-widgets/hildon-program.[ch]: likewise.
1858         * hildon-widgets/hildon-window.[ch]: likewise.
1859         * hildon-widgets/hildon-window-private.h: likewise.
1860         * hildon-widgets/Makefile.am: Added these new files to the build
1861           and distribution.
1862
1863 2006-02-14  Luc Pionchon  <luc.pionchon@nokia.com>
1864
1865         * configure.ac: 0.12.0
1866
1867         Merged hildon-lgpl into hildon-libs (and hildon-fm)
1868
1869         * doc/tmpl/hildon-system-sound.sgml: added from hildon-lgpl
1870         * doc/tmpl/hildon-appview.sgml: likewise.
1871         * doc/tmpl/hildon-color-popup.sgml: likewise.
1872         * doc/tmpl/hildon-find-toolbar.sgml: likewise.
1873         * doc/tmpl/hildon-app.sgml: likewise.
1874         * doc/tmpl/hildon-input-mode-hint.sgml: likewise.
1875         * doc/tmpl/hildon-caption.sgml: likewise.
1876         * doc/tmpl/hildon-marshalers.sgml: likewise.
1877         * doc/tmpl/hildon-add-home-dialog.sgml: likewise.
1878         * doc/tmpl/hildon-defines.sgml: likewise.
1879         * doc/tmpl/gtk-infoprint.sgml: likewise.
1880         * doc/tmpl/hildon-composite-widget.sgml: likewise.
1881
1882         * hildon-widgets/gtk-infoprint.[ch]: added from hildon-lgpl
1883         * hildon-widgets/hildon-app.[ch]:likewise.
1884         * hildon-widgets/hildon-app-private.h:likewise.
1885         * hildon-widgets/hildon-appview.[ch]:likewise.
1886         * hildon-widgets/hildon-caption.[ch]:likewise.
1887         * hildon-widgets/hildon-defines.[ch]:likewise.
1888         * hildon-widgets/hildon-find-toolbar.[ch]:likewise.
1889         * hildon-widgets/hildon-input-mode-hint.h:likewise.
1890         
1891         * hildon-widgets/Makefile.am (libhildonwidgets_la_SOURCES): 
1892         removed hildon-file-details-dialog.[ch] (moved to hildon-fm)
1893         added,
1894             gtk-infoprint.[ch]
1895             hildon-app.[ch]
1896             hildon-app-private.h
1897             hildon-appview.[ch]
1898             hildon-caption.[ch]
1899             hildon-defines.[ch]
1900             hildon-find-toolbar.[ch]
1901             hildon-input-mode-hint.h
1902
1903         * hildon-widgets/hildon-get-password-dialog.c: corrected #include
1904         path for gtk-infoprint.h and hildon-input-mode-hint.h
1905
1906         * po/en_GB.po: merged msgstr from hildon-lgpl
1907
1908         * timer/*: added from hildon-lgpl
1909
1910
1911
1912         Moved hildon-file-details-dialog from hildon-libs to hildon-fm
1913
1914         * hildon-widgets/hildon-file-details-dialog.[ch]: moved to
1915         hildon-fm
1916
1917         * ut/hildon-widgets_tests.c (test41a): removed test case for
1918         hildon_file_details_dialog
1919
1920         * doc/hildon-libs.types: likewise.
1921         * doc/hildon-libs-docs.xml: likewise.
1922
1923
1924
1925         Update build files
1926
1927         * hildon-libs.pc.in (Libs): do not requires hildon-lgpl anymore
1928         nor hildon-fm
1929
1930         * Makefile.am (SUBDIRS): added timer/
1931
1932         * configure.ac: do not depend anymore on hildon-lgpl nor
1933         hildon-fm, check for libmb, added Makefile output for timer/
1934
1935
1936         
1937 2006-01-18  Luc Pionchon  <luc.pionchon@nokia.com>
1938
1939         * configure.ac: 0.10.2
1940
1941 2006-01-18  Luc Pionchon  <luc.pionchon@nokia.com>
1942
1943         N#22240 CP: Tapping outside the scroll bar invoke the applet.
1944         * hildon-widgets/hildon-grid.c (adjust_scrollbar_height):
1945         hildon-apps scroll-control property is now handled.
1946         (get_child_index_by_coord): ignores events not matching a grid
1947         item.
1948
1949 2006-01-11  Luc Pionchon  <luc.pionchon@nokia.com>
1950
1951         * configure.ac: 0.10.1
1952
1953 2006-01-11  Luc Pionchon  <luc.pionchon@nokia.com>
1954
1955         Missing/Buggy documentation from,
1956         N#11566 make password dialog customizable (messages)
1957         * hildon-widgets/hildon-get-password-dialog.c
1958         (hildon_get_password_dialog_set_title): typo in gtkdoc function
1959         name
1960         * doc/tmpl/xxx.sgml: updated.
1961         
1962 2006-01-11  Luc Pionchon  <luc.pionchon@nokia.com>
1963
1964         N#19369 TRUE Scketch does not show colour change when using white color
1965         
1966         Color button needs inner border white, and outer border black.
1967         * hildon-widgets/hildon-color-button.c
1968         (hildon_color_button_draw_pixbuf_borders): new function. Paint the
1969         border
1970         * hildon-widgets/hildon-color-button.c (hildon_color_button_init):
1971         (hildon_color_button_realize): call the above function
1972
1973 2006-01-11  Luc Pionchon  <luc.pionchon@nokia.com>
1974
1975         N#21063 hildon_note_new_confirmation_add_buttons has misleading docs
1976         * hildon-widgets/hildon-note.c: 
1977         (hildon_note_new_confirmation_add_buttons): updated doc
1978         (hildon_note_set_button_texts): likewise.
1979
1980 2006-01-11  Luc Pionchon  <luc.pionchon@nokia.com>
1981
1982         N#21884 Cannot select read-only by using the center of the scroll key
1983         * hildon-widgets/hildon-file-details-dialog.c
1984         (hildon_file_details_dialog_init): Removed dialog default response.
1985
1986 2006-01-11  Luc Pionchon  <luc.pionchon@nokia.com>
1987
1988         N#8094 5-bit color selector: wrong margins and pixel measurements
1989         M#59   HildonColorSelector needs more space
1990         * hildon-widgets/hildon-color-popup.c (HILDON_COLOR_COL_SPACING)
1991         (hildon_color_popup_new): add space between the control bars and
1992         the color preview area.
1993
1994 2006-01-03  Luc Pionchon  <luc.pionchon@nokia.com>
1995
1996         * hildon-widgets/hildon-calendar-popup.c
1997         * hildon-widgets/hildon-color-button.c
1998         * hildon-widgets/hildon-color-popup.c
1999         * hildon-widgets/hildon-color-selector.c
2000         * hildon-widgets/hildon-composite-widget.c
2001         * hildon-widgets/hildon-controlbar.c
2002         * hildon-widgets/hildon-date-editor.c
2003         * hildon-widgets/hildon-dialoghelp.c
2004         * hildon-widgets/hildon-file-details-dialog.c
2005         * hildon-widgets/hildon-font-selection-dialog.c
2006         * hildon-widgets/hildon-get-password-dialog.c
2007         * hildon-widgets/hildon-grid-item.c
2008         * hildon-widgets/hildon-grid.c
2009         * hildon-widgets/hildon-hvolumebar.c
2010         * hildon-widgets/hildon-name-password-dialog.c
2011         * hildon-widgets/hildon-note.c
2012         * hildon-widgets/hildon-number-editor.c
2013         * hildon-widgets/hildon-range-editor.c
2014         * hildon-widgets/hildon-scroll-area.c
2015         * hildon-widgets/hildon-seekbar.c
2016         * hildon-widgets/hildon-set-password-dialog.c
2017         * hildon-widgets/hildon-sort-dialog.c
2018         * hildon-widgets/hildon-time-editor.c
2019         * hildon-widgets/hildon-time-picker.c
2020         * hildon-widgets/hildon-volumebar-private.h
2021         * hildon-widgets/hildon-volumebar-range.c
2022         * hildon-widgets/hildon-volumebar.c
2023         * hildon-widgets/hildon-vvolumebar.c
2024         * hildon-widgets/hildon-weekday-picker.c
2025         * hildon-widgets/hildon-wizard-dialog.c
2026           commented code
2027
2028 2005-12-28  Luc Pionchon  <luc.pionchon@nokia.com>
2029
2030         * configure.ac: 0.10.0
2031
2032 2005-12-12  Luc Pionchon  <luc.pionchon@nokia.com>
2033
2034         Some more properties for Gazpacho support,      
2035
2036         * hildon-widgets/hildon-calendar-popup.c: "day", "month", "year"
2037         * hildon-widgets/hildon-color-selector.c: "color"
2038
2039
2040         * hildon-widgets/hildon-color-selector.[ch]
2041         (hildon_color_selector_get_color): return const pointer to the
2042         color (not a copy).
2043         
2044 2005-11-18  Luc Pionchon  <luc.pionchon@nokia.com>
2045
2046
2047         Gazpacho support, added the following properties:
2048         
2049         * hildon-widgets/hildon-insert-object-dialog.c: "name", "mimetype"
2050         * hildon-widgets/hildon-seekbar.c: "position", "fraction"
2051         * hildon-widgets/hildon-grid-item.c: "emblem-type"
2052         * hildon-widgets/hildon-sort-dialog.c: "sort-key", "sort-order"
2053         * hildon-widgets/hildon-grid.c: "style", "scrollbar-pos"
2054         * hildon-widgets/hildon-font-selection-dialog.c: "preview-text"
2055         * hildon-widgets/hildon-get-password-dialog.c: "caption-label", "max-characters"
2056         * hildon-widgets/hildon-telephone-editor.c: "border", "plus" (obsolet widget)
2057         * hildon-widgets/hildon-number-editor.c: "value"
2058
2059         * hildon-widgets/hildon-color-button.c: minor cleanup
2060
2061
2062 2005-11-18  Luc Pionchon  <luc.pionchon@nokia.com>
2063
2064         Started new development
2065         (branche for maintenance continues with versions 0.9.x)
2066
2067 2005-11-03  Luc Pionchon  <luc.pionchon@nokia.com>
2068
2069         * configure.ac: 0.9.53
2070
2071 2005-10-31  Luc Pionchon  <luc.pionchon@nokia.com>
2072
2073         same fix for,
2074         N#19283 Control panel - The values entered are not saved.
2075         N#19648 Hildon Date Editor widget detects values too high
2076         (note: complete fix include also fixes in GTk+)
2077
2078         * hildon-widgets/hildon-calendar-popup.c
2079         (hildon_calendar_popup_set_property),
2080         (hildon_calendar_popup_class_init),
2081         (init_dmy): Added 'min-year', 'max-year' properties for passing
2082         the information through from HildonDateEditor to GtkCalendar
2083
2084         * hildon-widgets/hildon-date-editor.c:
2085         (hildon_date_editor_class_init),
2086         (hildon_date_editor_init),
2087         (hildon_date_editor_set_property),
2088         (hildon_date_editor_get_property),
2089         (idle_popup),
2090         (hildon_date_editor_entry_validate),
2091         (hildon_date_editor_date_error): Added 'min-year', 'max-year'
2092         properties and replaced hardcoded constants with them
2093
2094         * hildon-widgets/hildon-date-editor.c
2095         (hildon_date_editor_d_entry_changed),
2096         (hildon_date_editor_m_entry_changed),
2097         (hildon_date_editor_d_entry_changed): new functions to ensure that
2098         the fields are validated and the focus is moved when maximum
2099         number of characters has been entered.
2100         
2101 2005-10-13  Luc Pionchon  <luc.pionchon@nokia.com>
2102
2103         * configure.ac: 0.9.52
2104
2105 2005-10-12  Luc Pionchon  <luc.pionchon@nokia.com>
2106
2107         N#19140 System alerts still audible despite being turned off
2108         
2109         * hildon-widgets/hildon-note.c (sound_handling): 
2110
2111         * hildon-system-sound.[ch]: New files, implements hildon_play_system_sound.
2112
2113         * hildon-note.c (sound_handling): Changed to use new
2114         hildon_play_system_sound.
2115         (hildon_note_init): Signal handler id is changed to be in private
2116         structure, not in global variable.
2117         
2118         * hildon-note.c: Removed unused defines etc.
2119
2120         * Makefile.am: Appended new files to build rules.
2121
2122 2005-10-05  Luc Pionchon  <luc.pionchon@nokia.com>
2123
2124         * configure.ac: 0.9.51
2125
2126 2005-10-05  Luc Pionchon  <luc.pionchon@nokia.com>
2127
2128         N#20027 PDF Reader crashes on selecting read only option in the
2129         details dialog box.
2130
2131         * hildon-widgets/hildon-file-details-dialog.c:
2132         (change_state): Fixed assertion that was causing problems
2133         (check_validity): New function: We now automatically close the
2134         dialog if the displayed file is removed.
2135         (handle_focus): Callback removed:
2136         (init): Now using correct gtk way to bind container and adjustment
2137         together. Not the previous callback.
2138         (set_property): Connecting/disconnecting new handlers (for
2139         change_state).
2140         (finalize): disconnecting new handler.
2141         
2142 2005-10-05  Luc Pionchon  <luc.pionchon@nokia.com>
2143
2144         N#17918 Volumebar widget background image doesn't change when
2145         widget goes into mute state,
2146         
2147         * hildon-vvolumebar.c (hildon_volumebar_set_mute): queued widget
2148         for drawing
2149         
2150         * hildon-hvolumebar.c (hildon_hvolumebar_expose): paint background
2151         using the state of the internal volumebar, not the whole container
2152
2153         * hildon-vvolumebar.c (hildon_vvolumebar_expose): paint background
2154         using the state of the internal volumebar, not the whole container
2155
2156 2005-09-19 Tapani Palli <tapani.palli@nokia.com>
2157
2158         * hildon-widgets/hildon-dialoghelp.[ch]: added
2159         gtk_dialog_help_disable and fixed bug N#19468
2160
2161 2005-09-14  Luc Pionchon  <luc.pionchon@nokia.com>
2162
2163         * configure.ac: Release 0.9.50 
2164
2165 2005-09-13  Luc Pionchon  <luc.pionchon@nokia.com>
2166
2167         Part of N#11129,
2168
2169         * po/en_GB.po: Added "Ckct_wi_grid_no_items"
2170
2171         * hildon-widgets/hildon-grid.c
2172         (hildon_grid_class_init, hildon_grid_init): Replaced default empty
2173         label by logical name "Ckct_wi_grid_no_items"
2174
2175
2176 2005-08-31  Luc Pionchon  <luc.pionchon@nokia.com>
2177
2178         * po/en_GB.po (ecdg_ti_verify_password): translation update.
2179
2180 2005-08-30  Tommi Komulainen  <tommi.komulainen@nokia.com>
2181
2182         * configure.ac: Release 0.9.49
2183
2184 2005-08-30  Tommi Komulainen  <tommi.komulainen@nokia.com>
2185
2186         * hildon-widgets/hildon-number-editor.c (add_select_all_idle,
2187         hildon_number_editor_finalize, hildon_number_editor_entry_changed):
2188         Save the id of the idle callback and remove it when the widget is
2189         destroyed to avoid crashing.  N#18096
2190
2191 2005-08-30  Tommi Komulainen  <tommi.komulainen@nokia.com>
2192
2193         * hildon-widgets/hildon-number-editor.c (button_event_id): GSource
2194         id's are unsigned and undefined at zero (instead of signed and -1)
2195
2196 2005-08-30  Tommi Komulainen  <tommi.komulainen@nokia.com>
2197         
2198         * hildon-widgets/hildon-time-editor.c (convert_to_12h): Removed a hack
2199         that was not working.  N#16805
2200
2201 2005-08-22  Tommi Komulainen  <tommi.komulainen@nokia.com>
2202
2203         * configure.ac: Release 0.9.48
2204
2205 2005-08-22  Tommi Komulainen  <tommi.komulainen@nokia.com>
2206
2207         * hildon-widgets/hildon-grid.c (hildon_grid_set_num_columns): Never
2208         allow area_rows to be 0 (ie. before widget is visible), otherwise the
2209         initial jump_scrollbar_to_focused() scrolls wrong.  N#17152
2210
2211 2005-08-22  Tommi Komulainen  <tommi.komulainen@nokia.com>
2212
2213         * hildon-widgets/hildon-calendar-popup.c (hildon_calendar_popup_init):
2214         Do not override the week-start property of GtkCalendar according to
2215         the hildon-libs PO file, it is automatically determined from locale
2216         data.  N#12176
2217
2218 2005-08-17  Tommi Komulainen  <tommi.komulainen@nokia.com>
2219
2220         * configure.ac: Release 0.9.47
2221
2222 2005-08-17  Tommi Komulainen  <tommi.komulainen@nokia.com>
2223
2224         * hildon-widgets/hildon-get-password-dialog.c: Add "numbers_only"
2225         property for setting the password entry accept only numeric values.
2226         N#15212
2227
2228 2005-08-17  Tommi Komulainen  <tommi.komulainen@nokia.com>
2229
2230         * hildon-widgets/hildon-calendar-popup.c (MAX_YEAR, MIN_YEAR):
2231         * hildon-widgets/hildon-note.c (ELLIPSATION_STRING, BOX_SPAXING):
2232         * hildon-widgets/hildon-volumebar-range.c (CHANGE_THRESHOLD):
2233         Use defines rather than magic numbers in the code.
2234
2235 2005-08-17  Tommi Komulainen  <tommi.komulainen@nokia.com>
2236
2237         Update to new l10n packaging style.  po-files (inside this package)
2238         are not used for now, the message catalogs come from separate packages
2239         and including them here would conflict.
2240
2241         * Makefile.am (SUBDIRS): stop including po-files
2242         * Makefile.am (EXTRA_DIST):
2243         * debian/hildon-libs-l10n-engb.install:
2244         * debian/hildon-libs-l10n-src.install:
2245         * po/debian/*: Removed
2246
2247 2005-08-09  Luc Pionchon  <luc.pionchon@nokia.com>
2248
2249         * hildon-widgets/hildon-file-details-dialog.c: Added read only
2250         checks to cover gateway content as well.
2251         
2252         * hildon-widgets/hildon-time-editor.c:
2253         (hildon_time_editor_validate): Replace solid numbers with defined
2254         values
2255         (convert_to_12h): Remove "work-around" for the broken 12h timespec
2256
2257
2258 2005-08-05  Luc Pionchon  <luc.pionchon@nokia.com>
2259
2260         * hildon-widgets/hildon-color-selector.c (modify_selected): fix
2261         invalid cast from `GdkWindow' to `GtkWindow' 
2262
2263         * hildon-widgets/hildon-color-popup.c
2264         (hildon_popup_palette_expose): removed debug printing
2265
2266 2005-08-03  Luc Pionchon  <luc.pionchon@nokia.com>
2267
2268         * doc/tmpl/hildon-note.sgml: code example, use slightly less funny
2269         string examples.
2270
2271         * hildon-widgets/hildon-scroll-area.c
2272         (hildon_scroll_area_destroy): one-instruction function:
2273         removed. Call g_free directly.
2274         + minor cleanup
2275         (hildon_scroll_area_size_allocate):When a scrollbar appears to the
2276         right edge of window, size of the child is also shrinked. 'fixed'
2277         does not automatically update this data -> Doing it manually.
2278
2279         * hildon-widgets/hildon-date-editor.h: added
2280         HildonDateEditorErrorType error enumeration type, removed signal
2281         "validate-date" virtual function, added signal "date-error"
2282         virtual function.
2283
2284         * hildon-widgets/hildon-date-editor.c (hildon_date_editor_date_error):
2285         added custom info prints.
2286         (hildon_date_editor_validate_date): removed
2287         (hildon_date_editor_entry_validate): validate maximum and minimum
2288         limits on each field.
2289         (hildon_date_editor_entry_focus_out): check the date validation
2290         in simpler manner, don't put content if field is empty (spec
2291         doesn't say if there should be anything placed in the entry if
2292         it is empty).
2293         (hildon_date_editor_get_date),
2294         (hildon_date_editor_get_month),
2295         (hildon_date_editor_get_year),
2296         (hildon_date_editor_get_day): use direct entry content, so that 0
2297         indicates empty entry, and information is more accurate.
2298
2299 2005-08-01  Luc Pionchon  <luc.pionchon@nokia.com>
2300
2301         * configure.ac: Adjusted CFLAGS and removed -Werror due to the
2302         glib-2.0 flaw. See
2303         http://bugzilla.gnome.org/show_bug.cgi?id=310175 and
2304         http://bugzilla.gnome.org/show_bug.cgi?id=310216
2305
2306 2005-07-29  Luc Pionchon  <luc.pionchon@nokia.com>
2307
2308         * hildon-widgets/hildon-controlbar.h: added missing signal when end reached
2309
2310 2005-07-26  Luc Pionchon  <luc.pionchon@nokia.com>
2311
2312         * hildon-widgets/hildon-number-editor.c: 
2313         (hildon_number_editor_select_all): new function, selects all
2314         the text in the entry.
2315         * hildon-widgets/hildon-number-editor.c: added several calls to
2316         hildon_number_editor_select_all with g_idle_add.
2317
2318         * hildon-controlbar.c : add signal when end reached
2319
2320         * hildon-time-editor.c : fixed: Time chooser widget displays am/pm and time separator indicators badly alligned.
2321
2322         * hildon-time-picker.c : displays valid date at 12:00 am/pm. 
2323         
2324 2005-07-25  Luc Pionchon  <luc.pionchon@nokia.com>
2325
2326         Fixed incorrect values in <Filetype> Details Dialog
2327         
2328         Fixed help button usage in dialogs
2329         
2330         * hildon-dialoghelp.c: Added more documentation about the
2331         help signal
2332         
2333         * hildon-file-details-dialog.c: Updated to match
2334         'File Management in OSSO' version 3.0
2335         
2336         * Fixed application hang after calling gtk_main_quit
2337         
2338         * hildon-date-editor.c: Fixed HildonDateEditor that caught
2339         ESC presses needlessly
2340         
2341         * hildon-time-editor.c: Fixed memory corruption