[squeak-dev] The Trunk: MorphicExtras-mt.311.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Mar 11 09:23:56 UTC 2022


Marcel Taeumel uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-mt.311.mcz

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

Name: MorphicExtras-mt.311
Author: mt
Time: 11 March 2022, 10:23:52.103495 am
UUID: ba283975-c297-4148-a39d-1d4e56c16454
Ancestors: MorphicExtras-mt.310, MorphicExtras-lrnp.308

Merges fix from MorphicExtras-lrnp.308 now that #setProperty:toValue: returns the set property and not the receiver anymore. Let's hope that those incidents are rare.

Thanks to Lauren (lrnp) for spotting this!

=============== Diff against MorphicExtras-mt.310 ===============

Item was changed:
  ----- Method: ScrapBook>>scrapBook (in category 'scraps') -----
  scrapBook
  	| header aButton label |
  	^ book ifNil: [
  		book := BookMorph new pageSize: 300 at 300; setNameTo: 'scraps' translated.
  		book addCornerGrips.
  		book color: Color yellow muchLighter.
  		book borderColor: Color darkGray; borderWidth: 2.
  		book removeEverything; showPageControls; insertPage.
  
  		header := AlignmentMorph newRow wrapCentering: #center; cellPositioning: #leftCenter.
  		header setProperty: #header toValue: true.
  		header addMorph: (aButton := ThreePhaseButtonMorph labelSymbol: #'Halo-Collapse').
  		aButton target: book;
  			actionSelector: #delete;
  			setBalloonText: 'Close the trashcan.\(to view again later, click on any trashcan).' translated withCRs.
  		header addMorphBack: AlignmentMorph newVariableTransparentSpacer beSticky.
  		header addMorphBack: 	(label := UpdatingStringMorph new target: self) beSticky.
  		label getSelector: #trashTitle; useStringFormat; step.
  		header addMorphBack: AlignmentMorph newVariableTransparentSpacer beSticky.
  		header addMorphBack: (aButton := ThreePhaseButtonMorph labelSymbol: #'Halo-Dismiss').
  		aButton target: self;
  			actionSelector: #maybeEmptyTrash;
  			setBalloonText: 'Click here to empty the trash.' translated.
  		book currentPage
  			layoutPolicy: TableLayout new;
  			addMorph: (TextMorph new
  				contents: 'Objects you drag into the trash will automatically be saved here, one object per page, in case you need them later.  To disable this feature set the "preserveTrash" Preference to false.\\You can individually expunge objects by hitting the "-" control (behind "..."). You can empty out all the objects in the trash can by hitting the "X" button at top right.' translated withCRs;
  				hResizing: #spaceFill).
  
  		book addMorphFront: header.
+ 		book setProperty: #scraps toValue: true.
+ 		book].!
- 		book setProperty: #scraps toValue: true].!



More information about the Squeak-dev mailing list