Allow to use HILDON_UI_MODE_NORMAL on the HildonTouchSelector
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 3 Jun 2009 19:15:51 +0000 (21:15 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 25 Jun 2009 12:20:40 +0000 (14:20 +0200)
commitae7c25e920f7773325a1f48b23fd86018c03f2ae
tree5184ad52b77059ddbfdc8132af4ea5c8c1020305
parent50d9c2ed3c66110399b422ef6bd390b6526a111a
Allow to use HILDON_UI_MODE_NORMAL on the HildonTouchSelector

* hildon/hildon-picker-dialog.c:
(selection_completed): take into account HILDON_UI_MODE_NORMAL
* hildon/hildon-touch-selector.c
(hildon_touch_selector_init): Initialize hildon-ui-mode
(hildon_touch_selector_row_activated): new callback for the
"row-activated" signal, in order to save the last activated
(hildon_touch_selector_check_ui_mode_coherence): new method that checks
if the current hildon-ui-mode is coherent with the touch selector
(hildon_touch_selector_class_init)
(hildon_touch_selector_get_property)
(hildon_touch_selector_set_property)
Added "hildon-ui-mode" property
(disconnect_model_handlers): renamed to clean_column
(hildon_touch_selector_remove): use clean_column function
(_create_new_column): use the hildon-ui-mode to create the treeview, and
only select the first element on HILDON_UI_MODE_EDIT
(hildon_touch_selector_column_init): Initialize last_activate
(hildon_touch_selector_append_column): check that the touch selector
is coherent with the current hildon-ui-mode
(hildon_touch_selector_get_hildon_ui_mode)
(hildon_touch_selector_set_hildon_ui_mode)
Added a getter/setter for the hildon-ui-mode property
(hildon_touch_selector_get_last_activated_row): Added this method in
order to get the last activated row
* examples/hildon-touch-selector-normal-mode-example.c
New example, that shows how to use the HildonTouchSelector in
HILDON_UI_MODE_NORMAL

Fixes: NB#95685 (Add field dialog should use HILDON_UI_MODE_NORMAL), using
Kristian Rietveld <kris@lanedo.com> advices
ChangeLog
examples/Makefile.am
examples/hildon-touch-selector-normal-mode-example.c [new file with mode: 0644]
hildon/hildon-picker-dialog.c
hildon/hildon-touch-selector.c
hildon/hildon-touch-selector.h