- Without this e would segv if I created a sticky window on a desktop other

then the first. Not sure if this is the correct fix or not, but it works.


SVN revision: 14429
This commit is contained in:
Dan Sinclair 2005-04-27 23:29:12 +00:00 committed by Dan Sinclair
parent e117544270
commit 5d3d45ebc9
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ e_menu_item_submenu_set(E_Menu_Item *mi, E_Menu *sub)
E_OBJECT_CHECK(mi);
E_OBJECT_TYPE_CHECK(mi, E_MENU_ITEM_TYPE);
if (mi->submenu) e_object_unref(E_OBJECT(mi->submenu));
e_object_ref(E_OBJECT(sub));
if (sub) e_object_ref(E_OBJECT(sub));
mi->submenu = sub;
mi->changed = 1;
mi->menu->changed = 1;