aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_progressbar.c
diff options
context:
space:
mode:
authorStephen Houston <stephen@localhost.localdomain>2018-02-09 10:21:55 -0600
committerStephen Houston <stephen@localhost.localdomain>2018-02-09 10:23:29 -0600
commita35d4a2ceed5574a2499a7a1c166015a73a6e654 (patch)
tree42230dd49c340d9cce270f0efe27b24ff8cc42f6 /src/bin/elementary/test_progressbar.c
parentecore_wl2: Destroy offscreen event handler in surface destroy (diff)
downloadefl-a35d4a2ceed5574a2499a7a1c166015a73a6e654.tar.gz
Elm Progressbar test: Add in examples of efl regressions to progressbar.
Diffstat (limited to 'src/bin/elementary/test_progressbar.c')
-rw-r--r--src/bin/elementary/test_progressbar.c6
1 files changed, 5 insertions, 1 deletions
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;