[squeak-dev] The Inbox: Morphic-kb.657.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jun 5 19:30:41 UTC 2013


Balázs Kósi uploaded a new version of Morphic to project The Inbox:
http://source.squeak.org/inbox/Morphic-kb.657.mcz

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

Name: Morphic-kb.657
Author: kb
Time: 5 June 2013, 9:15:36.362 pm
UUID: 26264342-5671-47b0-91a1-abafb196e013
Ancestors: Morphic-fbs.656

Do not defer the model selection action in PluggableListMorph, instead step the World on cycle so the pre selection highlight can take effect, but avoid the timing issue, which broke MorphicToolBuilderTest >> #testSetListIndex

=============== Diff against Morphic-fbs.656 ===============

Item was changed:
  ----- Method: PluggableListMorph>>changeModelSelection: (in category 'model access') -----
  changeModelSelection: anInteger
+ 	" Change the model's selected item index to be anInteger. Enable the pre selection highlight. Step the World forward to let the pre selection highlight take effect. "
- 	" Change the model's selected item index to be anInteger. Enable the pre selection highlight. Deferring the model's selection action, to let the pre selection highlight take effect. "
  
  	self rowAboutToBecomeSelected: (self uiIndexFor: anInteger).
+ 	World doOneCycle.
  	setIndexSelector ifNotNil: [
+ 		model perform: setIndexSelector with: anInteger ].!
- 		([ model perform: setIndexSelector with: anInteger ] future: 1) value ].!



More information about the Squeak-dev mailing list