Enlightenment CVS committal Author : titan Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_notebook.c Log Message: Hide the notebook border when the notebook tabbar is hidden. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_notebook.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- ewl_notebook.c 1 Apr 2007 21:48:06 -0000 1.23 +++ ewl_notebook.c 19 Apr 2007 02:56:06 -0000 1.24 @@ -234,8 +234,18 @@ DCHECK_PARAM_PTR("n", n); DCHECK_TYPE("n", n, EWL_NOTEBOOK_TYPE); - if (visible) ewl_widget_show(n->body.tabbar); - else ewl_widget_hide(n->body.tabbar); + if (visible) + { + ewl_widget_state_set(EWL_WIDGET(n->body.pages), "tabs", + EWL_STATE_PERSISTENT); + ewl_widget_show(n->body.tabbar); + } + else + { + ewl_widget_state_set(EWL_WIDGET(n->body.pages), "notabs", + EWL_STATE_PERSISTENT); + ewl_widget_hide(n->body.tabbar); + } DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs