From: Claudio Saavedra Date: Fri, 19 Sep 2008 13:36:55 +0000 (+0000) Subject: 2008-09-19 Claudio Saavedra X-Git-Tag: 2.1.66-1~498 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=0fa626f4dd3e9605f1e1feb20c38add58905b943;p=hildon 2008-09-19 Claudio Saavedra * examples/hildon-picker-button-example.c: (main): Select an item in the selector before setting it to the button. --- diff --git a/ChangeLog b/ChangeLog index 737eeab..9e54a35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-09-19 Claudio Saavedra + * examples/hildon-picker-button-example.c: (main): Select an item + in the selector before setting it to the button. + +2008-09-19 Claudio Saavedra + * src/hildon-picker-button.c: (hildon_picker_button_set_selector): Update button's value if the selector has an item active. diff --git a/examples/hildon-picker-button-example.c b/examples/hildon-picker-button-example.c index 7b78ecc..7090174 100644 --- a/examples/hildon-picker-button-example.c +++ b/examples/hildon-picker-button-example.c @@ -63,6 +63,10 @@ main (int argc, char **args) hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (selector), "Australia"); + /* Select any item, just to show that during selector's setting, the currently selected + item will be displayed in the button's value. */ + hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (selector), 0, 2); + hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (button), HILDON_TOUCH_SELECTOR (selector));