Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_freebox.c
Log Message:
use ecore_dlist_sort to sort
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_freebox.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ewl_freebox.c 1 Apr 2007 21:48:06 -0000 1.18
+++ ewl_freebox.c 19 Apr 2007 15:26:18 -0000 1.19
@@ -431,7 +431,6 @@
ewl_freebox_layout_comparator(Ewl_Freebox *fb)
{
Ewl_Container *c;
- Ewl_Widget *child;
DENTER_FUNCTION(DLEVEL_STABLE);
DCHECK_PARAM_PTR("fb", fb);
@@ -451,21 +450,8 @@
/* sort the data if needed */
if (!fb->sorted)
{
- Ecore_Sheap *sheap;
- sheap = ecore_sheap_new(ECORE_COMPARE_CB(fb->comparator),
-
ewl_container_child_count_get(EWL_CONTAINER(fb)));
-
- /* stick it all in the heap */
- while ((child = ecore_dlist_remove_first(c->children)))
- ecore_sheap_insert(sheap, child);
-
- ecore_sheap_sort(sheap);
-
- /* pull it from the heap and stick back into the container */
- while ((child = ecore_sheap_extract(sheap)))
- ecore_dlist_append(c->children, child);
-
- ecore_sheap_destroy(sheap);
+ ecore_dlist_sort(c->children, ECORE_COMPARE_CB(fb->comparator),
+ ECORE_SORT_MIN);
/* we set sorted to TRUE at the end here as each of those
* inserts into the container will trigger our child_add
@@ -480,5 +466,4 @@
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs