Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/esmart

Dir     : e17/libs/esmart/src/lib/esmart_resize


Modified Files:
        esmart_resize.c 


Log Message:
use evas_smart_class_new()

===================================================================
RCS file: /cvs/e/e17/libs/esmart/src/lib/esmart_resize/esmart_resize.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- esmart_resize.c     26 Jun 2007 20:01:39 -0000      1.1
+++ esmart_resize.c     4 Aug 2007 14:50:40 -0000       1.2
@@ -220,21 +220,27 @@
 {
    static Evas_Smart *smart = NULL;
 
-   if (smart)
-     return smart;
-
-   smart = evas_smart_new("esmart_resize_object",
-        _esmart_resize_object_add,
-        _esmart_resize_object_del,
-        NULL, NULL, NULL, NULL, NULL,
-        _esmart_resize_object_move,
-        _esmart_resize_object_resize,
-        _esmart_resize_object_show,
-        _esmart_resize_object_hide,
-        _esmart_resize_object_color_set,
-        _esmart_resize_object_clip_set,
-        _esmart_resize_object_clip_unset, NULL);
+   if (!smart)
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "esmart_resize_object",
+            EVAS_SMART_CLASS_VERSION,
+            _esmart_resize_object_add,
+            _esmart_resize_object_del,
+            _esmart_resize_object_move,
+            _esmart_resize_object_resize,
+            _esmart_resize_object_show,
+            _esmart_resize_object_hide,
+            _esmart_resize_object_color_set,
+            _esmart_resize_object_clip_set,
+            _esmart_resize_object_clip_unset,
+            NULL
+         };
 
+       smart = evas_smart_class_new(&sc);
+     }
+   
    return smart;
 }
 



-------------------------------------------------------------------------
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