Beispiel #1
0
/**
 * @brief Creates a new menu-item with a label defined by the stock-id
 * @param stock_id the stock-id corresponding to the label
 * @return Returns the new menu-item widget
 * @note Unlike the other widgets, the menu-item will automatically shown at its creation
 * @see Etk_Stock
 */
Etk_Widget *etk_menu_item_new_from_stock(Etk_Stock_Id stock_id)
{
   Etk_Widget *menu_item;

   menu_item = etk_menu_item_new();
   etk_menu_item_set_from_stock(ETK_MENU_ITEM(menu_item), stock_id);

   return menu_item;
}
Beispiel #2
0
static E_Widget *
_e_widget_menu_item_handle(Enhance *en, EXML_Node *node)
{
    E_Widget   *item;
    char       *id;

    id = ecore_hash_get(node->attributes, "id");
    if(!id) return NULL;

    item = _e_widget_new(en, node, etk_menu_item_new(), id);

    return item;
}