Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : proto
Dir : e17/proto/esmart/src/draggies
Modified Files:
dragable.c
Log Message:
don't create a new evas smart everytime a draggie is created
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/draggies/dragable.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- dragable.c 25 Jan 2004 19:02:25 -0000 1.5
+++ dragable.c 4 Feb 2004 17:25:29 -0000 1.6
@@ -180,7 +180,11 @@
static Evas_Smart *
_esmart_dragable_object_smart_get ()
{
- Evas_Smart *smart = NULL;
+ static Evas_Smart *smart = NULL;
+
+ if (smart)
+ return smart;
+
smart = evas_smart_new ("esmart_dragable_object",
_esmart_dragable_object_add,
_esmart_dragable_object_del,
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs