[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix: GMAppKit.m for NSMenuItem
From: |
Nicola Pero |
Subject: |
Re: Fix: GMAppKit.m for NSMenuItem |
Date: |
Wed, 24 Apr 2002 10:59:23 +0100 (BST) |
Hi Georg,
I thought we had fixed this long ago ... looks like these bugs are
resurrecting again and again. Argh.
> Hi,
>
> here is a patch to fix a problem with PopUpMenus loaded from a gmodel file.
> The PopUpMenus were always disabled and their action always set to
> "submenuAction:".
> The patch simply sets the action after setSubmenu.
> Menus and Submenus are still working with the patch.
>
> Alternatively, a check for submenu before setting the submenu would work too.
Yes - I like this second approach because hopefully it is less depended on
how gnustep-gui actually does submenus - so I hope it's more difficult to
break it again if management of submenus change :-)
I tried implementing this second approach on CVS - as usual I can't really
test gmodels, so please let me know if I did anything wrong :-)
Thanks a lot.