On Fri, Dec 30, 2011 at 4:01 AM, Sean P. DeNigris <sean@clipperadams.com> wrote:
When I access the world menu through the TWM bar, some of the items I have
registered do not show up. Maybe items added after TWM was loaded do not
show up. Anyone else notice this?

Yes I can reproduce it.

The problem comes from TWMBar>>newWorldMenu. This is executed when the TWMBar is built and associate current world menu that is not updated when an entry is added.

A solution that needs cleanup:

TWMBar>>newWorldMenu
^ MenuItemMorph new
contents: '';
subMenu: ��(UpdatingMenuMorph new updater: self updateSelector: #updateWorldMenu:);
icon: self openWorldMenuIcon;
setBalloonText: 'Open World menu'.

TWMBar>>updateWorldMenu: aMenu
self windowManager world worldMenu items do: [:aMenuItem| aMenu addMenuItem: ��aMenuItem].

��
Laurent


Sean

--
View this message in context: http://forum.world.st/TWM-Bug-different-world-menu-tp4244649p4244649.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.