rimmed pushed a commit to branch master.

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

commit 233890fbc4ccdd7808bd70502ebd73a03f0cd961
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Mon Sep 12 18:09:57 2016 +0300

    resource_manager2: prepare info for AFTER and TARGET in program dependencies
---
 src/bin/editor/editor_program.c                   | 26 ++++++++++++++++++-----
 src/bin/resource_manager/resource_manager_react.c |  3 +++
 2 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/src/bin/editor/editor_program.c b/src/bin/editor/editor_program.c
index 03bc9d7..c22eafe 100644
--- a/src/bin/editor/editor_program.c
+++ b/src/bin/editor/editor_program.c
@@ -599,11 +599,13 @@ editor_program_target_add(Evas_Object *edit_object, 
Change *change, Eina_Bool me
                           const char *program_name, Eina_Stringshare *target)
 {
    Diff *diff;
-   Editor_Attribute_Change send;
-   send.attribute = RM_ATTRIBUTE_PROGRAM_TARGET;
    assert(edit_object != NULL);
    assert(program_name != NULL);
    assert(target != NULL);
+   Editor_Attribute_Change send;
+   send.attribute = RM_ATTRIBUTE_PROGRAM_TARGET;
+   send.program_name = eina_stringshare_add(program_name);
+   send.value = eina_stringshare_add(target);
    if (change)
      {
         diff = mem_calloc(1, sizeof(Diff));
@@ -627,6 +629,8 @@ editor_program_target_add(Evas_Object *edit_object, Change 
*change, Eina_Bool me
         if (!_editor_signals_blocked)
         evas_object_smart_callback_call(ap.win, 
SIGNAL_EDITOR_RM_ATTRIBUTE_CHANGED, &send);
      }
+   eina_stringshare_del(send.program_name);
+   eina_stringshare_del(send.value);
    return true;
 }
 
@@ -636,9 +640,11 @@ editor_program_target_del(Evas_Object *edit_object, Change 
*change, Eina_Bool me
 {
    Diff *diff;
    Editor_Attribute_Change send;
-   send.attribute = RM_ATTRIBUTE_PROGRAM_TARGET;
    assert(edit_object != NULL);
    assert(program_name != NULL);
+   send.attribute = RM_ATTRIBUTE_PROGRAM_TARGET;
+   send.program_name = eina_stringshare_add(program_name);
+   send.old_value = eina_stringshare_add(target);
    if (change)
      {
         diff = mem_calloc(1, sizeof(Diff));
@@ -662,6 +668,8 @@ editor_program_target_del(Evas_Object *edit_object, Change 
*change, Eina_Bool me
         if (!_editor_signals_blocked)
         evas_object_smart_callback_call(ap.win, 
SIGNAL_EDITOR_RM_ATTRIBUTE_CHANGED, &send);
      }
+   eina_stringshare_del(send.program_name);
+   eina_stringshare_del(send.old_value);
    return true;
 }
 
@@ -671,10 +679,12 @@ editor_program_after_add(Evas_Object *edit_object, Change 
*change, Eina_Bool mer
 {
    Diff *diff;
    Editor_Attribute_Change send;
-   send.attribute = RM_ATTRIBUTE_PROGRAM_AFTER;
    assert(edit_object != NULL);
    assert(program_name != NULL);
    assert(after != NULL);
+   send.attribute = RM_ATTRIBUTE_PROGRAM_AFTER;
+   send.program_name = eina_stringshare_add(program_name);
+   send.value = eina_stringshare_add(after);
    if (change)
      {
         diff = mem_calloc(1, sizeof(Diff));
@@ -698,6 +708,8 @@ editor_program_after_add(Evas_Object *edit_object, Change 
*change, Eina_Bool mer
         if (!_editor_signals_blocked)
           evas_object_smart_callback_call(ap.win, 
SIGNAL_EDITOR_RM_ATTRIBUTE_CHANGED, &send);
      }
+   eina_stringshare_del(send.program_name);
+   eina_stringshare_del(send.value);
    return true;
 }
 
@@ -707,9 +719,11 @@ editor_program_after_del(Evas_Object *edit_object, Change 
*change, Eina_Bool mer
 {
    Diff *diff;
    Editor_Attribute_Change send;
-   send.attribute = RM_ATTRIBUTE_PROGRAM_AFTER;
    assert(edit_object != NULL);
    assert(program_name != NULL);
+   send.attribute = RM_ATTRIBUTE_PROGRAM_AFTER;
+   send.program_name = eina_stringshare_add(program_name);
+   send.old_value = eina_stringshare_add(after);
    if (change)
      {
         diff = mem_calloc(1, sizeof(Diff));
@@ -733,6 +747,8 @@ editor_program_after_del(Evas_Object *edit_object, Change 
*change, Eina_Bool mer
         if (!_editor_signals_blocked)
           evas_object_smart_callback_call(ap.win, 
SIGNAL_EDITOR_RM_ATTRIBUTE_CHANGED, &send);
      }
+   eina_stringshare_del(send.program_name);
+   eina_stringshare_del(send.old_value);
    return true;
 }
 
diff --git a/src/bin/resource_manager/resource_manager_react.c 
b/src/bin/resource_manager/resource_manager_react.c
index 8117b0d..3e63bf6 100644
--- a/src/bin/resource_manager/resource_manager_react.c
+++ b/src/bin/resource_manager/resource_manager_react.c
@@ -213,6 +213,9 @@ _property_attribute_changed(void *data,
       case RM_ATTRIBUTE_PART_ITEM_PADDING_TOP:
       case RM_ATTRIBUTE_PART_ITEM_PADDING_BOTTOM:
          break;
+      case RM_ATTRIBUTE_PROGRAM_AFTER:
+      case RM_ATTRIBUTE_PROGRAM_TARGET:
+         break;
       case RM_ATTRIBUTE_STATE_IMAGE:
          part = resource_manager_find(group->parts, change->part_name);
          state = resource_manager_v_find(((Part2 *)part)->states, 
change->state_name, change->state_value);

-- 


Reply via email to