summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-08-05 22:26:48 +0200
committerBoris Faure <billiob@gmail.com>2019-08-06 22:42:44 +0200
commit9299566707e6b022ac2c326a25b9ed526b0c120c (patch)
tree7b6d0ed6550c113f6133e761f7051e6686dbdef7 /src
parent413b8791f47345f4bdb6c8748fced5bb584b6726 (diff)
options_behavior: avoid eo message
I have no idea why this fixes anything
Diffstat (limited to 'src')
-rw-r--r--src/bin/options_behavior.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/options_behavior.c b/src/bin/options_behavior.c
index 5e30a9b..9e92cc9 100644
--- a/src/bin/options_behavior.c
+++ b/src/bin/options_behavior.c
@@ -567,16 +567,14 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
567 evas_object_show(o); 567 evas_object_show(o);
568 568
569 o = elm_slider_add(bx); 569 o = elm_slider_add(bx);
570 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
571 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0);
572 elm_slider_span_size_set(o, 40);
573 elm_slider_step_set(o, 1);
574 elm_slider_units_format_function_set(o,
575 sback_units_format,
576 (void(*)(char*))eina_stringshare_del);
577 elm_slider_indicator_format_function_set(o, 570 elm_slider_indicator_format_function_set(o,
578 sback_indicator_units_format, 571 sback_indicator_units_format,
579 (void(*)(char*))eina_stringshare_del); 572 (void(*)(char*))eina_stringshare_del);
573 elm_slider_units_format_function_set(o,
574 sback_units_format,
575 (void(*)(char*))eina_stringshare_del);
576 elm_slider_span_size_set(o, 40);
577 elm_slider_step_set(o, 1);
580 /* http://graphics.stanford.edu/~seander/bithacks.html#IntegerLogFloat */ 578 /* http://graphics.stanford.edu/~seander/bithacks.html#IntegerLogFloat */
581 union { 579 union {
582 float v; 580 float v;
@@ -586,6 +584,8 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
586 u.c = (u.c >> 23) - 127; 584 u.c = (u.c >> 23) - 127;
587 elm_slider_min_max_set(o, 0.0, 17.0); 585 elm_slider_min_max_set(o, 0.0, 17.0);
588 elm_slider_value_set(o, u.c); 586 elm_slider_value_set(o, u.c);
587 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
588 evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.0);
589 elm_box_pack_end(bx, o); 589 elm_box_pack_end(bx, o);
590 evas_object_show(o); 590 evas_object_show(o);
591 evas_object_smart_callback_add(o, "delay,changed", 591 evas_object_smart_callback_add(o, "delay,changed",