rimmed pushed a commit to branch master.

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

commit a3b07ccbbb6838e73c270d08da9a359b99e1ed4a
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Wed Apr 6 15:16:09 2016 +0300

    property_group: don't delete frames on unset
---
 src/bin/ui/property_group.c  | 4 +---
 src/bin/ui/property_macros.h | 3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/bin/ui/property_group.c b/src/bin/ui/property_group.c
index ea881d6..f86d900 100644
--- a/src/bin/ui/property_group.c
+++ b/src/bin/ui/property_group.c
@@ -2353,6 +2353,7 @@ _ui_property_program_set(Evas_Object *property, const 
char *program)
         prop_program_filter_state_update(pd);
         prop_program_targets_update(pd);
         prop_program_afters_update(pd);
+        evas_object_show(pd->attributes.program.frame);
      }
    elm_box_pack_end(prop_box, pd->attributes.program.frame);
 }
@@ -2587,9 +2588,6 @@ _ui_property_part_unset(Evas_Object *property)
    */
    PROP_ITEM_UNSET(prop_box, pd->attributes.part.frame)
    PROP_ITEM_UNSET(prop_box, pd->attributes.state.frame)
-   evas_object_del(pd->attributes.state.color1);
-   evas_object_del(pd->attributes.state.color2);
-   evas_object_del(pd->attributes.state.color3);
    PROP_ITEM_UNSET(prop_box, pd->attributes.state_object_area.frame)
    PROP_ITEM_UNSET(prop_box, pd->attributes.state_text.frame)
    PROP_ITEM_UNSET(prop_box, pd->attributes.state_image.frame)
diff --git a/src/bin/ui/property_macros.h b/src/bin/ui/property_macros.h
index 8a3be98..6be84db 100644
--- a/src/bin/ui/property_macros.h
+++ b/src/bin/ui/property_macros.h
@@ -33,8 +33,7 @@
      {\
         evas_object_smart_callback_del(ITEM, "clicked", _on_frame_click); \
         elm_box_unpack(BOX, ITEM); \
-        evas_object_del(ITEM); \
-        ITEM = NULL; \
+        evas_object_hide(ITEM); \
      }
 /*
  * Callback is added for frames at property box to correct scroller

-- 


Reply via email to