Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_notebook2.c Log Message: - set dimensions on box as we change it's orientation =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_notebook2.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ewl_notebook2.c 3 Feb 2006 19:17:53 -0000 1.7 +++ ewl_notebook2.c 3 Feb 2006 21:19:09 -0000 1.8 @@ -135,20 +135,33 @@ { case EWL_POSITION_LEFT: case EWL_POSITION_RIGHT: + { + int h; + ewl_box_orientation_set(EWL_BOX(n), EWL_ORIENTATION_HORIZONTAL); ewl_box_orientation_set(EWL_BOX(n->body.tabbar), EWL_ORIENTATION_VERTICAL); - break; + h = ewl_object_preferred_inner_h_get(EWL_OBJECT(n)); + ewl_object_preferred_inner_h_set(EWL_OBJECT(n->body.tabbar), h); + break; + } case EWL_POSITION_TOP: case EWL_POSITION_BOTTOM: default: + { + int w; + ewl_box_orientation_set(EWL_BOX(n), EWL_ORIENTATION_VERTICAL); ewl_box_orientation_set(EWL_BOX(n->body.tabbar), EWL_ORIENTATION_HORIZONTAL); + + w = ewl_object_preferred_inner_w_get(EWL_OBJECT(n)); + ewl_object_preferred_inner_w_set(EWL_OBJECT(n->body.tabbar), w); break; + } } ewl_container_child_remove(EWL_CONTAINER(n), n->body.tabbar); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs