Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_box.c e_editable.c e_entry.c e_flowlayout.c e_fm.c 
        e_gadcon.c e_icon.c e_ilist.c e_int_config_modules.c 
        e_layout.c e_livethumb.c e_module.c e_pan.c e_scrollframe.c 
        e_slider.c e_spectrum.c e_table.c e_tlist.c e_widget.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/e/src/bin/e_box.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- e_box.c     9 May 2007 18:44:19 -0000       1.21
+++ e_box.c     4 Aug 2007 13:12:40 -0000       1.22
@@ -649,18 +649,24 @@
 _e_box_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new("e_box",
-                            _e_box_smart_add,
-                            _e_box_smart_del,
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_box_smart_move,
-                            _e_box_smart_resize,
-                            _e_box_smart_show,
-                            _e_box_smart_hide,
-                            _e_box_smart_color_set,
-                            _e_box_smart_clip_set,
-                            _e_box_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "e_box",
+              EVAS_SMART_CLASS_VERSION,
+              _e_box_smart_add,
+              _e_box_smart_del,
+              _e_box_smart_move,
+              _e_box_smart_resize,
+              _e_box_smart_show,
+              _e_box_smart_hide,
+              _e_box_smart_color_set,
+              _e_box_smart_clip_set,
+              _e_box_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
 static void
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_editable.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_editable.c        22 Apr 2007 05:30:37 -0000      1.19
+++ e_editable.c        4 Aug 2007 13:12:41 -0000       1.20
@@ -74,18 +74,22 @@
 {
    if (!_e_editable_smart)
      {
-        _e_editable_smart = evas_smart_new("e_editable",
-                                   _e_editable_smart_add, /* add */
-                                   _e_editable_smart_del, /* del */
-                                   NULL, NULL, NULL, NULL, NULL, /* stacking */
-                                   _e_editable_smart_move, /* move */
-                                   _e_editable_smart_resize, /* resize */
-                                   _e_editable_smart_show, /* show */
-                                   _e_editable_smart_hide, /* hide */
-                                   _e_editable_color_set, /* color_set */
-                                   _e_editable_clip_set, /* clip_set */
-                                   _e_editable_clip_unset, /* clip_unset */
-                                   NULL); /* data*/
+       static const Evas_Smart_Class sc =
+         {
+            "e_editable",
+              EVAS_SMART_CLASS_VERSION,
+              _e_editable_smart_add,
+              _e_editable_smart_del,
+              _e_editable_smart_move,
+              _e_editable_smart_resize,
+              _e_editable_smart_show,
+              _e_editable_smart_hide,
+              _e_editable_color_set,
+              _e_editable_clip_set,
+              _e_editable_clip_unset,
+              NULL
+         };
+       _e_editable_smart = evas_smart_class_new(&sc);
         _e_editable_smart_use = 0;
      }
    
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_entry.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- e_entry.c   12 Jun 2007 11:59:47 -0000      1.44
+++ e_entry.c   4 Aug 2007 13:12:41 -0000       1.45
@@ -70,18 +70,22 @@
 {
    if (!_e_entry_smart)
      {
-        _e_entry_smart = evas_smart_new("e_entry",
-                                       _e_entry_smart_add, /* add */
-                                       _e_entry_smart_del, /* del */
-                                       NULL, NULL, NULL, NULL, NULL, /* 
stacking */
-                                       _e_entry_smart_move, /* move */
-                                       _e_entry_smart_resize, /* resize */
-                                       _e_entry_smart_show, /* show */
-                                       _e_entry_smart_hide, /* hide */
-                                       _e_entry_color_set, /* color_set */
-                                       _e_entry_clip_set, /* clip_set */
-                                       _e_entry_clip_unset, /* clip_unset */
-                                       NULL); /* data*/
+        static const Evas_Smart_Class sc =
+         {
+            "e_entry",
+              EVAS_SMART_CLASS_VERSION,
+              _e_entry_smart_add,
+              _e_entry_smart_del,
+              _e_entry_smart_move,
+              _e_entry_smart_resize,
+              _e_entry_smart_show,
+              _e_entry_smart_hide,
+              _e_entry_color_set,
+              _e_entry_clip_set,
+              _e_entry_clip_unset,
+              NULL
+         };
+       _e_entry_smart = evas_smart_class_new(&sc);
         _e_entry_smart_use = 0;
      }
    
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_flowlayout.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_flowlayout.c      22 Apr 2007 09:48:18 -0000      1.4
+++ e_flowlayout.c      4 Aug 2007 13:12:41 -0000       1.5
@@ -822,18 +822,23 @@
 _e_flowlayout_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new("e_flowlayout",
-                            _e_flowlayout_smart_add,
-                            _e_flowlayout_smart_del,
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_flowlayout_smart_move,
-                            _e_flowlayout_smart_resize,
-                            _e_flowlayout_smart_show,
-                            _e_flowlayout_smart_hide,
-                            _e_flowlayout_smart_color_set,
-                            _e_flowlayout_smart_clip_set,
-                            _e_flowlayout_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "e_flowlayout",
+              _e_flowlayout_smart_add,
+              _e_flowlayout_smart_del,
+              _e_flowlayout_smart_move,
+              _e_flowlayout_smart_resize,
+              _e_flowlayout_smart_show,
+              _e_flowlayout_smart_hide,
+              _e_flowlayout_smart_color_set,
+              _e_flowlayout_smart_clip_set,
+              _e_flowlayout_smart_clip_unset,
+              NULL
+         };
+        _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
 static void
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.c,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -3 -r1.192 -r1.193
--- e_fm.c      25 Jul 2007 17:00:50 -0000      1.192
+++ e_fm.c      4 Aug 2007 13:12:41 -0000       1.193
@@ -369,18 +369,24 @@
    ecore_file_mkpath(path);
    _e_fm2_meta_path = strdup(path);
 
-   _e_fm2_smart = evas_smart_new("e_fm",
-                                _e_fm2_smart_add, /* add */
-                                _e_fm2_smart_del, /* del */
-                                NULL, NULL, NULL, NULL, NULL,
-                                _e_fm2_smart_move, /* move */
-                                _e_fm2_smart_resize, /* resize */
-                                _e_fm2_smart_show,/* show */
-                                _e_fm2_smart_hide,/* hide */
-                                _e_fm2_smart_color_set, /* color_set */
-                                _e_fm2_smart_clip_set, /* clip_set */
-                                _e_fm2_smart_clip_unset, /* clip_unset */
-                                NULL); /* data*/
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "e_fm",
+              EVAS_SMART_CLASS_VERSION,
+              _e_fm2_smart_add, /* add */
+              _e_fm2_smart_del, /* del */
+              _e_fm2_smart_move, /* move */
+              _e_fm2_smart_resize, /* resize */
+              _e_fm2_smart_show,/* show */
+              _e_fm2_smart_hide,/* hide */
+              _e_fm2_smart_color_set, /* color_set */
+              _e_fm2_smart_clip_set, /* clip_set */
+              _e_fm2_smart_clip_unset, /* clip_unset */
+              NULL
+         };
+       _e_fm2_smart = evas_smart_class_new(&sc);
+     }
 //   _e_fm2_client_spawn();
    e_fm2_custom_file_init();
    efreet_mime_init();
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_gadcon.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -3 -r1.78 -r1.79
--- e_gadcon.c  7 May 2007 19:54:12 -0000       1.78
+++ e_gadcon.c  4 Aug 2007 13:12:41 -0000       1.79
@@ -2924,18 +2924,24 @@
 _e_gadcon_layout_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new("e_gadcon_layout",
-                            _e_gadcon_layout_smart_add,
-                            _e_gadcon_layout_smart_del,
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_gadcon_layout_smart_move,
-                            _e_gadcon_layout_smart_resize,
-                            _e_gadcon_layout_smart_show,
-                            _e_gadcon_layout_smart_hide,
-                            _e_gadcon_layout_smart_color_set,
-                            _e_gadcon_layout_smart_clip_set,
-                            _e_gadcon_layout_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "e_gadcon_layout",
+              EVAS_SMART_CLASS_VERSION,
+              _e_gadcon_layout_smart_add,
+              _e_gadcon_layout_smart_del,
+              _e_gadcon_layout_smart_move,
+              _e_gadcon_layout_smart_resize,
+              _e_gadcon_layout_smart_show,
+              _e_gadcon_layout_smart_hide,
+              _e_gadcon_layout_smart_color_set,
+              _e_gadcon_layout_smart_clip_set,
+              _e_gadcon_layout_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
 static void
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_icon.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- e_icon.c    16 Jul 2007 00:50:50 -0000      1.17
+++ e_icon.c    4 Aug 2007 13:12:41 -0000       1.18
@@ -272,18 +272,24 @@
 _e_icon_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new("e_icon",
-                            _e_icon_smart_add,
-                            _e_icon_smart_del,
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_icon_smart_move,
-                            _e_icon_smart_resize,
-                            _e_icon_smart_show,
-                            _e_icon_smart_hide,
-                            _e_icon_smart_color_set,
-                            _e_icon_smart_clip_set,
-                            _e_icon_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "e_icon",
+              EVAS_SMART_CLASS_VERSION,
+              _e_icon_smart_add,
+              _e_icon_smart_del,
+              _e_icon_smart_move,
+              _e_icon_smart_resize,
+              _e_icon_smart_show,
+              _e_icon_smart_hide,
+              _e_icon_smart_color_set,
+              _e_icon_smart_clip_set,
+              _e_icon_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
 static void
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_ilist.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- e_ilist.c   15 Jul 2007 23:39:28 -0000      1.37
+++ e_ilist.c   4 Aug 2007 13:12:41 -0000       1.38
@@ -712,11 +712,24 @@
 _e_smart_init(void) 
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new(SMART_NAME, _e_smart_add, _e_smart_del, 
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_smart_move, _e_smart_resize, _e_smart_show,
-                            _e_smart_hide, _e_smart_color_set, 
-                            _e_smart_clip_set, _e_smart_clip_unset, NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            SMART_NAME,
+              EVAS_SMART_CLASS_VERSION,
+              _e_smart_add,
+              _e_smart_del, 
+              _e_smart_move,
+              _e_smart_resize,
+              _e_smart_show,
+              _e_smart_hide,
+              _e_smart_color_set, 
+              _e_smart_clip_set,
+              _e_smart_clip_unset,
+              NULL
+         };
+        _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
 static void 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_modules.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -3 -r1.59 -r1.60
--- e_int_config_modules.c      26 Jul 2007 12:01:54 -0000      1.59
+++ e_int_config_modules.c      4 Aug 2007 13:12:41 -0000       1.60
@@ -572,7 +572,14 @@
        if (!item->selected) continue;
        lbl = e_widget_ilist_nth_label_get(cfdata->o_loaded, idx);
        mod = _get_module(cfdata, lbl);
-       if ((mod) && (mod->enabled)) e_module_disable(mod);
+       if ((mod) && (mod->enabled))
+         {
+            e_module_disable(mod);
+// FIXME: we need to UNLOAD modules by deleting their objects too! right now
+// this is done next restart
+//          cfdata->modules = evas_list_remove(cfdata->modules, mod);
+//          e_object_del(E_OBJECT(mod));
+         }
      }
    if (l) evas_list_free(l);
 }
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_layout.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- e_layout.c  29 Mar 2006 00:35:16 -0000      1.11
+++ e_layout.c  4 Aug 2007 13:12:41 -0000       1.12
@@ -350,18 +350,24 @@
 _e_layout_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new("e_layout",
-                            _e_layout_smart_add,
-                            _e_layout_smart_del,
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_layout_smart_move,
-                            _e_layout_smart_resize,
-                            _e_layout_smart_show,
-                            _e_layout_smart_hide,
-                            _e_layout_smart_color_set,
-                            _e_layout_smart_clip_set,
-                            _e_layout_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "e_layout",
+              EVAS_SMART_CLASS_VERSION,
+              _e_layout_smart_add,
+              _e_layout_smart_del,
+              _e_layout_smart_move,
+              _e_layout_smart_resize,
+              _e_layout_smart_show,
+              _e_layout_smart_hide,
+              _e_layout_smart_color_set,
+              _e_layout_smart_clip_set,
+              _e_layout_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
 static void
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_livethumb.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_livethumb.c       7 Jan 2006 10:39:45 -0000       1.4
+++ e_livethumb.c       4 Aug 2007 13:12:41 -0000       1.5
@@ -196,17 +196,23 @@
 _e_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new(SMART_NAME,
-                            _e_smart_add,
-                            _e_smart_del, 
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_smart_move,
-                            _e_smart_resize,
-                            _e_smart_show,
-                            _e_smart_hide,
-                            _e_smart_color_set,
-                            _e_smart_clip_set,
-                            _e_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            SMART_NAME,
+              EVAS_SMART_CLASS_VERSION,
+              _e_smart_add,
+              _e_smart_del, 
+              _e_smart_move,
+              _e_smart_resize,
+              _e_smart_show,
+              _e_smart_hide,
+              _e_smart_color_set,
+              _e_smart_clip_set,
+              _e_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_module.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -3 -r1.83 -r1.84
--- e_module.c  3 Aug 2007 05:32:58 -0000       1.83
+++ e_module.c  4 Aug 2007 13:12:41 -0000       1.84
@@ -73,11 +73,11 @@
               evas_list_append(_e_modules_delayed,
                                evas_stringshare_add(em->name));
          }
-       else
+       else if (em->enabled)
          {
             m = NULL;
             if (em->name) m = e_module_new(em->name);
-            if ((m) && (em->enabled)) e_module_enable(m);
+            if (m) e_module_enable(m);
          }
      }
 }
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_pan.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_pan.c     7 Jan 2006 10:39:45 -0000       1.5
+++ e_pan.c     4 Aug 2007 13:12:41 -0000       1.6
@@ -249,17 +249,23 @@
 _e_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new(SMART_NAME,
-                            _e_smart_add,
-                            _e_smart_del, 
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_smart_move,
-                            _e_smart_resize,
-                            _e_smart_show,
-                            _e_smart_hide,
-                            _e_smart_color_set,
-                            _e_smart_clip_set,
-                            _e_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            SMART_NAME,
+              EVAS_SMART_CLASS_VERSION,
+              _e_smart_add,
+              _e_smart_del, 
+              _e_smart_move,
+              _e_smart_resize,
+              _e_smart_show,
+              _e_smart_hide,
+              _e_smart_color_set,
+              _e_smart_clip_set,
+              _e_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_scrollframe.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- e_scrollframe.c     21 May 2007 14:12:48 -0000      1.17
+++ e_scrollframe.c     4 Aug 2007 13:12:41 -0000       1.18
@@ -783,17 +783,23 @@
 _e_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new(SMART_NAME,
-                            _e_smart_add,
-                            _e_smart_del, 
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_smart_move,
-                            _e_smart_resize,
-                            _e_smart_show,
-                            _e_smart_hide,
-                            _e_smart_color_set,
-                            _e_smart_clip_set,
-                            _e_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            SMART_NAME,
+              EVAS_SMART_CLASS_VERSION,
+              _e_smart_add,
+              _e_smart_del, 
+              _e_smart_move,
+              _e_smart_resize,
+              _e_smart_show,
+              _e_smart_hide,
+              _e_smart_color_set,
+              _e_smart_clip_set,
+              _e_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_slider.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_slider.c  23 Aug 2006 03:39:02 -0000      1.9
+++ e_slider.c  4 Aug 2007 13:12:41 -0000       1.10
@@ -533,17 +533,23 @@
 _e_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new(SMART_NAME,
-                            _e_smart_add,
-                            _e_smart_del, 
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_smart_move,
-                            _e_smart_resize,
-                            _e_smart_show,
-                            _e_smart_hide,
-                            _e_smart_color_set,
-                            _e_smart_clip_set,
-                            _e_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            SMART_NAME,
+              EVAS_SMART_CLASS_VERSION,
+              _e_smart_add,
+              _e_smart_del, 
+              _e_smart_move,
+              _e_smart_resize,
+              _e_smart_show,
+              _e_smart_hide,
+              _e_smart_color_set,
+              _e_smart_clip_set,
+              _e_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_spectrum.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_spectrum.c        8 Apr 2007 21:00:30 -0000       1.13
+++ e_spectrum.c        4 Aug 2007 13:12:41 -0000       1.14
@@ -152,19 +152,25 @@
 static void
 _e_spectrum_smart_init()
 {
-   if ( _e_spectrum_smart ) return;
-   _e_spectrum_smart = evas_smart_new("e_spectrum",
-                                     _e_spectrum_smart_add,
-                                     _e_spectrum_smart_del,
-                                     NULL, NULL, NULL, NULL, NULL,
-                                     _e_spectrum_smart_move,
-                                     _e_spectrum_smart_resize,
-                                     _e_spectrum_smart_show,
-                                     _e_spectrum_smart_hide,
-                                     _e_spectrum_smart_color_set,
-                                     _e_spectrum_smart_clip_set,
-                                     _e_spectrum_smart_clip_unset,
-                                     NULL);
+   if (_e_spectrum_smart) return;
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "e_spectrum",
+              EVAS_SMART_CLASS_VERSION,
+              _e_spectrum_smart_add,
+              _e_spectrum_smart_del,
+              _e_spectrum_smart_move,
+              _e_spectrum_smart_resize,
+              _e_spectrum_smart_show,
+              _e_spectrum_smart_hide,
+              _e_spectrum_smart_color_set,
+              _e_spectrum_smart_clip_set,
+              _e_spectrum_smart_clip_unset,
+              NULL
+         };
+        _e_spectrum_smart = evas_smart_class_new(&sc);
+     }
 }
 
 void
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_table.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_table.c   9 May 2007 18:44:19 -0000       1.13
+++ e_table.c   4 Aug 2007 13:12:41 -0000       1.14
@@ -825,18 +825,24 @@
 _e_table_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new("e_table",
-                            _e_table_smart_add,
-                            _e_table_smart_del,
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_table_smart_move,
-                            _e_table_smart_resize,
-                            _e_table_smart_show,
-                            _e_table_smart_hide,
-                            _e_table_smart_color_set,
-                            _e_table_smart_clip_set,
-                            _e_table_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "e_table",
+              EVAS_SMART_CLASS_VERSION,
+              _e_table_smart_add,
+              _e_table_smart_del,
+              _e_table_smart_move,
+              _e_table_smart_resize,
+              _e_table_smart_show,
+              _e_table_smart_hide,
+              _e_table_smart_color_set,
+              _e_table_smart_clip_set,
+              _e_table_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
 
 static void
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_tlist.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_tlist.c   23 Aug 2006 03:39:02 -0000      1.7
+++ e_tlist.c   4 Aug 2007 13:12:41 -0000       1.8
@@ -549,16 +549,23 @@
 static void
 _e_smart_init(void)
 {
-   if (_e_smart)
-      return;
-   _e_smart = evas_smart_new(SMART_NAME,
-                            _e_smart_add,
-                            _e_smart_del,
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_smart_move,
-                            _e_smart_resize,
-                            _e_smart_show,
-                            _e_smart_hide,
-                            _e_smart_color_set,
-                            _e_smart_clip_set, _e_smart_clip_unset, NULL);
+   if (_e_smart) return;
+     {
+       static const Evas_Smart_Class sc =
+         {
+            SMART_NAME,
+              EVAS_SMART_CLASS_VERSION,
+              _e_smart_add,
+              _e_smart_del,
+              _e_smart_move,
+              _e_smart_resize,
+              _e_smart_show,
+              _e_smart_hide,
+              _e_smart_color_set,
+              _e_smart_clip_set,
+              _e_smart_clip_unset,
+              NULL
+         };
+       _e_smart = evas_smart_class_new(&sc);
+     }
 }
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_widget.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- e_widget.c  16 Oct 2006 23:45:16 -0000      1.15
+++ e_widget.c  4 Aug 2007 13:12:41 -0000       1.16
@@ -563,16 +563,22 @@
 _e_smart_init(void)
 {
    if (_e_smart) return;
-   _e_smart = evas_smart_new(SMART_NAME,
-                            _e_smart_add,
-                            _e_smart_del, 
-                            NULL, NULL, NULL, NULL, NULL,
-                            _e_smart_move,
-                            _e_smart_resize,
-                            _e_smart_show,
-                            _e_smart_hide,
-                            _e_smart_color_set,
-                            _e_smart_clip_set,
-                            _e_smart_clip_unset,
-                            NULL);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            SMART_NAME,
+              EVAS_SMART_CLASS_VERSION,
+              _e_smart_add,
+              _e_smart_del, 
+              _e_smart_move,
+              _e_smart_resize,
+              _e_smart_show,
+              _e_smart_hide,
+              _e_smart_color_set,
+              _e_smart_clip_set,
+              _e_smart_clip_unset,
+              NULL
+         };
+        _e_smart = evas_smart_class_new(&sc);
+     }
 }



-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to