[squeak-dev] [BUG] 5.3 Alpha: No Text formatting in tree morphs

Jakob Reschke forums.jakob at resfarm.de
Sat Oct 12 00:30:57 UTC 2019


Hi all,

It used to be that you can return a formatted Text from the method
designated via the label selector of a pluggable tree. This screenshot is
from Squeak 5.2:
[image: image.png]

In Trunk, this is broken. With the same code, the node labels are always
unformatted, (except for the highlight color, which is used in
ObjectExplorer, for example):
[image: image.png]

In case it was never supposed to work like that, how can I have
Text-formatted labels in a pluggable tree in a supported way?

Kind regards,
Jakob

Code excerpts for reference:

chooserWidgetSpecs: builder
   ^ {builder pluggableTreeSpec new
   "..."
   label: #nodeLabelOf:; "..."

nodeLabelOf: aSquotDiffNode
   | title |
   title := aSquotDiffNode title.
   ^ aSquotDiffNode anyChildNeedsChoice
      ifTrue: [(Text fromString: title) allBold; yourself]
      ifFalse: [title]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191012/ecb59aba/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 28763 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191012/ecb59aba/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 27487 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191012/ecb59aba/attachment-0001.png>


More information about the Squeak-dev mailing list