On Fri, Sep 11, 2009 at 3:26 PM, "Marco Trevisan (Treviño)" <[email protected]> wrote: > Hello, I've often found useful to remove items from an elm_box, and the > new elm_box_clear function helps me a lot, by the way in some > circumstances I'd prefer not to delete the items I've packed in the box, > but just to unbox them. > > So I've added these two new API: > > EAPI void elm_box_unpack(Evas_Object *obj, Evas_Object *subobj); > EAPI void elm_box_unpack_all(Evas_Object *obj); > > Patch is attached, please let me know if it can be merged, since I'm > just using them in a my project and if they can't be accepted I must > find another way. > > PS: I don't know if it's a right thing using elm_widget_sub_object_del > in els_box.c, but it's the only way to remove all the widget subitems > when using the "unpack_all" function.
I've not read the code and I guess the best one to do it is raster as he wrote the e_box used by elm_box... but my opinion is that it would be much better to move elm_box to use evas_object_box with pre-defined layout depending on whenever it's horizontal/vertical and homogeneous or not, simulate the pack start/end with append/prepend or deprecate the pack_* methods and just wrap around the evas one. It's more flexible and having a single source of bugs is better. The same is valid for table. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
