Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : proto
Dir : e17/proto/esmart/src/container
Modified Files:
container.c container.h
Log Message:
use evas list sorting
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/container/container.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- container.c 24 Jan 2004 20:19:37 -0000 1.12
+++ container.c 24 Mar 2004 07:24:36 -0000 1.13
@@ -15,6 +15,17 @@
/*** external API ***/
+void e_container_sort(Evas_Object *container, int (*func)(void*,void*))
+{
+ Container *cont;
+
+ cont = _container_fetch(container);
+ if (!cont) return;
+
+ cont->elements = evas_list_sort(cont->elements, evas_list_count(cont->elements),
+ func);
+ _container_elements_fix(cont);
+}
void e_container_direction_set(Evas_Object *container, int direction)
{
Container *cont;
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/container/container.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- container.h 24 Jan 2004 20:19:43 -0000 1.12
+++ container.h 24 Mar 2004 07:24:36 -0000 1.13
@@ -163,6 +163,7 @@
void e_container_element_remove(Evas_Object *container, Evas_Object *element);
void e_container_element_destroy(Evas_Object *container, Evas_Object *element);
void e_container_empty (Evas_Object *container);
+void e_container_sort(Evas_Object *container, int (*func)(void*,void*));
Evas_List *e_container_elements_get(Evas_Object *container);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs