Enlightenment CVS committal Author : lok Project : e17 Module : proto
Dir : e17/proto/etk/src/lib Modified Files: etk_notebook.c etk_notebook.h Log Message: [Notebook] etk_notebook_show_tabs_set/get added. =================================================================== RCS file: /cvs/e/e17/proto/etk/src/lib/etk_notebook.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- etk_notebook.c 26 Jul 2006 14:57:18 -0000 1.21 +++ etk_notebook.c 31 Jul 2006 20:08:00 -0000 1.22 @@ -379,6 +379,33 @@ return etk_bin_child_get(ETK_BIN(page->frame)); } +/** + * @brief Sets the visibility of the tab bar + * @param notebook a notebook + * @param show_tabs if show_tabs is ETK_FALSE, then the tab bar will be hidden + */ +void etk_notebook_show_tabs_set(Etk_Notebook *notebook, Etk_Bool show_tabs) +{ + if (show_tabs == ETK_FALSE) + { + etk_widget_hide(notebook->tab_bar); + } + else if (show_tabs == ETK_TRUE) + { + etk_widget_show(notebook->tab_bar); + } +} + +/** + * @brief Gets the visibility of the tab bar + * @param notebook a notebook + * @return Returns ETK_TRUE if the tab bar is visible, ETK_FALSE otherwise + */ +Etk_Bool etk_notebook_show_tabs_get(Etk_Notebook *notebook) +{ + return etk_widget_is_visible(ETK_NOTEBOOK(notebook)->tab_bar); +} + /************************** * * Etk specific functions =================================================================== RCS file: /cvs/e/e17/proto/etk/src/lib/etk_notebook.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- etk_notebook.h 28 May 2006 14:16:32 -0000 1.13 +++ etk_notebook.h 31 Jul 2006 20:08:00 -0000 1.14 @@ -74,6 +74,8 @@ void etk_notebook_page_child_set(Etk_Notebook *notebook, int page_num, Etk_Widget *child); Etk_Widget *etk_notebook_page_child_get(Etk_Notebook *notebook, int page_num); +void etk_notebook_show_tabs_set(Etk_Notebook *notebook, Etk_Bool show_tabs); +Etk_Bool etk_notebook_show_tabs_get(Etk_Notebook *notebook); /** @} */ #endif ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs