Fixes to menu code.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4632 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
michael 1999-07-22 23:57:39 +00:00
parent 2e3c92ba3c
commit 1460f5b1f5
3 changed files with 17 additions and 3 deletions

View file

@ -660,11 +660,14 @@ cell do the following */
[self setHighlightedItemIndex: -1];
if ([selectedCell action] && ![selectedCell target])
// if ([selectedCell action] && ![selectedCell target])
if (menuv_menu)
[menuv_menu performActionForItem:
[menuv_items_link objectAtIndex: lastIndex]];
else if ([selectedCell action] && [selectedCell target])
if (menuv_popb)
[menuv_popb performSelector:[selectedCell action] withObject:selectedCell];
// else if ([selectedCell action] && [selectedCell target])
/* If we are a menu */