[squeak-dev] The Trunk: Tools-ct.1086.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 15 16:33:57 UTC 2021

Christoph Thiede uploaded a new version of Tools to project The Trunk:

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

Name: Tools-ct.1086
Author: ct
Time: 10 December 2021, 8:18:11.934895 pm
UUID: c2fc04c4-7ae6-cc4c-a993-8068f4ab5fed
Ancestors: Tools-mt.1085

Workaround for missing updates of forms in inspectors. Now you can finally debug a #drawOn: method without needing to deselect and reselect the canvas's form's pixels field after every step. You can also open an inspector on "WatchMorph new" and select the screenshot. :-)

Note that in the long term, we should redefine Text >> #= instead. But I would not like to address this before the next release because it might have several unknown consequences.

=============== Diff against Tools-mt.1085 ===============

Item was changed:
  ----- Method: FormInspector>>embedForm:inText: (in category 'support') -----
  embedForm: aForm inText: stringOrText
+ 	^ stringOrText asText
+ 		, ((' (hash: {1})' translated format: {aForm bits hash})
+ 			flag: #workaround "ct: Currently, text equality ignores attributes. Add a hash of the form's bits to the text to ensure that it will be re-rendered in Morphic inspectors. In the long term, we should redefine Text >> #= instead. See: http://lists.squeakfoundation.org/pipermail/squeak-dev/2020-September/211358.html";
+ 			yourself)
+ 		, String cr
+ 		, (Text string: ' ' attribute:
- 	^ stringOrText asText, String cr,
- 		(Text string: ' ' attribute:
  			(TextFontReference toFont: 
  				(FormSetFont new
  					fromFormArray: (Array with: (aForm copy offset: 0 at 0))
  					asciiStart: Character space asInteger
  					ascent: aForm height)))!

More information about the Squeak-dev mailing list