aboutsummaryrefslogtreecommitdiff
path: root/examples/hildon-time-button-example.c
AgeCommit message (Collapse)Author
2009-04-30Renamed src/ to hildon/Alberto Garcia
* src/ * Makefile.am * configure.ac * doc/Makefile.am * doc/hildon.types * po/POTFILES.in: Renamed src/ to hildon/ * examples/*.c * debian/changelog * debian/rules: Include <hildon/hildon.h> directly in all examples.
2009-04-28New API to change format policy on HildonTimeSelectorAlejandro Piñeiro
* src/hildon-time-selector.h: Added HildonTimeSelectorFormatPolicy * src/hildon-time-selector.c: Added PROP_TIME_FORMAT_POLICY (_check_ampm_format): renamed to check_automatic_ampm_format (update_format_policy), (update_format_dependant_columns): new functions (hildon_time_selector_class_init) (hildon_time_selector_contructor) (hildon_time_selector_init) (hildon_time_selector_get_property) (hildon_time_selector_set_property) (hildon_time_selector_get_time) (hildon_time_selector_set_time) * src/hildon-touch-selector.h: new file * src/hildon-touch-selector.c (hildon_touch_selector_emit_changed) (hildon_touch_selector_block_changed) (hildon_touch_selector_unblock_changed) Added functions to allow to block the emission of the "changed" signal * src/hildon-picker-dialog.c (hildon_picker_dialog_show): call the parent show before the custom code * examples/hildon-time-button-example.c Modified, so now you can configure the time format using the new property Added a new property "time-format-policy" that allow to choose the time format: AM/PM, 24H or AUTOMATIC. AUTOMATIC is the default one. In this case it uses gconf in order to check if the time selector must use AM/PM or 24H. Fixes: NB#111606 (HildonTimeSelector should expose API to set/unset am/pm mode)
2009-01-202009-01-20 Alejandro G. Castro <alex@igalia.com>Alejandro G. Castro
Added a new function to the HildonTimeButton widget that allows to change the step of the minutes in the selector associated with the button: hildon_time_button_new_step * src/hildon-time-button.c, (hildon_time_button_init), (hildon_time_button_new), (hildon_time_button_new_step): * src/hildon-time-button.h: Added the new function and refactored the code. * examples/hildon-time-button-example.c, (main): We have replaced the function without parameters with the function with the steps set to 5 Fixes: NB#98317 (Provide parametarized API for TimePicker widget)
2008-11-242008-11-24 Claudio Saavedra <csaavedra@igalia.com>Claudio Saavedra
Based on initial code by Christian Dywan (christian@imendio.com) * doc/hildon-docs.sgml: Add section for hildon-main. * examples/*.c: (main): Replace gtk_main() calls with hildon_gtk_main(). * src/Makefile.am: Add new hildon-main.[ch] * src/hildon-defines.h: Update the icon sizes. * src/hildon-main.c: (+hildon_init), (+hildon_gtk_init): Add new library initialization files and register icon sizes. * src/hildon-main.h: New declarations. * src/hildon.h: Include hildon-main.h Add new initialization functions to the library. These methods will register the hildon specific icon sizes and can be used in the future for other hildon specific bits. Fixes: NB#92476 (Update icon size constants to Fremantle (hildon-defines.h)) Fixes: NB#93075 (Update icon size constants to Fremantle)
2008-10-232008-10-23 Alejandro Pinheiro <apinheiro@igalia.com>Alejandro Piñeiro
* debian/control: Added new package libhildon1-examples, in order to pack the current hildon examples as documentation * debian/rules: Not to compress .c files, modify some includes on the examples (as normally are compiled locally, but when installed it will require to include the installed libhildon1 library), and rename Makefile.static * examples/Makefile.am: Added examplesdir and examples_DATA, in order to install all the example files on the new example package * examples/Makefile.static: Added static makefile that can be used to compile the examples, once installed the new example package * examples: Most of the examples were modified in order to grant that all use only '#include "hildon.h"', in order to be easy to prepare it on the example package
2008-09-232008-09-22 Alejandro Pinheiro <apinheiro@igalia.com>Alejandro Piñeiro
* src/hildon-touch-selector.c: (hildon_touch_selector_class_init): added gtkrc bits in order to ensure that the treeview inside the touch selector is in fremantle hildon mode * examples/hildon-date-button-example.c * examples/hildon-picker-button-multicolumn-example.c * examples/hildon-touch-selector-entry-example.c * examples/hildon-touch-selector-example.c * examples/hildon-time-button-example.c * examples/hildon-picker-button-example.c: (main): Remove the gtkrc bits, now hadled by hildon-touch-selector.c
2008-08-282008-08-28 Alejandro Pinheiro <apinheiro@igalia.com> * ↵Alejandro Piñeiro
src/hildon-touch-selector.c (_create_new_column): use of hildon_gtk_tree_view_new to create the treeview, instead of use directly g_object_new (_create_new_column): update the property name "vindicator-mode" for the new one "vscrollbar-policy" * examples/hildon-date-button-example.c * examples/hildon-picker-button-multicolumn-example.c * examples/hildon-touch-selector-entry-example.c * examples/hildon-touch-selector-example.c * examples/hildon-time-button-example.c * examples/hildon-picker-button-example.c Add a gtk_rc_parse_string in order to set the hildon-mode to HILDON_FREMANTLE to all the treeviews inside a pannable area.
2008-08-072008-08-07 Alberto Garcia <agarcia@igalia.com>Alberto Garcia
HildonButtonFlags split into HildonButtonArrangement (to set the button layout) and HildonSizeType (which can be used for any widget). * src/hildon-button.h * src/hildon-button.c (hildon_button_class_init) (hildon_button_set_arrangement) (hildon_button_set_property): New "size-flags" property. "arrangement-flags" renamed to "arrangement". (hildon_button_new, hildon_button_new_with_text) (hildon_button_new_full): Constructors updated to reflect type changes. * src/hildon-helper.h * src/hildon-helper.c (hildon_helper_set_theme_size): New function to set the size of a widget. * src/Makefile.am * src/hildon.h * src/hildon-button-helpers.c * src/hildon-button-helpers.h: New hildon-button-helpers module. * src/hildon-date-button.c * src/hildon-date-button.h * src/hildon-picker-button.c * src/hildon-picker-button.h * src/hildon-time-button.c * src/hildon-time-button.h: Updated widgets to reflect HildonButton API changes. * examples/hildon-button-example.c * examples/hildon-date-button-example.c * examples/hildon-picker-button-example.c * examples/hildon-picker-button-multicolumn-example.c * examples/hildon-time-button-example.c * examples/hildon-touch-selector-entry-example.c * examples/hildon-touch-selector-example.c: Updated examples to reflect HildonButton API changes.
2008-07-292008-07-29 Claudio Saavedra <csaavedra@igalia.com>Claudio Saavedra
* examples/Makefile.am: Add below examples. * examples/hildon-date-button-example.c: * examples/hildon-picker-button-example.c: * examples/hildon-picker-button-multicolumn-example.c: * examples/hildon-time-button-example.c: * examples/hildon-touch-picker-example.c: Add examples for the reciently added touch pickers, picker dialogs, and picker button widgets.