Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/lib


Modified Files:
        etk_notebook.c etk_notebook.h 


Log Message:
- demo next / prev in test
- more api functions

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_notebook.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- etk_notebook.c      7 Mar 2006 16:51:20 -0000       1.13
+++ etk_notebook.c      7 Mar 2006 23:42:23 -0000       1.14
@@ -187,6 +187,21 @@
 }
 
 /**
+ * @brief Gets the widget used as child of a tab of the notebook.
+ * @param notebook a notebook
+ * @param page_num the number of the page to set the tab widget to
+ * @return The widget used as child of the tab
+ */
+Etk_Widget *etk_notebook_page_tab_widget_get(Etk_Notebook *notebook, int 
page_num)
+{
+   Etk_Notebook_Page *page;
+   
+   if (!notebook || !(page = evas_list_nth(notebook->pages, page_num)))
+      return NULL;
+   return etk_bin_child_get(ETK_BIN(page->tab));
+}
+
+/**
  * @brief Sets the widget to display when the corresponding tab is activated
  * @param notebook a notebook
  * @param page_num the number of the page to set the page widget to
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/etk/src/lib/etk_notebook.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- etk_notebook.h      7 Mar 2006 16:32:10 -0000       1.7
+++ etk_notebook.h      7 Mar 2006 23:42:23 -0000       1.8
@@ -53,6 +53,7 @@
 const char *etk_notebook_page_tab_label_get(Etk_Notebook *notebook, int 
page_num);
 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);
+Etk_Widget *etk_notebook_page_tab_widget_get(Etk_Notebook *notebook, int 
page_num);
 void etk_notebook_page_child_set(Etk_Notebook *notebook, int page_num, 
Etk_Widget *child);
 
 void etk_notebook_current_page_set(Etk_Notebook *notebook, int page_num);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to