summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2009-12-14 17:38:45 +0000
committerIván Briano <sachieru@gmail.com>2009-12-14 17:38:45 +0000
commit6ade2a3f68a0b79d81dbbb6471df5c7b89929a9a (patch)
tree2d77214da9531a1f5107cdd580fb2e4318a76dfc /legacy
parent0ccf619ba0bdf036c83c706935ed583a8e833fdc (diff)
Show and hide clipper as needed
SVN revision: 44445
Diffstat (limited to 'legacy')
-rw-r--r--legacy/edje/src/lib/edje_edit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/legacy/edje/src/lib/edje_edit.c b/legacy/edje/src/lib/edje_edit.c
index e1e26fce3c..3b213f456b 100644
--- a/legacy/edje/src/lib/edje_edit.c
+++ b/legacy/edje/src/lib/edje_edit.c
@@ -1668,6 +1668,7 @@ _edje_edit_real_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type
1668 _edje_real_part_swallow(rp, child); 1668 _edje_real_part_swallow(rp, child);
1669 } 1669 }
1670 evas_object_clip_set(rp->object, ed->clipper); 1670 evas_object_clip_set(rp->object, ed->clipper);
1671 evas_object_show(ed->clipper);
1671 } 1672 }
1672 rp->gradient_id = -1; 1673 rp->gradient_id = -1;
1673 1674
@@ -1720,7 +1721,7 @@ edje_edit_part_del(Evas_Object *obj, const char* part)
1720 ep = rp->part; 1721 ep = rp->part;
1721 id = ep->id; 1722 id = ep->id;
1722 1723
1723 if (ed->table_parts_size <= 1) return EINA_FALSE; //don't remove the last part 1724 //if (ed->table_parts_size <= 1) return EINA_FALSE; //don't remove the last part
1724 1725
1725 /* Unlik Edje_Real_Parts that link to the removed one */ 1726 /* Unlik Edje_Real_Parts that link to the removed one */
1726 int i; 1727 int i;
@@ -1792,6 +1793,9 @@ edje_edit_part_del(Evas_Object *obj, const char* part)
1792 /* Free Edje_Real_Part */ 1793 /* Free Edje_Real_Part */
1793 _edje_real_part_free(rp); 1794 _edje_real_part_free(rp);
1794 1795
1796 /* if all parts are gone, hide the clipper */
1797 if (ed->table_parts_size == 0)
1798 evas_object_hide(ed->clipper);
1795 1799
1796 edje_object_calc_force(obj); 1800 edje_object_calc_force(obj);
1797 return EINA_TRUE; 1801 return EINA_TRUE;