From: Mike McCormack Date: Mon, 14 Nov 2011 05:23:50 +0000 (+0900) Subject: [menu] Add compatibility code X-Git-Tag: REBUILDD-ARMEL-68287~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e304be0aa6f2f28823861c0c27c7876a1110171b;p=framework%2Fuifw%2Felementary.git [menu] Add compatibility code Create extern inline functions so ELF objects will link to the new function names, but the old functions are still available to old binaries. --- diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 4e7084e..2166f26 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -15876,11 +15876,23 @@ extern "C" { EAPI const char *elm_menu_item_label_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1); EAPI void elm_menu_item_object_icon_name_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2); EAPI const char *elm_menu_item_object_icon_name_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1); - EAPI void elm_menu_item_icon_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2) EINA_DEPRECATED; - EAPI const char *elm_menu_item_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_DEPRECATED; EAPI Eina_Bool elm_menu_item_object_content_set(Elm_Menu_Item *item, Evas_Object *obj) EINA_ARG_NONNULL(1); EAPI Evas_Object *elm_menu_item_object_content_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1); - EAPI Evas_Object *elm_menu_item_object_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) EINA_DEPRECATED; + + EINA_DEPRECATED extern inline void elm_menu_item_icon_set(Elm_Menu_Item *item, const char *icon) EINA_ARG_NONNULL(1, 2) + { + elm_menu_item_object_icon_name_set(item, icon); + } + + EINA_DEPRECATED extern inline Evas_Object *elm_menu_item_object_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) + { + return elm_menu_item_object_content_get(item); + } + + EINA_DEPRECATED extern inline const char *elm_menu_item_icon_get(const Elm_Menu_Item *item) EINA_ARG_NONNULL(1) + { + return elm_menu_item_object_icon_name_get(item); + } /** * @brief Set the selected state of @p item.