summaryrefslogtreecommitdiff
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
parenta221bec6d0a44b01b9e771b3c59f6e28ea2fb86f (diff)
Elm Progressbar test: Add in examples of efl regressions to progressbar.
-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
105test_progressbar(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 105test_progressbar(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
106{ 106{
107 Evas_Object *win, *pb, *bx, *hbx, *bt, *bt_bx, *ic1, *ic2; 107 Evas_Object *win, *pb, *bx, *hbx, *bt, *bt_bx, *ic1, *ic2;
108 char buf[PATH_MAX]; 108 char buf[PATH_MAX], form[20];
109 Progressbar_Data *pd; 109 Progressbar_Data *pd;
110 110
111 pd = (Progressbar_Data *)calloc(1, sizeof(Progressbar_Data)); 111 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
164 elm_box_pack_end(bx, hbx); 164 elm_box_pack_end(bx, hbx);
165 evas_object_show(hbx); 165 evas_object_show(hbx);
166 166
167 snprintf(form, 20, "%d percent (%d %%)", 50, 50);
168
167 pb = elm_progressbar_add(win); 169 pb = elm_progressbar_add(win);
168 elm_progressbar_horizontal_set(pb, EINA_FALSE); 170 elm_progressbar_horizontal_set(pb, EINA_FALSE);
169 evas_object_size_hint_weight_set(pb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 171 evas_object_size_hint_weight_set(pb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
170 evas_object_size_hint_align_set(pb, EVAS_HINT_FILL, EVAS_HINT_FILL); 172 evas_object_size_hint_align_set(pb, EVAS_HINT_FILL, EVAS_HINT_FILL);
171 elm_box_pack_end(hbx, pb); 173 elm_box_pack_end(hbx, pb);
174 elm_progressbar_unit_format_set(pb, form);
175 elm_progressbar_value_set(pb, .50);
172 elm_object_text_set(pb, "percent"); 176 elm_object_text_set(pb, "percent");
173 evas_object_show(pb); 177 evas_object_show(pb);
174 pd->pb4 = pb; 178 pd->pb4 = pb;