Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/esmart
Dir : e17/libs/esmart/src/lib/esmart_container Modified Files: esmart_container_smart.c Log Message: use evas_smart_class_new() =================================================================== RCS file: /cvs/e/e17/libs/esmart/src/lib/esmart_container/esmart_container_smart.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- esmart_container_smart.c 20 Dec 2005 05:51:55 -0000 1.5 +++ esmart_container_smart.c 4 Aug 2007 14:50:40 -0000 1.6 @@ -1,3 +1,6 @@ +/* + * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 + */ #include "Esmart_Container.h" #include "esmart_container_private.h" @@ -48,28 +51,26 @@ Evas_Smart * _container_smart_get() { - if (smart) return smart; + if (!smart) + { + static const Evas_Smart_Class sc = + { + "container", + EVAS_SMART_CLASS_VERSION, + _container_add, + _container_del, + _container_move, + _container_resize, + _container_show, + _container_hide, + _container_color_set, + _container_clip_set, + _container_clip_unset, + NULL + }; - smart = evas_smart_new ("container", - _container_add, - _container_del, - NULL, NULL, NULL, NULL, NULL, - /* - _container_layer_set, - _container_raise, - _container_lower, - _container_stack_above, - _container_stack_below, - */ - _container_move, - _container_resize, - _container_show, - _container_hide, - _container_color_set, - _container_clip_set, - _container_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