The Trunk: Morphic-ct.2215.mcz

[email protected] Mon, 27 Jul 2026 06:56:20 0000
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.2215.mcz

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

Name: Morphic-ct.2215
Author: ct
Time: 29 June 2026, 1:20:00.21725 am
UUID: c536290c-de0a-491c-a9cd-f6d00e64d036
Ancestors: Morphic-ct.2213

Allows text attributes to define menus in relation to the editor/requestor state.

=============== Diff against Morphic-ct.2213 ===============

Item was changed:
  ----- Method: TextEditor>>yellowButtonDown: (in category 'events') -----
  yellowButtonDown: event
  	"Process a yellow button event. Answer true if the event was handled, false otherwise."
+ 	(paragraph attributesAt: event cursorPoint) do:[:attr |
+ 		| menu |
+ 		menu := (attr respondsTo: #menu:for:in:at:editor:) ifTrue:
+ 			[attr menu: MenuMorph new for: (model ifNil: [morph]) in: paragraph at: event position editor: self].
+ 		menu ifNil: [menu := attr menu].
+ 		menu ifNotNil: [
+ 			menu
+ 				setInvokingView: ((self morph respondsTo: #editView) ifTrue: [self morph editView] ifFalse: [self morph]);
- 	(paragraph attributesAt: event cursorPoint) do:[:attr|
- 		attr menu ifNotNil:[
- 			attr menu
- 				setInvokingView: self morph editView;
  				popUpEvent: event in: self morph world.
  			^true]].
  	^false!

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