rimmed pushed a commit to branch master.

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

commit 722ff066ee70915ee28825f6a3002b116209c47d
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Tue Sep 13 19:23:50 2016 +0300

    property: quickfix for Resource Manager
    
    @fix
---
 src/bin/editor/editor_macro.h | 11 ++++++++++-
 src/bin/editor/editor_text.c  |  2 +-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/bin/editor/editor_macro.h b/src/bin/editor/editor_macro.h
index 78ba1f1..537d756 100644
--- a/src/bin/editor/editor_macro.h
+++ b/src/bin/editor/editor_macro.h
@@ -210,14 +210,19 @@ editor_state_## FUNC ##_set(Evas_Object *edit_object, 
Change *change, Eina_Bool
                             const char *part_name, const char *state_name, 
double state_val, const char *new_val) \
 { \
    Diff *diff = NULL; \
+   Eina_Stringshare *old_value = edje_edit_state_## FUNC ##_get(edit_object, 
part_name, state_name, state_val); \
    Editor_Attribute_Change send; \
    send.attribute = RM_ATTRIBUTE; \
+   send.part_name = eina_stringshare_add(part_name); \
+   send.state_name = eina_stringshare_add(state_name); \
+   send.state_value = state_val; \
+   send.old_value = eina_stringshare_add(old_value); \
+   send.value = eina_stringshare_add(new_val); \
    assert(edit_object != NULL); \
    assert(part_name != NULL); \
    assert(state_name != NULL); \
    if (change) \
      { \
-        Eina_Stringshare *old_value = edje_edit_state_## FUNC 
##_get(edit_object, part_name, state_name, state_val); \
         diff = mem_calloc(1, sizeof(Diff)); \
         diff->redo.type = FUNCTION_TYPE_STRING_STRING_DOUBLE_STRING; \
         diff->redo.function = editor_state_## FUNC ##_set; \
@@ -265,6 +270,10 @@ editor_state_## FUNC ##_set(Evas_Object *edit_object, 
Change *change, Eina_Bool
               change_diff_add(change, diff); \
          } \
      } \
+   eina_stringshare_del(send.part_name); \
+   eina_stringshare_del(send.state_name); \
+   eina_stringshare_del(send.value); \
+   eina_stringshare_del(send.old_value); \
    return true; \
 }
 
diff --git a/src/bin/editor/editor_text.c b/src/bin/editor/editor_text.c
index 6335efc..91b36e9 100644
--- a/src/bin/editor/editor_text.c
+++ b/src/bin/editor/editor_text.c
@@ -92,7 +92,7 @@ editor_state_text_set(Evas_Object *edit_object, Change 
*change, Eina_Bool merge,
 {
    Diff *diff;
    Editor_Attribute_Change send;
-   send.attribute = RM_ATTRIBUTE_STATE_TEXT_STYLE;
+   send.attribute = RM_ATTRIBUTE_STATE_TEXT;
    assert(edit_object != NULL);
    assert(part_name != NULL);
    assert(state_name != NULL);

-- 


Reply via email to