From 2e205d03ed64316763b46d390c71912ecff3c2b7 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Thu, 4 Aug 2011 08:52:49 +0000 Subject: [PATCH] elementary/elm_widget - oops. recorvered a missing struct and added a macro to verify elm_object_item SVN revision: 62084 --- src/lib/elm_widget.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/elm_widget.h b/src/lib/elm_widget.h index 32d8b36..8e16778 100644 --- a/src/lib/elm_widget.h +++ b/src/lib/elm_widget.h @@ -218,9 +218,19 @@ struct _Elm_Widget_Item /* @todo: TODO check if this is enough for 1.0 release, maybe add padding! */ }; +struct _Elm_Object_Item +{ + Elm_Widget_Item it; +}; + #define ELM_NEW(t) calloc(1, sizeof(t)) + #define ELM_CAST(p) ((void *)(p)) +#define ELM_OBJ_ITEM_CHECK_OR_RETURN(it, ...) \ + ELM_WIDGET_ITEM_CHECK_OR_RETURN((Elm_Widget_Item *) (it), __VA_ARGS__); \ + ELM_CHECK_WIDTYPE(it->it.widget, widtype) __VA_ARGS__; + EAPI Eina_Bool elm_widget_api_check(int ver); EAPI Evas_Object *elm_widget_add(Evas *evas); EAPI void elm_widget_del_hook_set(Evas_Object *obj, void (*func) (Evas_Object *obj)); -- 2.7.4