aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-12-01 01:14:16 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-12-01 01:14:16 +0900
commit888d1eebe5c3cb30dea2f16311ea3db488f4db82 (patch)
treed164929296795a8a4da549964e588e43484f6f05
parentslider: Clean up of the previous slider patch. (diff)
downloadelementary-devs/seoz/slider.tar.gz
slider: working on.devs/seoz/slider
-rw-r--r--src/bin/test.c2
-rw-r--r--src/bin/test_slider.c25
2 files changed, 27 insertions, 0 deletions
diff --git a/src/bin/test.c b/src/bin/test.c
index ed33f630c..2e0ecaf05 100644
--- a/src/bin/test.c
+++ b/src/bin/test.c
@@ -93,6 +93,7 @@ void test_inwin2(void *data, Evas_Object *obj, void *event_info);
void test_scaling(void *data, Evas_Object *obj, void *event_info);
void test_scaling2(void *data, Evas_Object *obj, void *event_info);
void test_slider(void *data, Evas_Object *obj, void *event_info);
+void test_slider_indicator_visible_mode(void *data, Evas_Object *obj, void *event_info);
void test_actionslider(void *data, Evas_Object *obj, void *event_info);
void test_genlist(void *data, Evas_Object *obj, void *event_info);
void test_genlist2(void *data, Evas_Object *obj, void *event_info);
@@ -737,6 +738,7 @@ add_tests:
//------------------------------//
ADD_TEST(NULL, "Range Values", "Spinner", test_spinner);
ADD_TEST(NULL, "Range Values", "Slider", test_slider);
+ ADD_TEST(NULL, "Range Values", "Slider Indicator Visible Mode", test_slider_indicator_visible_mode);
ADD_TEST(NULL, "Range Values", "Progressbar", test_progressbar);
ADD_TEST(NULL, "Range Values", "Progressbar 2", test_progressbar2);
diff --git a/src/bin/test_slider.c b/src/bin/test_slider.c
index c856ca922..5b60d4f8e 100644
--- a/src/bin/test_slider.c
+++ b/src/bin/test_slider.c
@@ -309,3 +309,28 @@ test_slider(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in
evas_object_show(win);
}
+
+void
+test_slider_indicator_visible_mode(void *data EINA_UNUSED,
+ Evas_Object *obj EINA_UNUSED,
+ void *event_info EINA_UNUSED)
+{
+ Evas_Object *win = NULL, *bx = NULL, *fr = NULL, *bx2 = NULL, *sl = NULL;
+
+ win = elm_win_util_standard_add("slider-indicator-visible-mode",
+ "Slider Indicator Visible Mode");
+ elm_win_autodel_set(win, EINA_TRUE);
+
+ bx = elm_box_add(win);
+ evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_win_resize_object_add(win, bx);
+ evas_object_show(bx);
+
+ fr = elm_frame_add(bx);
+ evas_object_size_hint_weight_set(fr, EVAS_HINT_EXPAND, 0.0);
+ evas_object_size_hint_align_set(fr, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_box_pack_end(bx, fr);
+ evas_object_show(fr);
+
+ evas_object_show(win);
+}