forked from enlightenment/enlightenment
dont keep adding clients once the menu has stuff
SVN revision: 12731
This commit is contained in:
parent
5c5bdb2abe
commit
32cbabbd0a
|
@ -157,7 +157,6 @@ e_int_menus_clients_new(void)
|
||||||
|
|
||||||
m = e_menu_new();
|
m = e_menu_new();
|
||||||
e_menu_pre_activate_callback_set(m, _e_int_menus_clients_pre_cb, NULL);
|
e_menu_pre_activate_callback_set(m, _e_int_menus_clients_pre_cb, NULL);
|
||||||
|
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -389,6 +388,7 @@ _e_int_menus_clients_pre_cb(void *data, E_Menu *m)
|
||||||
E_Menu *root;
|
E_Menu *root;
|
||||||
|
|
||||||
if (m->realized) return;
|
if (m->realized) return;
|
||||||
|
if (m->items) return;
|
||||||
|
|
||||||
root = e_menu_root_get(m);
|
root = e_menu_root_get(m);
|
||||||
/* get the current containers clients */
|
/* get the current containers clients */
|
||||||
|
|
Loading…
Reference in New Issue