Skip to content

Commit 6442403

Browse files
committed
added fix for gtexamples in pharo9
1 parent 2e93b0b commit 6442403

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Extension { #name : #GtExampleMethodIcon }
2+
3+
{ #category : #'*Roassal2GT' }
4+
GtExampleMethodIcon class >> fixedBase64String: aString [
5+
^ Form fromBinaryStream: aString base64Decoded readStream
6+
]

src/Roassal2GT/RTAbstractViewContext.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RTAbstractViewContext class >> setOnView: aView [
4242
]
4343

4444
{ #category : #public }
45-
RTAbstractViewContext >> adjustView: aView inPresentation: aPresentation. [
45+
RTAbstractViewContext >> adjustView: aView inPresentation: aPresentation [.
4646
self view: aView.
4747
self presentation: aPresentation.
4848
self registerCallbacks

src/Roassal2GT/RTExampleSelection.class.st

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ RTExampleSelection >> gtSpotterPreviewIconIn: aComposite [
120120

121121
]
122122

123+
{ #category : #'PRAGMA-SELECTORS' }
124+
RTExampleSelection >> iconSelectorBase64: aSelector [
125+
<gtExamplePragma>
126+
<description: 'Attach an icon to this example. The icon form is described by the base64 string returned by the given selector'>
127+
128+
form := (self methodResolverClass resolve: GtExampleMethodIcon example: self selector: aSelector)
129+
converter: #fixedBase64String:;
130+
yourself
131+
]
132+
123133
{ #category : #testing }
124134
RTExampleSelection >> matchesQuery: aSetOfNames [
125135
| sourceCode |

0 commit comments

Comments
 (0)