evas_object_smart_smart_get() does the same job.
So I minimalized the check routine.
http://trac.enlightenment.org/e/changeset/74952
Thanks.

Daniel Juyung Seo (SeoZ)

On Tue, Aug 7, 2012 at 1:19 AM, Enlightenment SVN
<[email protected]> wrote:
> Log:
> [evas] Add forgotten magic checks on those iface functions.
>
>
>
>
> Author:       glima
> Date:         2012-08-06 09:19:25 -0700 (Mon, 06 Aug 2012)
> New Revision: 74948
> Trac:         http://trac.enlightenment.org/e/changeset/74948
>
> Modified:
>   trunk/evas/src/lib/canvas/evas_object_smart.c
>
> Modified: trunk/evas/src/lib/canvas/evas_object_smart.c
> ===================================================================
> --- trunk/evas/src/lib/canvas/evas_object_smart.c       2012-08-06 14:52:44 
> UTC (rev 74947)
> +++ trunk/evas/src/lib/canvas/evas_object_smart.c       2012-08-06 16:19:25 
> UTC (rev 74948)
> @@ -104,12 +104,16 @@
>  evas_object_smart_interface_get(const Evas_Object *obj,
>                                  const char *name)
>  {
> +   Evas_Smart *s;
>     unsigned int i;
> -   Evas_Smart *s;
> +   Evas_Object_Smart *o;
>
>     MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
>     return NULL;
>     MAGIC_CHECK_END();
> +   o = (Evas_Object_Smart *)(obj->object_data);
> +   if (!o) return NULL;
> +   if (o->magic != MAGIC_OBJ_SMART) return NULL;
>
>     s = evas_object_smart_smart_get(obj);
>
> @@ -130,12 +134,16 @@
>  evas_object_smart_interface_data_get(const Evas_Object *obj,
>                                       const Evas_Smart_Interface *iface)
>  {
> +   Evas_Object_Smart *o;
>     unsigned int i;
>     Evas_Smart *s;
>
>     MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
>     return NULL;
>     MAGIC_CHECK_END();
> +   o = (Evas_Object_Smart *)(obj->object_data);
> +   if (!o) return NULL;
> +   if (o->magic != MAGIC_OBJ_SMART) return NULL;
>
>     s = evas_object_smart_smart_get(obj);
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to