The Trunk: Morphic-nice.1412.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-nice.1412.mcz

commits-2
Nicolas Cellier uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-nice.1412.mcz

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

Name: Morphic-nice.1412
Author: nice
Time: 6 April 2018, 11:39:20.148358 pm
UUID: 9fec9c6d-77db-4708-ab00-15746432945b
Ancestors: Morphic-nice.1411

Fix one typo and one preference description according to http://bugs.squeak.org/view.php?id=7854

=============== Diff against Morphic-nice.1411 ===============

Item was changed:
  ----- Method: FontImporterTool>>import (in category 'actions') -----
  import
  | megaSize filenames fonts |
  fonts := self currentSelection.
  filenames := fonts allFilenames.
  megaSize := ((filenames inject: 0 into: [ :sum :fn |
  sum + (FileStream readOnlyFileNamed: fn do: [:file | file size])]) / (1024 * 1024)) asFloat.
  (UIManager default confirm: (
+ 'About to import {1}{2}.\\This is at least {3} MB of space required in the image.\
- 'About to import {1}{2}.\\This is at least {3} MB of space required int the image.\
  Please respect the copyright and embedding restrictions of the font.\
  Proceed?'
  withCRs format: {
  self currentParent
  ifNotNil: [:p| p fontname, ' ', self currentSelection fontname]
  ifNil: [self currentSelection fontname].
  filenames size > 1 ifTrue: [' (', filenames size, ' font files)'] ifFalse: [''].
  megaSize printShowingDecimalPlaces: 2}))
  ifTrue: [
  filenames do: [:filename | | readFonts |
  readFonts := TTCFontDescription addFromTTFile: filename.
  readFonts isCollection
  ifFalse: [TTCFont newTextStyleFromTT: readFonts]
  ifTrue: [self importFontFamily: readFonts]]].
  self allFonts: nil. "force redraw"
  !

Item was changed:
  ----- Method: PluggableListMorph class>>menuRequestUpdatesSelection (in category 'preferences') -----
  menuRequestUpdatesSelection
 
  <preference: 'Menu request updates list/tree selection'
  category: #Morphic
+ description: 'When invoking a menu, the action is applied to the current selection in the list. If the mouse cursor it at a different location, however, this preference will update the selection before showing the menu if enabled.'
- description: 'When invoking a menu, this will for the current selection by default. If the mouse cursor it at a different location, however, this preference will update the selection before showing the menu if enabled.'
  type: #Boolean>
  ^ MenuRequestUpdatesSelection ifNil: [ false ]!