[squeak-dev] The Trunk: ToolBuilder-MVC-nice.48.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 10 15:58:52 UTC 2017

Nicolas Cellier uploaded a new version of ToolBuilder-MVC to project The Trunk:

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

Name: ToolBuilder-MVC-nice.48
Author: nice
Time: 10 June 2017, 5:58:54.129159 pm
UUID: d09d8863-3842-4636-9d43-55e1271ff71e
Ancestors: ToolBuilder-MVC-mt.47

Massively replace ifNotNilDo: by ifNotNil:
We don't need two different selectors to do a single thing.

=============== Diff against ToolBuilder-MVC-mt.47 ===============

Item was changed:
  ----- Method: MVCToolBuilder>>positionSubviewsWithin: (in category 'private') -----
  positionSubviewsWithin: widget
  	"Translate subviews to position the viewport of each subView relative to
  	the widget window origin. If subviews are repositioned, as in a row of button
  	views arranged within a view, then the transformations will later be rescaled
  	to fit the subviews within the widget window."
+ 	widget subViews ifNotNil: [:subViews |
- 	widget subViews ifNotNilDo: [:subViews |
  		subViews isEmpty ifFalse: [ | translation |
  			translation := widget window origin - subViews first window origin.
  			subViews do: [:v | 
  				v setTransformation: (v transformation translateBy: translation)]]].

More information about the Squeak-dev mailing list