aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_progressbar.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-05-11 17:26:13 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-05-11 17:27:33 +0900
commitb6a772cb2764c43a8e3ec8585ad1a4f0bf025a4b (patch)
treea037bc0e94d90f116792715e31e6920c5a36f1c6 /src/bin/elementary/test_progressbar.c
parentefl: update arcconfig to be able to work with git-phab (diff)
downloadefl-b6a772cb2764c43a8e3ec8585ad1a4f0bf025a4b.tar.gz
elm test - progress - add vertical wheel test...
yes. in theory it can exist, so add a test for it. because for flat theme i actually have an idea where vrtical vs horizontal do look different and the theme already procvided both via an alias and code would use them if needed... so... why not?
Diffstat (limited to 'src/bin/elementary/test_progressbar.c')
-rw-r--r--src/bin/elementary/test_progressbar.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/bin/elementary/test_progressbar.c b/src/bin/elementary/test_progressbar.c
index 0ac8fdf892..9b559e129a 100644
--- a/src/bin/elementary/test_progressbar.c
+++ b/src/bin/elementary/test_progressbar.c
@@ -12,6 +12,7 @@ typedef struct Progressbar_Data
Evas_Object *pb5;
Evas_Object *pb6;
Evas_Object *pb7;
+ Evas_Object *pb8;
Ecore_Timer *timer;
Evas_Object *btn_start;
Evas_Object *btn_stop;
@@ -49,7 +50,9 @@ my_progressbar_test_start(void *data, Evas_Object *obj EINA_UNUSED, void *event_
elm_progressbar_pulse(pd->pb5, EINA_TRUE);
fprintf(stderr, "s3 %p\n", pd->pb7);
elm_progressbar_pulse(pd->pb7, EINA_TRUE);
- fprintf(stderr, "s4\n");
+ fprintf(stderr, "s4 %p\n", pd->pb8);
+ elm_progressbar_pulse(pd->pb8, EINA_TRUE);
+ fprintf(stderr, "s5\n");
elm_object_disabled_set(pd->btn_start, EINA_TRUE);
elm_object_disabled_set(pd->btn_stop, EINA_FALSE);
@@ -67,6 +70,7 @@ my_progressbar_test_stop(void *data, Evas_Object *obj EINA_UNUSED, void *event_i
elm_progressbar_pulse(pd->pb2, EINA_FALSE);
elm_progressbar_pulse(pd->pb5, EINA_FALSE);
elm_progressbar_pulse(pd->pb7, EINA_FALSE);
+ elm_progressbar_pulse(pd->pb8, EINA_FALSE);
elm_object_disabled_set(pd->btn_start, EINA_FALSE);
elm_object_disabled_set(pd->btn_stop, EINA_TRUE);
@@ -217,6 +221,17 @@ test_progressbar(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve
evas_object_show(pb);
pd->pb7 = pb;
+ pb = elm_progressbar_add(win);
+ elm_progressbar_horizontal_set(pb, EINA_FALSE);
+ elm_object_style_set(pb, "wheel");
+ elm_object_text_set(pb, "Style: wheel vert");
+ elm_progressbar_pulse_set(pb, EINA_TRUE);
+ evas_object_size_hint_weight_set(pb, EVAS_HINT_EXPAND, 0.0);
+ evas_object_size_hint_align_set(pb, EVAS_HINT_FILL, 0.5);
+ elm_box_pack_end(bx, pb);
+ evas_object_show(pb);
+ pd->pb8 = pb;
+
bt_bx = elm_box_add(win);
elm_box_horizontal_set(bt_bx, EINA_TRUE);
evas_object_size_hint_weight_set(bt_bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);