[squeak-dev] The Trunk: MorphicExtras-pre.180.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Aug 4 10:44:01 UTC 2016


Patrick Rein uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-pre.180.mcz

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

Name: MorphicExtras-pre.180
Author: pre
Time: 4 August 2016, 12:43:42.582407 pm
UUID: 0c786ccd-27d9-4a44-a5be-d488104568ae
Ancestors: MorphicExtras-eem.179

Fixes a test by re-ordering the way the trashcanmorph images are set. Otherwise, through unexpected side effects it would try to get the extent of the offimage which is not yet set.

=============== Diff against MorphicExtras-eem.179 ===============

Item was changed:
  ----- Method: TrashCanMorph>>initialize (in category 'initialization') -----
  initialize
  	"Initialize the receiver's graphics, name, and balloon-help"
  
  	super initialize.
+ 	self	offImage: TrashPic;
+ 		pressedImage: TrashPicOn;
+ 		image: TrashPicOn.
- 	self image: TrashPicOn;
- 		offImage: TrashPic;
- 		pressedImage: TrashPicOn.
  	self setNameTo: 'Trash' translated.
  	self setBalloonText:
  'To remove an object, drop it on any trash can. To view, and maybe retrieve, items that have been thrown away, double-click on any trash-can.  Things are retained in the trash-can if the "preserveTrash" preference is set, otherwise they are purged immediately' translated.
  !



More information about the Squeak-dev mailing list