okra pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a35d4a2ceed5574a2499a7a1c166015a73a6e654

commit a35d4a2ceed5574a2499a7a1c166015a73a6e654
Author: Stephen Houston <stephen@localhost.localdomain>
Date:   Fri Feb 9 10:21:55 2018 -0600

    Elm Progressbar test: Add in examples of efl regressions to progressbar.
---
 src/bin/elementary/test_progressbar.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/elementary/test_progressbar.c 
b/src/bin/elementary/test_progressbar.c
index 91282c0cde..3599c72f21 100644
--- a/src/bin/elementary/test_progressbar.c
+++ b/src/bin/elementary/test_progressbar.c
@@ -105,7 +105,7 @@ void
 test_progressbar(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void 
*event_info EINA_UNUSED)
 {
    Evas_Object *win, *pb, *bx, *hbx, *bt, *bt_bx, *ic1, *ic2;
-   char buf[PATH_MAX];
+   char buf[PATH_MAX], form[20];
    Progressbar_Data *pd;
 
    pd = (Progressbar_Data *)calloc(1, sizeof(Progressbar_Data));
@@ -164,11 +164,15 @@ test_progressbar(void *data EINA_UNUSED, Evas_Object *obj 
EINA_UNUSED, void *eve
    elm_box_pack_end(bx, hbx);
    evas_object_show(hbx);
 
+   snprintf(form, 20, "%d percent (%d %%)", 50, 50);
+
    pb = elm_progressbar_add(win);
    elm_progressbar_horizontal_set(pb, EINA_FALSE);
    evas_object_size_hint_weight_set(pb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    evas_object_size_hint_align_set(pb, EVAS_HINT_FILL, EVAS_HINT_FILL);
    elm_box_pack_end(hbx, pb);
+   elm_progressbar_unit_format_set(pb, form);
+   elm_progressbar_value_set(pb, .50);
    elm_object_text_set(pb, "percent");
    evas_object_show(pb);
    pd->pb4 = pb;

-- 


Reply via email to