Unpack function for Elementary box.
authorDaniel Kolesa <quaker66@gmail.com>
Sun, 20 Sep 2009 13:01:25 +0000 (13:01 +0000)
committerDaniel Kolesa <quaker66@gmail.com>
Sun, 20 Sep 2009 13:01:25 +0000 (13:01 +0000)
SVN revision: 42585

src/lib/Elementary.h.in
src/lib/elm_box.c

index e44eedf..feaec97 100644 (file)
@@ -299,6 +299,7 @@ extern "C" {
    EAPI void         elm_box_pack_before(Evas_Object *obj, Evas_Object *subobj, Evas_Object *before);
    EAPI void         elm_box_pack_after(Evas_Object *obj, Evas_Object *subobj, Evas_Object *after);
    EAPI void         elm_box_clear(Evas_Object *obj);
+   EAPI void         elm_box_unpack(Evas_Object *obj);
    /* smart callbacks called:
     */
 
index eedc6b3..1661606 100644 (file)
@@ -238,3 +238,19 @@ elm_box_clear(Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    _els_smart_box_clear(wd->box);
 }
+
+/**
+ * This unpacks an item from the box
+ *
+ * This unpacks a single Evas_Object from the box.
+ *
+ * @param obj The box item
+ *
+ * @ingroup Box
+ */
+EAPI void
+elm_box_unpack(Evas_Object *obj)
+{
+   evas_object_hide(obj);
+   _els_smart_box_unpack(obj);
+}