From 0a952a38fc3f589de7c1d86e2a9e2ef40acd46ea Mon Sep 17 00:00:00 2001 From: Hyoyoung Chang Date: Fri, 5 Aug 2011 14:36:00 +0900 Subject: [PATCH] [widget] add widget type unregister api --- src/lib/elm_widget.c | 12 ++++++++++++ src/lib/elm_widget.h | 1 + 2 files changed, 13 insertions(+) diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 14ae3fb..9c348e8 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -403,6 +403,18 @@ elm_widget_type_register(const char **ptr) widtypes = eina_list_append(widtypes, (void *)ptr); } +/** + * @defgroup Widget Widget + * + * @internal + * Disposed api for making widgets + */ +EAPI void +elm_widget_type_unregister(const char **ptr) +{ + widtypes = eina_list_remove(widtypes, (void *)ptr); +} + EAPI Eina_Bool elm_widget_api_check(int ver) { diff --git a/src/lib/elm_widget.h b/src/lib/elm_widget.h index a909b5b..12aa920 100644 --- a/src/lib/elm_widget.h +++ b/src/lib/elm_widget.h @@ -307,6 +307,7 @@ EAPI int elm_widget_drag_child_locked_x_get(const Evas_Object *obj) EAPI int elm_widget_drag_child_locked_y_get(const Evas_Object *obj); EAPI Eina_Bool elm_widget_theme_object_set(Evas_Object *obj, Evas_Object *edj, const char *wname, const char *welement, const char *wstyle); EAPI void elm_widget_type_register(const char **ptr); +EAPI void elm_widget_type_unregister(const char **ptr); EAPI Eina_Bool elm_widget_type_check(const Evas_Object *obj, const char *type); EAPI Eina_List *elm_widget_stringlist_get(const char *str); EAPI void elm_widget_stringlist_free(Eina_List *list); -- 2.7.4