Skip to content

Commit

Permalink
Add a slot named announcer to Job in Pharo 10 &11 [#3736]
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed May 15, 2024
1 parent d8a6de1 commit ecdeed0
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Class {
#name : #BaselineOfGToolkitPrerequisites,
#superclass : #BaselineOf,
#classVars : [
'PostLoaded'
'PostLoaded',
'PreLoaded'
],
#category : #BaselineOfGToolkitPrerequisites
}
Expand All @@ -12,6 +13,7 @@ BaselineOfGToolkitPrerequisites >> baseline: spec [

<baseline>
spec for: #common do: [
spec preLoadDoIt: #preLoadGToolkit:.
spec postLoadDoIt: #postLoadGToolkit:.
spec
package: 'GToolkit-Pharo9-Deprecations';
Expand All @@ -31,3 +33,15 @@ BaselineOfGToolkitPrerequisites >> postLoadGToolkit: spec [
addClassVarNamed: 'StoppedSemaphore';
initialize.
]

{ #category : #accessing }
BaselineOfGToolkitPrerequisites >> preLoadGToolkit: spec [
(PreLoaded isNotNil and: [ PreLoaded ])
ifTrue: [ ^ self ].
PreLoaded := true.

self
forPharo12: []
forPharo11: [ Job addSlot: #announcer ]
forPharo10: [ Job addSlot: #announcer ]
]

0 comments on commit ecdeed0

Please sign in to comment.