[squeak-dev] The Trunk: ToolBuilder-Morphic-ct.288.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jan 27 01:21:07 UTC 2022


Christoph Thiede uploaded a new version of ToolBuilder-Morphic to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Morphic-ct.288.mcz

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

Name: ToolBuilder-Morphic-ct.288
Author: ct
Time: 27 January 2022, 2:20:53.392143 am
UUID: a36ad51c-5653-2f41-a258-7f0ba847dcd1
Ancestors: ToolBuilder-Morphic-mt.287

Adds change hook to update the pane color of an already existing window from its model.

=============== Diff against ToolBuilder-Morphic-mt.287 ===============

Item was changed:
  ----- Method: PluggableSystemWindow>>update: (in category 'updating') -----
  update: what
  	what ifNil:[^self].
  	what == getLabelSelector ifTrue:[self setLabel: (model perform: getLabelSelector)].
  	what == getChildrenSelector ifTrue:[
  		children ifNil:[children := #()].
  		self removeAllMorphsIn: children.
  		children := model perform: getChildrenSelector.
  		self addAllMorphs: children.
  		children do:[:m| m hResizing: #spaceFill; vResizing: #spaceFill].
  	].
+ 	what == #windowColorToUse ifTrue: [
+ 		self paneColor = model windowColorToUse ifFalse:
+ 			[self refreshWindowColor]].
  	^super update: what!



More information about the Squeak-dev mailing list