Enlightenment CVS committal Author : essiene Project : e17 Module : proto
Dir : e17/proto/entrance_edit_gui/src/widgets Modified Files: _ew_list.c _ew_list.h Log Message: - Theme dialog works now. - I have a problem selecting the first row adding to the list. This should be done in the widget such that after adding to a list, the first row is always selected will make our lives easier. Anyone wanting to do this *hint* *hint* should look in src/widgets/ew_txtlist.c/ew_txtlist_add() and src/widgets/ew_edjelist.c/ew_edjelist_add() - I've cleaned up theme.c a bit more... it *looks* better. It still leaks like a basket though. *hint* *hint* - i need to sleep now :) =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/_ew_list.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- _ew_list.c 13 Aug 2006 00:54:58 -0000 1.3 +++ _ew_list.c 13 Aug 2006 06:17:27 -0000 1.4 @@ -74,10 +74,21 @@ return ewld; } +void +ew_list_first_row_select(Entrance_List el) +{ + Etk_Tree_Row *row = etk_tree_first_row_get(ETK_TREE(el->owner)); + etk_tree_row_select(row); +} + void* ew_list_selected_data_get(Entrance_List el) { Etk_Tree_Row *row = etk_tree_selected_row_get(ETK_TREE(el->owner)); + if(!row) { + return NULL; + } + Entrance_List_Data ewld = etk_tree_row_data_get(row); return ewld->data; } =================================================================== RCS file: /cvs/e/e17/proto/entrance_edit_gui/src/widgets/_ew_list.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- _ew_list.h 13 Aug 2006 00:54:58 -0000 1.2 +++ _ew_list.h 13 Aug 2006 06:17:27 -0000 1.3 @@ -53,5 +53,6 @@ Entrance_List _ew_list_buildtree(Entrance_List); Entrance_List_Data ew_listdata_new(void); void* ew_list_selected_data_get(Entrance_List); +void ew_list_first_row_select(Entrance_List); #endif ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs