rimmed pushed a commit to branch master.

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

commit a646d1dbbf0b22b9b00dab88408b34475f914c74
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Thu Mar 31 14:02:14 2016 +0300

    property_demo_swallow: change stlye and image path to utf8
    
    Or else such constructions like on&off will be ignored and won't work at all
---
 src/bin/ui/property_demo_swallow.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/bin/ui/property_demo_swallow.c 
b/src/bin/ui/property_demo_swallow.c
index 34766e2..b9a6314 100644
--- a/src/bin/ui/property_demo_swallow.c
+++ b/src/bin/ui/property_demo_swallow.c
@@ -269,7 +269,7 @@ _on_image_done(void *data,
                Evas_Object *obj __UNUSED__,
                void *event_info __UNUSED__)
 {
-   const char *value;
+   char *value;
    const char *selected;
    Eina_List *list_selected = (Eina_List *)event_info;
    Demo_Swallow_Prop_Data *pd = (Demo_Swallow_Prop_Data *)data;
@@ -278,9 +278,10 @@ _on_image_done(void *data,
 
    if (!list_selected) return false;
 
-   value = elm_entry_entry_get(pd->picture);
+   value = elm_entry_markup_to_utf8(elm_entry_entry_get(obj));
    selected = eina_list_data_get(list_selected);
-   if (strcmp(value, selected) == 0) return true;
+   if (strcmp(value, selected) == 0)
+     goto end;
 
    elm_entry_entry_set(pd->picture, selected);
 
@@ -290,6 +291,8 @@ _on_image_done(void *data,
 
    evas_object_smart_callback_call(ap.win, SIGNAL_DEMO_SWALLOW_SET, pd->part);
 
+end:
+   free(value);
    return true;
 }
 
@@ -332,15 +335,17 @@ _on_style_change(void *data,
 {
    Demo_Swallow_Prop_Data *pd = (Demo_Swallow_Prop_Data *)data;
    assert(pd != NULL);
-   const char *value;
+   char *value;
 
-   value = elm_entry_entry_get(pd->content_style);
+   value = elm_entry_markup_to_utf8(elm_entry_entry_get(obj));
 
    eina_stringshare_del(pd->part->content_style);
+
    pd->part->content_style = eina_stringshare_add(value);
    pd->part->change = true;
 
    evas_object_smart_callback_call(ap.win, SIGNAL_DEMO_SWALLOW_SET, pd->part);
+   free(value);
 }
 static Evas_Object *
 prop_style_set_add(Evas_Object *parent,

-- 


Reply via email to