Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/client


Modified Files:
        entrance_session.c entrance_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/apps/entrance/src/client/entrance_session.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -3 -r1.93 -r1.94
--- entrance_session.c  1 Apr 2007 02:42:29 -0000       1.93
+++ entrance_session.c  4 Aug 2007 13:12:41 -0000       1.94
@@ -467,17 +467,25 @@
 
    entrance_config_prevuser_save(e->auth->user, e->db);
 
+   syslog(LOG_INFO, "DEBUG1");
    /* avoid doubling up pam handles before the fork */
    pwent = struct_passwd_dup(e->auth->pw);
+   syslog(LOG_INFO, "DEBUG2");
    entrance_auth_free(e->auth);
    e->auth = NULL;
+   syslog(LOG_INFO, "DEBUG3");
 
    /* Shutdown subsytems */
    edje_shutdown();
+   syslog(LOG_INFO, "DEBUG4");
    ecore_evas_shutdown();
+   syslog(LOG_INFO, "DEBUG5");
    ecore_config_shutdown();
+   syslog(LOG_INFO, "DEBUG6");
    ecore_x_sync();
+   syslog(LOG_INFO, "DEBUG7");
    entrance_ipc_shutdown();
+   syslog(LOG_INFO, "DEBUG8");
 
    switch ((pid = fork()))
    {
===================================================================
RCS file: /cvs/e/e17/apps/entrance/src/client/entrance_smart.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- entrance_smart.c    27 Jun 2004 19:33:28 -0000      1.2
+++ entrance_smart.c    4 Aug 2007 13:12:41 -0000       1.3
@@ -122,24 +122,25 @@
 {
    static Evas_Smart *smart = NULL;
 
-   if (smart)
-      return (smart);
-
-   smart =
-      evas_smart_new("entrance_smart_object", _entrance_smart_object_add,
-                     _entrance_smart_object_del,
-                     _entrance_smart_object_layer_set,
-                     _entrance_smart_object_raise,
-                     _entrance_smart_object_lower,
-                     _entrance_smart_object_stack_above,
-                     _entrance_smart_object_stack_below,
-                     _entrance_smart_object_move,
-                     _entrance_smart_object_resize,
-                     _entrance_smart_object_show, _entrance_smart_object_hide,
-                     _entrance_smart_object_color_set,
-                     _entrance_smart_object_clip_set,
-                     _entrance_smart_object_clip_unset, NULL);
-
+   if (smart) return (smart);
+     {
+       static const Evas_Smart_Class sc =
+         {
+            "entrance_smart_object",
+              EVAS_SMART_CLASS_VERSION,
+              _entrance_smart_object_add,
+              _entrance_smart_object_del,
+              _entrance_smart_object_move,
+              _entrance_smart_object_resize,
+              _entrance_smart_object_show,
+              _entrance_smart_object_hide,
+              _entrance_smart_object_color_set,
+              _entrance_smart_object_clip_set,
+              _entrance_smart_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