Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/entice

Dir     : e17/apps/entice/src/bin


Modified Files:
        image.c 


Log Message:


move a chunk of stuff to use evas_smart_class_new() - evas_smart_new() will
probably die as it's already got legacy funcion methods for layer etc. stuff.

===================================================================
RCS file: /cvs/e/e17/apps/entice/src/bin/image.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- image.c     29 Dec 2006 05:28:11 -0000      1.49
+++ image.c     4 Aug 2007 13:12:41 -0000       1.50
@@ -813,15 +813,25 @@
    static Evas_Smart *s = NULL;
 
    if (!s)
-   {
-      s = evas_smart_new("EnticeImage", entice_image_add, entice_image_del,
-                         NULL, NULL, NULL, NULL, NULL,
-                        entice_image_move, entice_image_resize, 
entice_image_show,
-                         entice_image_hide, entice_image_color_set,
-                         entice_image_clip_set, entice_image_clip_unset,
-                         NULL);
-   }
-   return (s);
+     {
+        static const Evas_Smart_Class sc =
+         {
+            "EnticeImage",
+              EVAS_SMART_CLASS_VERSION,
+              entice_image_add,
+              entice_image_del,
+              entice_image_move,
+              entice_image_resize,
+              entice_image_show,
+              entice_image_hide,
+              entice_image_color_set,
+              entice_image_clip_set,
+              entice_image_clip_unset,
+              NULL
+         };
+       s = evas_smart_class_new(&sc);
+     }
+   return s;
 }
 
 Evas_Object *



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to