seoz pushed a commit to branch master.

commit 36ceaf6e1c19aafd96cc8e57e4bf95131bc0468d
Author: Daniel Juyung Seo <[email protected]>
Date:   Sat Aug 24 10:44:23 2013 +0900

    test_spinner.c: added a better example for base/round set.
---
 src/bin/test_spinner.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/bin/test_spinner.c b/src/bin/test_spinner.c
index b699153..6d02183 100644
--- a/src/bin/test_spinner.c
+++ b/src/bin/test_spinner.c
@@ -28,6 +28,17 @@ test_spinner(void *data __UNUSED__, Evas_Object *obj 
__UNUSED__, void *event_inf
    evas_object_show(sp);
 
    sp = elm_spinner_add(win);
+   elm_spinner_label_format_set(sp, "Base 5.5, Round 2 : %1.1f");
+   elm_spinner_min_max_set(sp, -100.0, 100.0);
+   elm_spinner_round_set(sp, 2);
+   elm_spinner_base_set(sp, 5.5);
+   elm_spinner_value_set(sp, 5.5);
+   evas_object_size_hint_align_set(sp, EVAS_HINT_FILL, 0.5);
+   evas_object_size_hint_weight_set(sp, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+   elm_box_pack_end(bx, sp);
+   evas_object_show(sp);
+
+   sp = elm_spinner_add(win);
    elm_spinner_label_format_set(sp, "Percentage %%%1.2f something");
    elm_spinner_step_set(sp, 5.0);
    elm_spinner_min_max_set(sp, 0.0, 100.0);
@@ -60,9 +71,6 @@ test_spinner(void *data __UNUSED__, Evas_Object *obj 
__UNUSED__, void *event_inf
    elm_spinner_wrap_set(sp, EINA_TRUE);
    elm_spinner_min_max_set(sp, 1, 12);
    elm_spinner_value_set(sp, 1);
-   elm_spinner_step_set(sp, 0.05);
-   elm_spinner_base_set(sp, 1);
-   elm_spinner_round_set(sp, 1);
    elm_spinner_label_format_set(sp, "%.0f");
    elm_spinner_editable_set(sp, EINA_FALSE);
    elm_spinner_special_value_add(sp, 1, "January");

-- 

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk

Reply via email to