rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=9e6c574d70746834e21670ea1ed107ad250012d0

commit 9e6c574d70746834e21670ea1ed107ad250012d0
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Wed Jan 25 17:31:05 2017 +0200

    live_view: fix the parse the group class for slider
    
    This patch fix live_view for range slider
    
    @fix
    
    Change-Id: I0708820ff191ff7688657e4ee97895ed4b0e5176
---
 src/bin/ui/live_view/elementary/live_slider.c | 17 ++++++++++++-----
 src/bin/ui/tabs.c                             |  1 +
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/bin/ui/live_view/elementary/live_slider.c 
b/src/bin/ui/live_view/elementary/live_slider.c
index 6f8d6af..5166e25 100644
--- a/src/bin/ui/live_view/elementary/live_slider.c
+++ b/src/bin/ui/live_view/elementary/live_slider.c
@@ -33,7 +33,18 @@ widget_slider_create(Evas_Object *parent, const Group2 
*group)
    unsigned int count_split = 0;
 
    Evas_Object *object = elm_slider_add(parent);
-   if (!strcmp(group->class, "vertical"))
+   elm_slider_unit_format_set(object, "%1.2f units");
+   elm_slider_indicator_format_set(object, "%1.2f");
+   elm_slider_min_max_set(object, 0, 10);
+
+   if (!strcmp(group->class, "range"))
+     {
+        elm_slider_range_enabled_set(object, true);
+        if (!strncmp(style_name, "vertical", strlen("vertical")))
+          elm_slider_horizontal_set(object, false);
+        elm_slider_range_set(object, 2, 8);
+     }
+   else if (!strcmp(group->class, "vertical"))
      elm_slider_horizontal_set(object, false);
 
    style_parsed = eina_str_split_full(style_name, "/", 2, &count_split);
@@ -45,10 +56,6 @@ widget_slider_create(Evas_Object *parent, const Group2 
*group)
    free(style_parsed[0]);
    free(style_parsed);
 
-   elm_slider_unit_format_set(object, "%1.2f units");
-   elm_slider_indicator_format_set(object, "%1.2f");
-   elm_slider_min_max_set(object, 0, 10);
-
    evas_object_smart_callback_add(object, SIGNAL_DEMO_SWALLOW_SET, 
on_swallow_check, NULL);
    evas_object_smart_callback_add(object, SIGNAL_DEMO_TEXT_SET, on_text_check, 
NULL);
    evas_object_smart_callback_add(object, SIGNAL_DEMO_SIGNAL_SEND, 
send_signal, NULL);
diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index e4d5aa4..8a5ce15 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -824,6 +824,7 @@ _shortcut_tab_num_cb(void *data __UNUSED__,
 #else
    item = eina_list_nth(tabs.items, num - 1);
 #endif
+   DBG("Switch tab by shortcut. Switch to tab #%d", num);
    if (item)
      elm_toolbar_item_selected_set(item->toolbar_item, true);
 }

-- 


Reply via email to