Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_list.c Log Message: I wonder why that worked sometimes, but data is here _not_ the mvc data =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_list.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- ewl_list.c 23 Aug 2007 05:26:51 -0000 1.27 +++ ewl_list.c 27 Aug 2007 16:52:33 -0000 1.28 @@ -151,6 +151,7 @@ ewl_list_cb_item_clicked(Ewl_Widget *w, void *ev __UNUSED__, void *data) { Ewl_Model *model; + void *mvc_data; int row; DENTER_FUNCTION(DLEVEL_STABLE); @@ -160,10 +161,11 @@ DCHECK_TYPE("data", data, EWL_LIST_TYPE); model = ewl_mvc_model_get(EWL_MVC(data)); + mvc_data = ewl_mvc_data_get(EWL_MVC(data)); row = ewl_container_child_index_get(EWL_CONTAINER(data), w); if (row < 0) DRETURN(DLEVEL_STABLE); - if ((unsigned int) row > model->count(data)) + if ((unsigned int) row > model->count(mvc_data)) { if (!EWL_HIGHLIGHT_IS(w)) { @@ -178,8 +180,7 @@ if (row < 0) DRETURN(DLEVEL_STABLE); } - ewl_mvc_handle_click(EWL_MVC(data), NULL, - ewl_mvc_data_get(EWL_MVC(data)), row, 0); + ewl_mvc_handle_click(EWL_MVC(data), NULL, mvc_data, row, 0); DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs