aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary/test_ui_slider.c
diff options
context:
space:
mode:
authorYeongJong Lee <yj34.lee@samsung.com>2018-02-26 21:11:58 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-02-26 21:11:59 +0900
commitdca1581b032014845d1ca590aaad101dd590a5bf (patch)
tree2296de0ed63b0a858fdc4cfcb02a2ceea740f85e /src/bin/elementary/test_ui_slider.c
parentefl.ui.check: change signal name for icon/text (diff)
downloadefl-dca1581b032014845d1ca590aaad101dd590a5bf.tar.gz
efl.ui.slider: change signal name for icon/text
Summary: See also 73f8b3b78f0ff92ddfc1c16426bf7c176f10293a because slider use "elm.swallow.icon" part name, it don't need to edit .c file. Test Plan: 1. elementary_test -to efl.ui.slider 2. check that icon and text are visible Reviewers: cedric, woohyun, Jaehyun_Cho Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D5822
Diffstat (limited to 'src/bin/elementary/test_ui_slider.c')
-rw-r--r--src/bin/elementary/test_ui_slider.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/elementary/test_ui_slider.c b/src/bin/elementary/test_ui_slider.c
index 8fe7047778..a47fa09675 100644
--- a/src/bin/elementary/test_ui_slider.c
+++ b/src/bin/elementary/test_ui_slider.c
@@ -29,8 +29,9 @@ _slider_changed_cb(void *data EINA_UNUSED, const Efl_Event *ev)
void
test_ui_slider(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
- Eo *win, *bx, *hbx;
+ Eo *win, *bx, *hbx, *ic;
double step;
+ char buf[PATH_MAX];
win = efl_add(EFL_UI_WIN_CLASS, NULL,
efl_ui_win_type_set(efl_added, EFL_UI_WIN_BASIC),
@@ -40,8 +41,13 @@ test_ui_slider(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
bx = efl_add(EFL_UI_BOX_CLASS, win,
efl_content_set(win, efl_added));
+ snprintf(buf, sizeof(buf), "%s/images/logo_small.png", elm_app_data_dir_get());
+ ic = efl_add(EFL_UI_IMAGE_CLASS, win,
+ efl_file_set(efl_added, buf, NULL));
+
efl_add(EFL_UI_SLIDER_CLASS, bx,
efl_text_set(efl_added, "Horizontal"),
+ efl_content_set(efl_added, ic),
efl_ui_slider_part_indicator_visible_mode_set(efl_part(efl_added, "indicator"),
EFL_UI_SLIDER_INDICATOR_VISIBLE_MODE_NONE),
efl_gfx_size_hint_min_set(efl_added, EINA_SIZE2D(160, 0)),