Skip to content

Commit

Permalink
added fix for gtexamples in pharo9
Browse files Browse the repository at this point in the history
  • Loading branch information
akevalion committed Jul 29, 2021
1 parent 2e93b0b commit 6442403
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Roassal2GT/GtExampleMethodIcon.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Extension { #name : #GtExampleMethodIcon }

{ #category : #'*Roassal2GT' }
GtExampleMethodIcon class >> fixedBase64String: aString [
^ Form fromBinaryStream: aString base64Decoded readStream
]
2 changes: 1 addition & 1 deletion src/Roassal2GT/RTAbstractViewContext.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ RTAbstractViewContext class >> setOnView: aView [
]

{ #category : #public }
RTAbstractViewContext >> adjustView: aView inPresentation: aPresentation. [
RTAbstractViewContext >> adjustView: aView inPresentation: aPresentation [.
self view: aView.
self presentation: aPresentation.
self registerCallbacks
Expand Down
10 changes: 10 additions & 0 deletions src/Roassal2GT/RTExampleSelection.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ RTExampleSelection >> gtSpotterPreviewIconIn: aComposite [

]

{ #category : #'PRAGMA-SELECTORS' }
RTExampleSelection >> iconSelectorBase64: aSelector [
<gtExamplePragma>
<description: 'Attach an icon to this example. The icon form is described by the base64 string returned by the given selector'>

form := (self methodResolverClass resolve: GtExampleMethodIcon example: self selector: aSelector)
converter: #fixedBase64String:;
yourself
]

{ #category : #testing }
RTExampleSelection >> matchesQuery: aSetOfNames [
| sourceCode |
Expand Down

0 comments on commit 6442403

Please sign in to comment.