[squeak-dev] The Trunk: Morphic-mt.1628.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Feb 20 16:02:31 UTC 2020


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

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

Name: Morphic-mt.1628
Author: mt
Time: 20 February 2020, 5:02:22.195391 pm
UUID: 8b8588f6-82a7-5b40-9187-7502d12e6355
Ancestors: Morphic-mt.1627

Adds an extra re-draw call in text fields to fix help-text redrawing (in the search bar). Note that this does not add much new overhead.

(Actually, there is another issue consiering overhead on text re-draw, which I am investigating at the moment.)

=============== Diff against Morphic-mt.1627 ===============

Item was changed:
  ----- Method: PluggableTextMorph>>setText: (in category 'model access') -----
  setText: aText
  
  	textMorph newContents: aText.
  	self hasUnacceptedEdits: false.
  	self setScrollDeltas.	
+ 	
+ 	self flag: #performance. "mt: Needed only to redraw overlays such as the help text."
+ 	self changed.!
- 	self changed. "Redraw the whole area. For example, it might not be necssary to draw the help text anymore."!

Item was changed:
  ----- Method: PluggableTextMorph>>textEdited: (in category 'editor access') -----
  textEdited: someText
  	"Tell the model about some edits in the text if interested. This is not #accept, which means that it will be send on every keystroke."
  	
  	self editTextSelector ifNotNil: [:selector |
+ 		model perform: selector with: someText].
+ 	
+ 	self flag: #performance. "mt: Needed only to redraw overlays such as the help text."
+ 	self changed.!
- 		model perform: selector with: someText].!



More information about the Squeak-dev mailing list