forked from enlightenment/enlightenment
e - shelf menu - handle deletion properly if cb is not for shelf menu
it seems that some changes now make the shel menu post callback be called for older menus not part of the shelf and thus shelf menu stored != menu the cb is for - thus resulting in deletion of the wrong menu
This commit is contained in:
parent
918f4bffcc
commit
774e8297d2
|
@ -1614,13 +1614,13 @@ _e_shelf_cb_menu_delete(void *data, E_Menu *m EINA_UNUSED, E_Menu_Item *mi EINA_
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_e_shelf_cb_menu_post(void *data, E_Menu *m EINA_UNUSED)
|
_e_shelf_cb_menu_post(void *data, E_Menu *m)
|
||||||
{
|
{
|
||||||
E_Shelf *es;
|
E_Shelf *es;
|
||||||
|
|
||||||
es = data;
|
es = data;
|
||||||
if (!es->menu) return;
|
e_object_del(E_OBJECT(m));
|
||||||
e_object_del(E_OBJECT(es->menu));
|
if (m != es->menu) return;
|
||||||
es->menu = NULL;
|
es->menu = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue