The Trunk: ToolBuilder-Kernel-ct.176.mcz

[email protected] Sun, 5 Jul 2026 22:28:18 0000
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
Christoph Thiede uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-ct.176.mcz

==================== Summary ====================

Name: ToolBuilder-Kernel-ct.176
Author: ct
Time: 6 July 2026, 12:28:18.05029 am
UUID: 2fe1b4b1-48d3-43b1-a9f1-b518e91fbd4b
Ancestors: ToolBuilder-Kernel-ct.175

Further improves compatibility of menu specs with MenuMorph and CustomMenu.

=============== Diff against ToolBuilder-Kernel-ct.175 ===============

Item was added:
+ ----- Method: PluggableMenuSpec>>addItem: (in category 'construction') -----
+ addItem: aBlock
+ 	| item |
+ 	item := PluggableMenuItemSpec new.
+ 	aBlock value: item.
+ 	item subMenu
+ 		ifNil: [self add: item label action: item action]
+ 		ifNotNil: [self add: item label target: ToolBuilder selector: #open: argument: item subMenu].!

Item was added:
+ ----- Method: PluggableMenuSpec>>addTitle: (in category 'accessing') -----
+ addTitle: aString
+ 	"Compatibility with MenuMorph."
+ 
+ 	^ self label: aString!

Item was added:
+ ----- Method: PluggableMenuSpec>>balloonTextForLastItem: (in category 'accessing') -----
+ balloonTextForLastItem: aString
+ 	"Vacuous backstop provided for compatibility with MorphicMenu"!

Item was changed:
+ ----- Method: PluggableMenuSpec>>buildWith: (in category 'building') -----
- ----- Method: PluggableMenuSpec>>buildWith: (in category 'construction') -----
  buildWith: builder
  	self analyzeItemLabels.
  	^ builder buildPluggableMenu: self!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]