rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=84b6d0b1d298e3c5c5273a11cc5e92c1c94c623a

commit 84b6d0b1d298e3c5c5273a11cc5e92c1c94c623a
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Sep 20 18:53:54 2016 +0300

    Revert "ewe_ruler: don't set labels text if marker position was changed"
    
    This reverts commit c8c551619700ee2c29ce09bfb5bb0e0fe40df4be.
    
    Because of this commit labels are not updated when scrolling ruler.
---
 src/lib/ewe_ruler.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/lib/ewe_ruler.c b/src/lib/ewe_ruler.c
index 552f685..c513519 100644
--- a/src/lib/ewe_ruler.c
+++ b/src/lib/ewe_ruler.c
@@ -658,6 +658,7 @@ _ewe_ruler_marker_relative_set(Eo *obj,
      }
    marker->rel_position = pos;
 
+   sd->text_changed = EINA_TRUE;
    evas_object_smart_changed(obj);
    return EINA_TRUE;
 }
@@ -698,6 +699,7 @@ _ewe_ruler_marker_absolute_set(Eo *obj,
      }
    marker->abs_position = pos;
 
+   sd->text_changed = EINA_TRUE;
    evas_object_smart_changed(obj);
    return EINA_TRUE;
 }
@@ -736,6 +738,7 @@ _ewe_ruler_marker_visible_set(Eo *obj EINA_UNUSED,
      evas_object_hide(marker->obj);
    else if (sd->ruler_visible)
      evas_object_show(marker->obj);
+   sd->text_changed = EINA_TRUE;
    evas_object_smart_changed(obj);
    return EINA_TRUE;
 }
@@ -967,8 +970,10 @@ _ewe_ruler_efl_canvas_group_group_calculate(Eo *obj 
EINA_UNUSED,
         sd->position_changed = EINA_FALSE;
      }
    if (sd->text_changed)
-     _set_labels(sd);
-   _place_markers(sd);
+     {
+        _set_labels(sd);
+        _place_markers(sd);
+     }
 }
 
 EOLIAN static Elm_Theme_Apply

-- 


Reply via email to