Skip to content

Commit a87d6cd

Browse files
committed
ToSkinEventAction takes the skin event as 2d argument
1 parent 1bb8953 commit a87d6cd

File tree

6 files changed

+8
-74
lines changed

6 files changed

+8
-74
lines changed

src/Toplo-Tests/ToStyleScriptTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ ToStyleScriptTest >> testWhenDo [
261261
wasHere := true.
262262
theStyleScript
263263
when: ToEnabledSkinEvent
264-
do: [ :e | e size: 40 asPoint ]].
264+
do: [ :e :evt | e size: 40 asPoint ]].
265265
self assert: styleScript styleRules size equals: 1.
266266
styleRule := styleScript styleRules first.
267267
self assert: wasHere.

src/Toplo-Tests/ToStyleSheetApplicationTest.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ ToStyleSheetApplicationTest >> testSkinWith2SkinEventActionOnSameSkinEventEvent
252252
styleSheet select: (ToIdSelector new id: #a) style: [ :sr |
253253
sr
254254
when: ToInstallSkinEvent
255-
do: [ :e | e border: (BlBorder paint: Color red width: 3) ].
255+
do: [ :e :evt | e border: (BlBorder paint: Color red width: 3) ].
256256
sr
257257
when: ToInstallSkinEvent
258-
do: [ :e | e border: (BlBorder paint: Color blue width: 1) ] ].
258+
do: [ :e :evt | e border: (BlBorder paint: Color blue width: 1) ] ].
259259

260260
elem := ToElement new.
261261
space root addChild: elem.

src/Toplo/ToPropertyWriter.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ToPropertyWriter >> animation: aPropertyAnimation [
3131
]
3232

3333
{ #category : #'look event handling' }
34-
ToPropertyWriter >> applyOn: anObject [
34+
ToPropertyWriter >> applyOn: anObject withSkinEvent: aSkinEvent [
3535

3636
self writeTo: anObject
3737
]

src/Toplo/ToSkinEventAction.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ ToSkinEventAction >> action: aValuable [
2727
]
2828

2929
{ #category : #'look event handling' }
30-
ToSkinEventAction >> applyOn: anObject [
30+
ToSkinEventAction >> applyOn: anObject withSkinEvent: aSkinEvent [
3131

32-
self action value: anObject
32+
self action cull: anObject cull: aSkinEvent
3333
]
3434

3535
{ #category : #testing }

src/Toplo/ToSkinEventListener.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Class {
88
}
99

1010
{ #category : #'look event handling' }
11-
ToSkinEventListener >> applyOn: anObject [
11+
ToSkinEventListener >> applyOn: anObject withSkinEvent: aSkinEvent [
1212

1313
self subclassResponsibility
1414
]
@@ -55,5 +55,5 @@ ToSkinEventListener >> receiveEvent: aSkinEvent [
5555
| target |
5656
(self canReceiveEvent: aSkinEvent) ifFalse: [ ^ self ].
5757
target := aSkinEvent currentTarget.
58-
self applyOn: target
58+
self applyOn: target withSkinEvent: aSkinEvent
5959
]

src/Toplo/ToSmartProperty.class.st

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)