Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_embed.c ewl_widget.c 


Log Message:
use evas_smart_class_new()

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -3 -r1.124 -r1.125
--- ewl_embed.c 31 Jul 2007 18:35:47 -0000      1.124
+++ ewl_embed.c 4 Aug 2007 14:21:37 -0000       1.125
@@ -206,8 +206,6 @@
 {
        Ecore_List *paths;
        char *font_path;
-       char *name = "EWL Embedded Smart Object";
-
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR_RET("emb", emb, NULL);
        DCHECK_PARAM_PTR_RET("canvas", canvas, NULL);
@@ -217,17 +215,21 @@
        emb->canvas_window = canvas_window;
 
        if (!embedded_smart) {
-               embedded_smart = evas_smart_new(name,
+               static const Evas_Smart_Class sc = {
+                       "EWL Embedded Smart Object",
+                       EVAS_SMART_CLASS_VERSION,
                        NULL,
                        ewl_embed_smart_cb_del,
-                       NULL, NULL, NULL, NULL, NULL,
                        ewl_embed_smart_cb_move,
                        ewl_embed_smart_cb_resize,
                        ewl_embed_smart_cb_show,
                        ewl_embed_smart_cb_hide,
                        NULL,
                        ewl_embed_smart_cb_clip_set,
-                       ewl_embed_smart_cb_clip_unset, NULL);
+                       ewl_embed_smart_cb_clip_unset, 
+                       NULL
+               };
+               embedded_smart = evas_smart_class_new(&sc);
        }
 
        if (emb->smart) {
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -3 -r1.140 -r1.141
--- ewl_widget.c        25 Jul 2007 17:01:00 -0000      1.140
+++ ewl_widget.c        4 Aug 2007 14:21:37 -0000       1.141
@@ -2339,11 +2339,13 @@
                w->smart_object = ewl_embed_object_request(emb, "Ewl Widget 
Smart Object");
                if (!w->smart_object) {
                        if (!widget_smart) {
-                               widget_smart = evas_smart_new("Ewl Widget Smart 
Object",
-                                               NULL, NULL, NULL, NULL,
-                                               NULL, NULL, NULL, NULL,
-                                               NULL, NULL, NULL, NULL,
-                                               NULL, NULL, NULL);
+                               static const Evas_Smart_Class sc = {
+                                       "Ewl Widget Smart Object",
+                                       EVAS_SMART_CLASS_VERSION,
+                                       NULL, NULL, NULL, NULL, NULL,
+                                       NULL, NULL, NULL, NULL, NULL
+                               };
+                               widget_smart = evas_smart_class_new(&sc);
                        }
                        w->smart_object = evas_object_smart_add(emb->canvas, 
widget_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