Enlightenment CVS committal Author : werkt Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_tree.c ewl_tree.h Log Message: `cat /tmp/cvs4VMce0` =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_tree.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- ewl_tree.c 12 Jul 2005 04:09:37 -0000 1.8 +++ ewl_tree.c 12 Jul 2005 18:02:51 -0000 1.9 @@ -539,6 +539,33 @@ DLEAVE_FUNCTION(DLEVEL_STABLE); } +/** + * @param row: the row to retrieve a column from + * @param i: the column to retreive from the row + * @brief Retreives the actual widget added via row_add instead of the cell + * @return Returns the widget in the column of the row sent + * + * The behavior of this function is undefined if columns are not accounted for + * in the children of the row (if NULLs were passed in from row_add). + */ +Ewl_Widget *ewl_tree_row_column_get(Ewl_Row *row, int i) +{ + Ewl_Widget *w, *cell; + Ecore_List *children; + + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR_RET("row", row, NULL); + + children = EWL_CONTAINER(row)->children; + + w = NULL; + cell = ecore_list_goto_index(children, i); + if( cell ) + w = ecore_list_goto_first(EWL_CONTAINER(cell)->children); + + DRETURN_PTR(w, DLEVEL_STABLE); +} + void ewl_tree_configure_cb(Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) { =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_tree.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_tree.h 22 Jun 2005 19:40:31 -0000 1.5 +++ ewl_tree.h 12 Jul 2005 18:02:51 -0000 1.6 @@ -97,6 +97,7 @@ Ecore_List *ewl_tree_selected_get(Ewl_Tree *tree); void ewl_tree_selected_clear(Ewl_Tree *tree); +Ewl_Widget *ewl_tree_row_column_get(Ewl_Row *row, int i); Ewl_Tree_Mode ewl_tree_mode_get(Ewl_Tree *tree); void ewl_tree_mode_set(Ewl_Tree *tree, Ewl_Tree_Mode mode); ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs