Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_combo.c 


Log Message:
- much nicer way to get the index

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_combo.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- ewl_combo.c 26 May 2006 15:35:02 -0000      1.28
+++ ewl_combo.c 26 May 2006 19:30:39 -0000      1.29
@@ -411,7 +411,6 @@
                combo->view->assign(item, 
                                combo->model->fetch(combo->data, i, 0));
                ewl_container_child_append(EWL_CONTAINER(combo->popup), item);
-               ewl_widget_data_set(item, "ewl_combo_position", (int *)i);
                ewl_callback_append(item, EWL_CALLBACK_CLICKED,
                                        ewl_combo_cb_item_clicked, combo);
                ewl_widget_show(item);
@@ -471,7 +470,7 @@
 
        combo = data;
 
-       i = (int)ewl_widget_data_get(w, "ewl_combo_position");
+       i = ewl_container_child_index_get(EWL_CONTAINER(combo->popup), w);
        ewl_combo_selected_set(combo, i);
        ewl_combo_cb_increment_clicked(NULL, NULL, data);
 




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to