[squeak-dev] The Trunk: Graphics-mt.517.mcz

commits at source.squeak.org commits at source.squeak.org
Tue May 31 14:10:51 UTC 2022

Marcel Taeumel uploaded a new version of Graphics to project The Trunk:

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

Name: Graphics-mt.517
Author: mt
Time: 31 May 2022, 4:10:46.065029 pm
UUID: b9a0d843-005c-cf4d-b146-399decd45e02
Ancestors: Graphics-mt.516

Makes host-window interface more robust for headless modes.

Note that #primitiveHostWindowTitle does not answer the new title but self.

=============== Diff against Graphics-mt.516 ===============

Item was changed:
  ----- Method: DisplayScreen class>>hostWindowExtent: (in category 'host window access') -----
  hostWindowExtent: aPoint
+ 	^ [self
- 	^ self
  		primitiveWindow: self hostWindowIndex
  		width: aPoint x
+ 		height: aPoint y]
+ 			on: Error "primitive failed such as in headless mode"
+ 			do: [:ex | Display extent]!
- 		height: aPoint y!

Item was changed:
  ----- Method: DisplayScreen class>>hostWindowTitle: (in category 'host window access') -----
  hostWindowTitle: aString
+ 	[self
- 	^ self
  		primitiveWindow: self hostWindowIndex
+ 		title: aString squeakToUtf8]
+ 			on: Error "primitive failed such as in headless mode"
+ 			do: [:ex | "ignore"].!
- 		title: aString squeakToUtf8!

More information about the Squeak-dev mailing list