Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_paned.c ewl_paned.h Log Message: - minor cleanups =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_paned.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- ewl_paned.c 17 Feb 2006 06:43:33 -0000 1.22 +++ ewl_paned.c 25 Feb 2006 23:44:49 -0000 1.23 @@ -102,8 +102,6 @@ ewl_paned_cb_child_show); ewl_container_hide_notify_set(EWL_CONTAINER(p), ewl_paned_cb_child_hide); - ewl_container_resize_notify_set(EWL_CONTAINER(p), - ewl_paned_cb_child_resize); ewl_callback_append(w, EWL_CALLBACK_CONFIGURE, ewl_paned_cb_configure, NULL); @@ -137,8 +135,7 @@ while ((child = ecore_dlist_next(EWL_CONTAINER(p)->children))) { /* Update each internal child to have the correct - * appearance/orientation. XXX This assumes that all - * internal widgets will be grabbers ... */ + * appearance/orientation. */ if (ewl_widget_internal_is(child)) ewl_paned_grabber_paned_orientation_set( EWL_PANED_GRABBER(child), o); @@ -252,19 +249,6 @@ } void -ewl_paned_cb_child_resize(Ewl_Container *c, Ewl_Widget *w, int size __UNUSED__, - Ewl_Orientation o __UNUSED__) -{ - DENTER_FUNCTION(DLEVEL_STABLE); - DCHECK_PARAM_PTR("c", c); - DCHECK_PARAM_PTR("w", w); - DCHECK_TYPE("c", c, EWL_CONTAINER_TYPE); - DCHECK_TYPE("w", w, EWL_WIDGET_TYPE); - - DLEAVE_FUNCTION(DLEVEL_STABLE); -} - -void ewl_paned_cb_child_show(Ewl_Container *c, Ewl_Widget *w) { int cw, ch, ww, wh; @@ -283,12 +267,10 @@ * the shown widget (including the grabbers */ if (EWL_PANED(c)->orientation == EWL_ORIENTATION_HORIZONTAL) { cw += ww; - if (wh > ch) - ch = wh; + if (wh > ch) ch = wh; } else { - if (ww > cw) - cw = ww; + if (ww > cw) cw = ww; ch += wh; } @@ -961,8 +943,7 @@ to = bx + CURRENT_W(before); /* dont' move to the right of the grabber to the right of us */ - if (to > ax) - to = ax; + if (to > ax) to = ax; /* XXX shoud check min widget sizes here */ ewl_object_place(EWL_OBJECT(before), CURRENT_X(before), @@ -1038,8 +1019,7 @@ to = by + CURRENT_H(before); /* dont' move to the right of the grabber to the right of us */ - if (to > ay) - to = ay; + if (to > ay) to = ay; /* XXX shoud check min widget sizes here */ ewl_object_place(EWL_OBJECT(before), CURRENT_X(before), =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_paned.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- ewl_paned.h 17 Feb 2006 06:43:33 -0000 1.13 +++ ewl_paned.h 25 Feb 2006 23:44:49 -0000 1.14 @@ -52,8 +52,6 @@ */ void ewl_paned_cb_child_add(Ewl_Container *c, Ewl_Widget *w); void ewl_paned_cb_child_remove(Ewl_Container *c, Ewl_Widget *w, int idx); -void ewl_paned_cb_child_resize(Ewl_Container *c, Ewl_Widget *w, int size, - Ewl_Orientation o); void ewl_paned_cb_child_show(Ewl_Container *c, Ewl_Widget *w); void ewl_paned_cb_child_hide(Ewl_Container *c, Ewl_Widget *w); ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs