rimmed pushed a commit to branch master.

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

commit 1343a6e056a7f054fab269165a30ebc7b7ce4f44
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Tue Dec 22 17:06:14 2015 +0200

    groupedit: move the edje object load into groupedit
    
    Change-Id: Idcebd4d505693329341c25af7e56375224924cea
---
 src/bin/ui/tabs.c                | 2 --
 src/bin/ui/workspace/groupedit.c | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/tabs.c b/src/bin/ui/tabs.c
index 3184e45..ef25ec3 100644
--- a/src/bin/ui/tabs.c
+++ b/src/bin/ui/tabs.c
@@ -174,7 +174,6 @@ static void
 _del_tab(Tabs_Item *item)
 {
    elm_object_item_del(item->toolbar_item);
-   gm_group_edit_object_unload(item->group);
    /* delete pans with workspace and liveview */
    evas_object_del(item->content);
    history_del(item->group->history);
@@ -589,7 +588,6 @@ tabs_tab_add(Group *group)
     * be NULL */
    assert(group->history == NULL);
 
-   gm_group_edit_object_load(ap.project, group, evas_object_evas_get(ap.win));
    group->history = history_add(group);
 
    item = mem_calloc(1, sizeof(Tabs_Item));
diff --git a/src/bin/ui/workspace/groupedit.c b/src/bin/ui/workspace/groupedit.c
index fb71cdc..c43d579 100644
--- a/src/bin/ui/workspace/groupedit.c
+++ b/src/bin/ui/workspace/groupedit.c
@@ -77,6 +77,7 @@ _groupedit_smart_del(Evas_Object *o)
    evas_object_smart_member_del(sd->clipper);
    evas_object_hide(sd->group->edit_object);
 
+   gm_group_edit_object_unload(sd->group);
    _groupedit_parent_sc->del(o);
 }
 
@@ -204,6 +205,7 @@ groupedit_add(Evas_Object *parent, Group *group)
    WS_GROUPEDIT_DATA_GET(obj, sd);
    sd->parent = parent;
 
+   gm_group_edit_object_load(ap.project, group, evas_object_evas_get(ap.win));
    edje_object_animation_set(group->edit_object, false);
    TODO("set the state for all parts to default 0.0")
    sd->group = group;

-- 


Reply via email to