summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-11-26 20:47:58 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-11-26 20:47:58 +0900
commitb5e377412a5135ccf1cccc98446385259b16c48e (patch)
tree43c046f27cb378c7e6c980cafefec00dd372ef93
parentafb2e7230a16066159a04ec4b19af06afb92d8c0 (diff)
test_3d: Set indicator format explictly.
Indicator text is not visible if one does not set the indicator format. This fixes T1867.
-rw-r--r--src/bin/test_3d.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/test_3d.c b/src/bin/test_3d.c
index 35801e1b8..a19e6e42a 100644
--- a/src/bin/test_3d.c
+++ b/src/bin/test_3d.c
@@ -242,6 +242,7 @@ test_3d(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info E
242 sl = elm_slider_add(win); 242 sl = elm_slider_add(win);
243 elm_object_text_set(sl, "Rot X"); 243 elm_object_text_set(sl, "Rot X");
244 elm_slider_unit_format_set(sl, "%1.0f units"); 244 elm_slider_unit_format_set(sl, "%1.0f units");
245 elm_slider_indicator_format_set(sl, "%1.0f units");
245 elm_slider_span_size_set(sl, 360); 246 elm_slider_span_size_set(sl, 360);
246 elm_slider_min_max_set(sl, 0, 360); 247 elm_slider_min_max_set(sl, 0, 360);
247 evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5); 248 evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5);
@@ -253,6 +254,7 @@ test_3d(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info E
253 sl = elm_slider_add(win); 254 sl = elm_slider_add(win);
254 elm_object_text_set(sl, "Rot Y"); 255 elm_object_text_set(sl, "Rot Y");
255 elm_slider_unit_format_set(sl, "%1.0f units"); 256 elm_slider_unit_format_set(sl, "%1.0f units");
257 elm_slider_indicator_format_set(sl, "%1.0f units");
256 elm_slider_span_size_set(sl, 360); 258 elm_slider_span_size_set(sl, 360);
257 elm_slider_min_max_set(sl, 0, 360); 259 elm_slider_min_max_set(sl, 0, 360);
258 evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5); 260 evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5);
@@ -264,6 +266,7 @@ test_3d(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info E
264 sl = elm_slider_add(win); 266 sl = elm_slider_add(win);
265 elm_object_text_set(sl, "Rot Z"); 267 elm_object_text_set(sl, "Rot Z");
266 elm_slider_unit_format_set(sl, "%1.0f units"); 268 elm_slider_unit_format_set(sl, "%1.0f units");
269 elm_slider_indicator_format_set(sl, "%1.0f units");
267 elm_slider_span_size_set(sl, 360); 270 elm_slider_span_size_set(sl, 360);
268 elm_slider_min_max_set(sl, 0, 360); 271 elm_slider_min_max_set(sl, 0, 360);
269 evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5); 272 evas_object_size_hint_align_set(sl, EVAS_HINT_FILL, 0.5);
@@ -275,6 +278,7 @@ test_3d(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info E
275 sl = elm_slider_add(win); 278 sl = elm_slider_add(win);
276 elm_object_text_set(sl, "CX Off"); 279 elm_object_text_set(sl, "CX Off");
277 elm_slider_unit_format_set(sl, "%1.0f units"); 280 elm_slider_unit_format_set(sl, "%1.0f units");
281 elm_slider_indicator_format_set(sl, "%1.0f units");
278 elm_slider_span_size_set(sl, 360); 282 elm_slider_span_size_set(sl, 360);
279 elm_slider_min_max_set(sl, -320, 320); 283 elm_slider_min_max_set(sl, -320, 320);
280 elm_slider_value_set(sl, cxo); 284 elm_slider_value_set(sl, cxo);
@@ -287,6 +291,7 @@ test_3d(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info E
287 sl = elm_slider_add(win); 291 sl = elm_slider_add(win);
288 elm_object_text_set(sl, "CY Off"); 292 elm_object_text_set(sl, "CY Off");
289 elm_slider_unit_format_set(sl, "%1.0f units"); 293 elm_slider_unit_format_set(sl, "%1.0f units");
294 elm_slider_indicator_format_set(sl, "%1.0f units");
290 elm_slider_span_size_set(sl, 360); 295 elm_slider_span_size_set(sl, 360);
291 elm_slider_min_max_set(sl, -320, 320); 296 elm_slider_min_max_set(sl, -320, 320);
292 elm_slider_value_set(sl, cyo); 297 elm_slider_value_set(sl, cyo);
@@ -299,6 +304,7 @@ test_3d(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info E
299 sl = elm_slider_add(win); 304 sl = elm_slider_add(win);
300 elm_object_text_set(sl, "Foc"); 305 elm_object_text_set(sl, "Foc");
301 elm_slider_unit_format_set(sl, "%1.0f units"); 306 elm_slider_unit_format_set(sl, "%1.0f units");
307 elm_slider_indicator_format_set(sl, "%1.0f units");
302 elm_slider_span_size_set(sl, 360); 308 elm_slider_span_size_set(sl, 360);
303 elm_slider_min_max_set(sl, 1, 2000); 309 elm_slider_min_max_set(sl, 1, 2000);
304 elm_slider_value_set(sl, focv); 310 elm_slider_value_set(sl, focv);
@@ -311,6 +317,7 @@ test_3d(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info E
311 sl = elm_slider_add(win); 317 sl = elm_slider_add(win);
312 elm_object_text_set(sl, "Z0"); 318 elm_object_text_set(sl, "Z0");
313 elm_slider_unit_format_set(sl, "%1.0f units"); 319 elm_slider_unit_format_set(sl, "%1.0f units");
320 elm_slider_indicator_format_set(sl, "%1.0f units");
314 elm_slider_span_size_set(sl, 360); 321 elm_slider_span_size_set(sl, 360);
315 elm_slider_min_max_set(sl, -2000, 2000); 322 elm_slider_min_max_set(sl, -2000, 2000);
316 elm_slider_value_set(sl, z0v); 323 elm_slider_value_set(sl, z0v);