From e7d9a42347de85a32ef8654c025684fdf9dbfbf6 Mon Sep 17 00:00:00 2001 From: hermet Date: Fri, 24 Feb 2012 11:20:18 +0000 Subject: [PATCH] elementary/menu - deprecated elm_menu_item_menu_get. use elm_object_item_widget_get() git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68401 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_deprecated.h | 11 +++++++++++ src/lib/elm_menu.c | 2 +- src/lib/elm_menu.h | 10 ---------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/lib/elm_deprecated.h b/src/lib/elm_deprecated.h index 87f8b89..ac59e71 100644 --- a/src/lib/elm_deprecated.h +++ b/src/lib/elm_deprecated.h @@ -2317,6 +2317,17 @@ EINA_DEPRECATED EAPI void elm_menu_item_data_set(Elm_Object_Item *it, co EINA_DEPRECATED EAPI void elm_menu_item_del(Elm_Object_Item *it); /** + * @brief @brief Return a menu item's owner menu + * + * @param it The menu item + * @return The menu object owning @p item, or NULL on failure + * + * Use this function to get the menu object owning an item. + * @deprecated Use elm_object_item_widget_get() instead + */ +EINA_DEPRECATED EAPI Evas_Object *elm_menu_item_menu_get(const Elm_Object_Item *it); + +/** * @brief Set the content of the notify widget * * @param obj The notify object diff --git a/src/lib/elm_menu.c b/src/lib/elm_menu.c index c548a1b..c1d7921 100644 --- a/src/lib/elm_menu.c +++ b/src/lib/elm_menu.c @@ -1029,7 +1029,7 @@ elm_menu_item_next_get(const Elm_Object_Item *it) return NULL; } -EAPI Evas_Object * +EINA_DEPRECATED EAPI Evas_Object * elm_menu_item_menu_get(const Elm_Object_Item *it) { return elm_object_item_widget_get(it); diff --git a/src/lib/elm_menu.h b/src/lib/elm_menu.h index b4e3e4c..4e75622 100644 --- a/src/lib/elm_menu.h +++ b/src/lib/elm_menu.h @@ -210,16 +210,6 @@ EAPI const Eina_List *elm_menu_item_subitems_get(const Elm_Object_It EAPI unsigned int elm_menu_item_index_get(const Elm_Object_Item *it); /** - * @brief @brief Return a menu item's owner menu - * - * @param it The menu item - * @return The menu object owning @p item, or NULL on failure - * - * Use this function to get the menu object owning an item. - */ -EAPI Evas_Object *elm_menu_item_menu_get(const Elm_Object_Item *it); - -/** * @brief Get the selected item in the menu * * @param obj The menu object -- 2.7.4