forked from enlightenment/enlightenment
menu icons.. are meant to be e_icon objects... devilhorns!
:) (damned 64bit shit found it) SVN revision: 52119
This commit is contained in:
parent
5a6461bcd8
commit
4dfa97df1f
|
@ -2704,9 +2704,14 @@ _e_gadcon_client_cb_menu_pre(void *data, E_Menu *m __UNUSED__, E_Menu_Item *mi)
|
||||||
if (!(gcc = data)) return;
|
if (!(gcc = data)) return;
|
||||||
if (gcc->client_class->func.icon)
|
if (gcc->client_class->func.icon)
|
||||||
{
|
{
|
||||||
mi->icon_object =
|
Evas_Object *ic;
|
||||||
gcc->client_class->func.icon((E_Gadcon_Client_Class *)gcc->client_class,
|
|
||||||
|
// e menu ASSUMES... EXPECTS the icon to be an.... e_icon! make it so.
|
||||||
|
ic = gcc->client_class->func.icon
|
||||||
|
((E_Gadcon_Client_Class *)gcc->client_class,
|
||||||
mi->menu->evas);
|
mi->menu->evas);
|
||||||
|
mi->icon_object = e_icon_add(mi->menu->evas);
|
||||||
|
e_icon_object_set(mi->icon_object, ic);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
e_util_menu_item_theme_icon_set(mi, "preferences-gadget"); // FIXME: Needs icon in theme
|
e_util_menu_item_theme_icon_set(mi, "preferences-gadget"); // FIXME: Needs icon in theme
|
||||||
|
|
Loading…
Reference in New Issue