Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_tree2.c Log Message: Remove widget associations for tree2 rows and cells. These aren't necessary since we have the internal structure and nodes passed as data params to the callbacks. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.c,v retrieving revision 1.62 retrieving revision 1.63 diff -u -3 -r1.62 -r1.63 --- ewl_tree2.c 12 Mar 2007 07:52:27 -0000 1.62 +++ ewl_tree2.c 12 Mar 2007 11:58:48 -0000 1.63 @@ -736,7 +736,6 @@ cell = ewl_cell_new(); ewl_object_fill_policy_set(EWL_OBJECT(cell), EWL_FLAG_FILL_ALL); ewl_container_child_append(EWL_CONTAINER(row), cell); - ewl_attach_widget_association_set(cell, row); ewl_callback_append(cell, EWL_CALLBACK_CLICKED, ewl_tree2_cb_cell_clicked, node); ewl_widget_show(cell); @@ -828,7 +827,6 @@ row = ewl_row_new(); ewl_row_header_set(EWL_ROW(row), EWL_ROW(tree->header)); ewl_container_child_append(EWL_CONTAINER(node), row); - ewl_attach_widget_association_set(row, tree); ewl_callback_append(row, EWL_CALLBACK_CLICKED, ewl_tree2_cb_row_clicked, node); EWL_TREE2_NODE(node)->row = row; @@ -948,11 +946,11 @@ DCHECK_PARAM_PTR("w", w); DCHECK_TYPE("w", w, EWL_WIDGET_TYPE); - tree = ewl_attach_widget_association_get(w); + node = data; + tree = EWL_TREE2(node->tree); if (tree->type != EWL_TREE_SELECTION_TYPE_ROW) DRETURN(DLEVEL_STABLE); - node = data; ewl_mvc_handle_click(EWL_MVC(tree), node->model, node->data, node->row_num, -1); @@ -972,15 +970,15 @@ DCHECK_PARAM_PTR("w", w); DCHECK_TYPE("w", w, EWL_WIDGET_TYPE); - row = ewl_attach_widget_association_get(w); - tree = ewl_attach_widget_association_get(row); + row = EWL_ROW(w->parent); + node = EWL_TREE2_NODE(data); + tree = EWL_TREE2(node->tree); if (tree->type != EWL_TREE_SELECTION_TYPE_CELL) DRETURN(DLEVEL_STABLE); - node = data; column = ewl_container_child_index_get(EWL_CONTAINER(row), w); - ewl_mvc_handle_click(EWL_MVC(tree), node->model, + ewl_mvc_handle_click(EWL_MVC(node->tree), node->model, node->data, node->row_num, column); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs