forked from enlightenment/enlightenment
prevent menus without any items from realizing at all
SVN revision: 76848
This commit is contained in:
parent
9574de56de
commit
491c03fcfe
|
@ -1123,6 +1123,7 @@ e_menu_idler_before(void)
|
||||||
EINA_LIST_FOREACH(_e_active_menus, l, m)
|
EINA_LIST_FOREACH(_e_active_menus, l, m)
|
||||||
{
|
{
|
||||||
if (m->frozen) continue;
|
if (m->frozen) continue;
|
||||||
|
if (!m->realized) continue;
|
||||||
if ((m->cur.visible) && (!m->prev.visible))
|
if ((m->cur.visible) && (!m->prev.visible))
|
||||||
{
|
{
|
||||||
m->prev.visible = m->cur.visible;
|
m->prev.visible = m->cur.visible;
|
||||||
|
@ -1616,7 +1617,7 @@ _e_menu_realize(E_Menu *m)
|
||||||
int ok = 0;
|
int ok = 0;
|
||||||
int w, h;
|
int w, h;
|
||||||
|
|
||||||
if (m->realized) return;
|
if (m->realized || (!m->items)) return;
|
||||||
m->realized = 1;
|
m->realized = 1;
|
||||||
m->ecore_evas = e_canvas_new(m->zone->container->win,
|
m->ecore_evas = e_canvas_new(m->zone->container->win,
|
||||||
m->cur.x, m->cur.y, m->cur.w, m->cur.h, 1, 1,
|
m->cur.x, m->cur.y, m->cur.w, m->cur.h, 1, 1,
|
||||||
|
|
Loading…
Reference in New Issue