Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: ewl_notebook2_test.c Log Message: - add a tabbar visiblity test =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_notebook2_test.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_notebook2_test.c 3 Feb 2006 06:14:01 -0000 1.3 +++ ewl_notebook2_test.c 3 Feb 2006 16:26:44 -0000 1.4 @@ -14,6 +14,17 @@ } static void +notebook2_cb_toggle_clicked(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, + void *data __UNUSED__) +{ + Ewl_Widget *n; + + n = ewl_widget_name_find("notebook"); + ewl_notebook2_tabbar_visible_set(EWL_NOTEBOOK2(n), + !ewl_notebook2_tabbar_visible_get(EWL_NOTEBOOK2(n))); +} + +static void notebook2_change_align(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, void *data) { @@ -155,6 +166,13 @@ o2 = o; } + o = ewl_button_new(); + ewl_button_label_set(EWL_BUTTON(o), "Toggle tabbar"); + ewl_container_child_append(EWL_CONTAINER(body), o); + ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK); + ewl_callback_append(o, EWL_CALLBACK_CLICKED, notebook2_cb_toggle_clicked, NULL); + ewl_widget_show(o); + return body; } ------------------------------------------------------- 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