Enlightenment CVS committal Author : moom16 Project : e17 Module : proto
Dir : e17/proto/etk/src/lib Modified Files: etk_notebook.c etk_notebook.h Log Message: * Add a function to change the label of a tab in the notebook =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_notebook.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- etk_notebook.c 26 Dec 2005 13:32:40 -0000 1.5 +++ etk_notebook.c 26 Dec 2005 14:35:28 -0000 1.6 @@ -91,6 +91,16 @@ } /* TODO */ +void etk_notebook_page_tab_label_set(Etk_Notebook *notebook, int page_num, const char *tab_label) +{ + Etk_Notebook_Page *page; + + if (!notebook || !(page = evas_list_nth(notebook->pages, page_num))) + return; + etk_button_label_set(ETK_BUTTON(page->tab), tab_label); +} + +/* TODO */ void etk_notebook_page_tab_widget_set(Etk_Notebook *notebook, int page_num, Etk_Widget *tab_widget) { Etk_Notebook_Page *page; =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_notebook.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- etk_notebook.h 26 Dec 2005 13:32:40 -0000 1.4 +++ etk_notebook.h 26 Dec 2005 14:35:28 -0000 1.5 @@ -45,6 +45,7 @@ int etk_notebook_page_prepend(Etk_Notebook *notebook, const char *tab_label, Etk_Widget *page_widget); int etk_notebook_page_append(Etk_Notebook *notebook, const char *tab_label, Etk_Widget *page_widget); +void etk_notebook_page_tab_label_set(Etk_Notebook *notebook, int page_num, const char *tab_label); void etk_notebook_page_tab_widget_set(Etk_Notebook *notebook, int page_num, Etk_Widget *tab_widget); void etk_notebook_page_child_set(Etk_Notebook *notebook, int page_num, Etk_Widget *child); ------------------------------------------------------- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs