Page MenuHomePhabricator

Missing description disabled_visible for vertical slider in Elementary slider.edc
Closed, ResolvedPublic

Description

How to reproduce:

  1. Edit efl/src/examples/elementary/slider_example.c like this
--- src/examples/elementary/slider_example.c
+++ src/examples/elementary/slider_example.c
   @@ -114,6 +114,8 @@ elm_main(int argc, char **argv)
                                             _indicator_free);
    evas_object_size_hint_align_set(sl, 0.5, EVAS_HINT_FILL);
    evas_object_size_hint_weight_set(sl, 0, EVAS_HINT_EXPAND);
+   elm_object_disabled_set(sl, EINA_TRUE);
+   elm_slider_unit_format_set(sl, "%1.0f units");
    elm_box_pack_end(bx, sl);
    evas_object_show(sl);
  1. Compile it and run. The window shows up but an error is printed:
ERR<25717>:edje lib/edje/edje_calc.c:731 _edje_part_description_apply() Cannot find description "disabled_visible" in part "limits" from group "elm/slider/vertical/default". Fallback to default description.
*** Backtrace ***
/usr/lib/libeina.so.1    0xffffffffb7293c1c 0xffffffffb7273000
/usr/lib/libeina.so.1    0xffffffffb72949b7 0xffffffffb7273000
/usr/lib/libeina.so.1    0xffffffffb72959ec 0xffffffffb7273000
/usr/lib/libedje.so.1    0xffffffffb6e0367c 0xffffffffb6ddc000
/usr/lib/libedje.so.1    0xffffffffb6e55476 0xffffffffb6ddc000
/usr/lib/libembryo.so.1  0xffffffffb68172b9 0xffffffffb6815000
/usr/lib/libembryo.so.1  0xffffffffb6819298 0xffffffffb6815000
/usr/lib/libedje.so.1    0xffffffffb6e589d2 0xffffffffb6ddc000
/usr/lib/libedje.so.1    0xffffffffb6e76496 0xffffffffb6ddc000
/usr/lib/libedje.so.1    0xffffffffb6e779fa 0xffffffffb6ddc000
/usr/lib/libedje.so.1    0xffffffffb6e720dd 0xffffffffb6ddc000
/usr/lib/libedje.so.1    0xffffffffb6e7247b 0xffffffffb6ddc000
/usr/lib/libedje.so.1    0xffffffffb6e7dfff 0xffffffffb6ddc000
/usr/lib/libedje.so.1    0xffffffffb6e83b88 0xffffffffb6ddc000
/usr/lib/libelementary.so.1      0xffffffffb751d485 0xffffffffb7337000
/usr/lib/libelementary.so.1      0xffffffffb755a02f 0xffffffffb7337000
/usr/lib/libelementary.so.1      0xffffffffb7519903 0xffffffffb7337000
/usr/lib/libefl.so.1     0xffffffffb730f123 0xffffffffb72fa000
/usr/lib/libelementary.so.1      0xffffffffb751a7dc 0xffffffffb7337000

This happens for sliders which are vertical, disabled and elm_slider_unit_format_set() has been called.
3./4. The error disappears if the following change is made to efl/data/elementary/themes/edc/elm/slider.edc

--- data/elementary/themes/edc/elm/slider.edc
+++ data/elementary/themes/edc/elm/slider.edc
@@ -1070,6 +1070,12 @@ group { name: "elm/slider/vertical/default";
             rel1.offset: 2 -3;
             rel2.offset: -3 -3;
          }
+         description { state: "disabled_visible" 0.0;
+            inherit: "default" 0.0;
+            rel1.offset: 2 -3;
+            rel2.offset: -3 -3;
+            color: 255 255 255 64;
+         }
       }
       part { name: "elm.units"; type: TEXT; mouse_events: 0;
          effect: SHADOW BOTTOM;
escwyp created this task.Jan 21 2017, 7:40 AM
escwyp renamed this task from Missing part disabled_visible for vertical slider in Elementary slider.edc to Missing description disabled_visible for vertical slider in Elementary slider.edc .Jan 31 2017, 12:16 PM
stefan_schmidt triaged this task as High priority.Feb 10 2017, 7:06 AM