Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_container.c edje_smart.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/libs/edje/src/lib/edje_container.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- edje_container.c    27 Oct 2005 02:44:36 -0000      1.10
+++ edje_container.c    4 Aug 2007 13:12:41 -0000       1.11
@@ -749,18 +749,23 @@
 _smart_init(void)
 {
    if (smart) return;
-   smart = evas_smart_new(E_OBJ_NAME,
-                         _smart_add,
-                         _smart_del,
-                         NULL, NULL, NULL, NULL, NULL,
-                         _smart_move,
-                         _smart_resize,
-                         _smart_show,
-                         _smart_hide,
-                         _smart_color_set,
-                         _smart_clip_set,
-                         _smart_clip_unset,
-                         NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            E_OBJ_NAME,
+              _smart_add,
+              _smart_del,
+              _smart_move,
+              _smart_resize,
+              _smart_show,
+              _smart_hide,
+              _smart_color_set,
+              _smart_clip_set,
+              _smart_clip_unset,
+              NULL
+         };
+        smart = evas_smart_class_new(&sc);
+     }
 }
 
 static void
===================================================================
RCS file: /cvs/e/e17/libs/edje/src/lib/edje_smart.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- edje_smart.c        26 May 2007 23:57:21 -0000      1.30
+++ edje_smart.c        4 Aug 2007 13:12:41 -0000       1.31
@@ -29,18 +29,22 @@
 {
    if (!_edje_smart)
      {
-       _edje_smart = evas_smart_new("edje",
-                                    _edje_smart_add,
-                                    _edje_smart_del,
-                                    NULL, NULL, NULL, NULL, NULL,
-                                    _edje_smart_move,
-                                    _edje_smart_resize,
-                                    _edje_smart_show,
-                                    _edje_smart_hide,
-                                    _edje_smart_color_set,
-                                    _edje_smart_clip_set, 
-                                    _edje_smart_clip_unset, 
-                                    NULL);
+        static const Evas_Smart_Class sc =
+         {
+            "edje",
+              EVAS_SMART_CLASS_VERSION,
+              _edje_smart_add,
+              _edje_smart_del,
+              _edje_smart_move,
+              _edje_smart_resize,
+              _edje_smart_show,
+              _edje_smart_hide,
+              _edje_smart_color_set,
+              _edje_smart_clip_set, 
+              _edje_smart_clip_unset, 
+              NULL
+         };
+       _edje_smart = evas_smart_class_new(&sc);
      }
    return evas_object_smart_add(evas, _edje_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