EINA_DEPRECATED EAPI Evas_Object *elm_menu_item_menu_get(const Elm_Object_Item *it);
/**
+ * @brief Set the icon of a menu item to the standard icon with name @p icon
+ *
+ * @param it The menu item object.
+ * @param icon The icon object to set for the content of @p item
+ *
+ * @deprecated elm_menu_item_icon_name_set() instead
+ * Once this icon is set, any previously set icon will be deleted.
+ */
+EINA_DEPRECATED EAPI void elm_menu_item_object_icon_name_set(Elm_Object_Item *it, const char *icon);
+
+/**
+ * @brief Get the string representation from the icon of a menu item
+ *
+ * @param it The menu item object.
+ * @return The string representation of @p item's icon or NULL
+ *
+ * @deprecated elm_menu_item_icon_name_get() instead
+ * @see elm_menu_item_icon_name_set()
+ */
+EINA_DEPRECATED EAPI const char *elm_menu_item_object_icon_name_get(const Elm_Object_Item *it);
+
+/**
* @brief Set the content of the notify widget
*
* @param obj The notify object
elm_widget_style_get(obj));
elm_object_item_text_set((Elm_Object_Item *) item,
item->label);
- elm_menu_item_object_icon_name_set((Elm_Object_Item *) item,
+ elm_menu_item_icon_name_set((Elm_Object_Item *) item,
item->icon_str);
}
else
elm_widget_style_get(obj));
elm_object_item_text_set((Elm_Object_Item *) item,
item->label);
- elm_menu_item_object_icon_name_set((Elm_Object_Item *) item,
+ elm_menu_item_icon_name_set((Elm_Object_Item *) item,
item->icon_str);
}
_item_disable_hook((Elm_Object_Item *) item);
elm_object_item_text_set((Elm_Object_Item *) item,
item->label);
if (item->icon_str)
- elm_menu_item_object_icon_name_set((Elm_Object_Item *) item,
+ elm_menu_item_icon_name_set((Elm_Object_Item *) item,
item->icon_str);
edje_object_signal_callback_add(VIEW(item), "elm,action,open", "",
_submenu_open, item);
elm_widget_sub_object_add(WIDGET(subitem), subitem->content);
edje_object_part_swallow(VIEW(subitem), "elm.swallow.content", subitem->content);
if (icon)
- elm_menu_item_object_icon_name_set((Elm_Object_Item *) subitem, icon);
+ elm_menu_item_icon_name_set((Elm_Object_Item *) subitem, icon);
_elm_menu_item_add_helper(obj, (Elm_Menu_Item *) parent, subitem, wd);
return _item_text_get_hook(it, NULL);
}
-EAPI void
+EINA_DEPRECATED EAPI void
elm_menu_item_object_icon_name_set(Elm_Object_Item *it, const char *icon)
{
+ elm_menu_item_icon_name_set(it, icon);
+}
+
+EAPI void
+elm_menu_item_icon_name_set(Elm_Object_Item *it, const char *icon)
+{
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
EINA_SAFETY_ON_NULL_RETURN(icon);
char icon_tmp[512];
return _item_content_get_hook(it, NULL);
}
-EAPI const char *
+EINA_DEPRECATED EAPI const char *
elm_menu_item_object_icon_name_get(const Elm_Object_Item *it)
{
+ return elm_menu_item_icon_name_get(it);
+}
+
+EAPI const char *
+elm_menu_item_icon_name_get(const Elm_Object_Item *it)
+{
ELM_OBJ_ITEM_CHECK_OR_RETURN(it, NULL);
return ((Elm_Menu_Item *) it)->icon_str;
}
*
* Once this icon is set, any previously set icon will be deleted.
*/
-EAPI void elm_menu_item_object_icon_name_set(Elm_Object_Item *it, const char *icon);
+EAPI void elm_menu_item_icon_name_set(Elm_Object_Item *it, const char *icon);
/**
* @brief Get the string representation from the icon of a menu item
* @param it The menu item object.
* @return The string representation of @p item's icon or NULL
*
- * @see elm_menu_item_object_icon_name_set()
+ * @see elm_menu_item_icon_name_set()
*/
-EAPI const char *elm_menu_item_object_icon_name_get(const Elm_Object_Item *it);
+EAPI const char *elm_menu_item_icon_name_get(const Elm_Object_Item *it);
/**
* @brief Set the selected state of @p item.