The Trunk: PreferenceBrowser-mt.68.mcz

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

The Trunk: PreferenceBrowser-mt.68.mcz

commits-2
Marcel Taeumel uploaded a new version of PreferenceBrowser to project The Trunk:
http://source.squeak.org/trunk/PreferenceBrowser-mt.68.mcz

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

Name: PreferenceBrowser-mt.68
Author: mt
Time: 12 August 2016, 10:27:47.074343 am
UUID: 237e2416-5da6-7549-a396-19873c3342df
Ancestors: PreferenceBrowser-mt.67

Use #sorted: instead of #sortBy: to better indicate that it is a copy and not an in-place update like #sort:.

=============== Diff against PreferenceBrowser-mt.67 ===============

Item was changed:
  ----- Method: PreferenceWizardMorph>>initializePage01Themes (in category 'initialization') -----
  initializePage01Themes
 
  | currentPage |
  currentPage := pages add: self createPage.
  currentPage addMorphBack: (self createLabel: 'Choose a theme:' color: Color white).
+ (UserInterfaceTheme allThemes sorted: [:a :b | a name <= b name]) do: [:ea |
- (UserInterfaceTheme allThemes asArray sortBy: [:a :b | a name <= b name]) do: [:ea |
  currentPage addMorphBack: (self createButton
  label: ea name;
  hResizing: #spaceFill;
  action: #chooseTheme:;
  arguments: {ea})].
  currentPage addMorphBack: self createVerticalSpacer.
  !