Skip to content

Commit

Permalink
Merge pull request #70 from pharo-graphics/deprecations
Browse files Browse the repository at this point in the history
Fix deprecated usages
  • Loading branch information
demarey authored Jun 14, 2024
2 parents 16ad793 + 0ecf55d commit 613f15c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/Roassal-Pharo/StInspectorPresenter.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Class {
#name : #StInspectorPresenter,
#superclass : #StInspector,
#category : #'Roassal-Pharo'
}
2 changes: 1 addition & 1 deletion src/Roassal/RSCamera.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ RSCamera class >> example [
canvas := RSCanvas new.
camera canvas: canvas.
canvas camera: camera.
^ StInspector openOn: camera
^ StInspectorPresenter openOn: camera
]

{ #category : 'utilities' }
Expand Down
4 changes: 2 additions & 2 deletions src/Roassal/RSObjectWithProperty.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ RSObjectWithProperty class >> exampleCanvas [
| c |
c := RSCanvas new.
c propertyAt: #rick put: #morty.
^ StInspector openOn: c properties
^ StInspectorPresenter openOn: c properties
]

{ #category : 'examples' }
RSObjectWithProperty class >> exampleShapeBox [
| shape |
shape := RSBox new.
shape propertyAt: #randy put: #stan.
^ StInspector openOn: shape properties
^ StInspectorPresenter openOn: shape properties
]

{ #category : 'interactions' }
Expand Down
6 changes: 3 additions & 3 deletions src/Roassal/RSShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ Class {
RSShape class >> exampleBox [
| box |
box := RSBox new.
^ StInspector openOn: box
^ StInspectorPresenter openOn: box
]

{ #category : 'examples' }
RSShape class >> exampleLabel [
| lb |
lb := RSLabel text: 'Roassal'.
^ StInspector openOn: lb
^ StInspectorPresenter openOn: lb
]

{ #category : 'examples' }
RSShape class >> exampleLine [
| l |
l := RSLine new controlPoints: {10@10. 20@20}.
^ StInspector openOn: l
^ StInspectorPresenter openOn: l
]

{ #category : 'accessing' }
Expand Down

0 comments on commit 613f15c

Please sign in to comment.