rimmed pushed a commit to branch master.

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

commit f527e39bfe8bfd8e2030471e35dc401686573820
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Sep 14 13:59:45 2016 +0300

    resource_manager2: integration step - resource_group_edit_object_reload 
implement
---
 src/bin/resource_manager/resource_manager2.c | 23 +++++++++++++++++++++++
 src/bin/resource_manager/resource_manager2.h |  3 +++
 src/bin/ui/tabs.c                            |  1 +
 3 files changed, 27 insertions(+)

diff --git a/src/bin/resource_manager/resource_manager2.c 
b/src/bin/resource_manager/resource_manager2.c
index 483cf81..01d39da 100644
--- a/src/bin/resource_manager/resource_manager2.c
+++ b/src/bin/resource_manager/resource_manager2.c
@@ -97,6 +97,29 @@ resource_group_edit_object_unload(Group2 *group)
    group->edit_object = NULL;
 }
 
+void
+resource_group_edit_object_reload(Project *pro, Group2 *group)
+{
+   Part2 *part;
+   Eina_List *l;
+
+   assert(pro != NULL);
+   assert(group != NULL);
+   assert(group->edit_object != NULL);
+
+   if (!edje_object_mmap_set(group->edit_object, pro->mmap_file, 
group->common.name))
+     {
+        ERR("Can't set mmap object");
+        abort();
+     }
+
+   EINA_LIST_FOREACH(group->parts, l, part)
+      edje_edit_part_selected_state_set(group->edit_object,
+                                        part->common.name,
+                                        part->current_state->common.name,
+                                        part->current_state->val);
+}
+
 Eina_Bool
 resource_manager_init(Project *project)
 {
diff --git a/src/bin/resource_manager/resource_manager2.h 
b/src/bin/resource_manager/resource_manager2.h
index 08ec6ca..2a60529 100644
--- a/src/bin/resource_manager/resource_manager2.h
+++ b/src/bin/resource_manager/resource_manager2.h
@@ -224,4 +224,7 @@ resource_group_edit_object_load(Project *pro, Group2 
*group, Evas *e);
 void
 resource_group_edit_object_unload(Group2 *group);
 
+void
+resource_group_edit_object_reload(Project *pro, Group2 *group);
+
 #endif /* RESOURCE_MANAGER2_H */
diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 1a17b22..8e2ea00 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -465,6 +465,7 @@ _editor_saved(void *data __UNUSED__,
      {
         if (!item->group) continue; /* skip home tab */
         gm_group_edit_object_reload(ap.project, item->group);
+        resource_group_edit_object_reload(ap.project, item->group2);
         if (item->content == tabs.current_workspace)
           workspace_groupview_hard_update(tabs.current_workspace);
         else

-- 


Reply via email to