Skip to content

Commit

Permalink
fixed photo gallery example
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Aug 25, 2023
1 parent aec8c75 commit 5170827
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/Toplo/TToCheckable.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ TToCheckable >> checked: aBooleanOrNil [
self privateChecked: request checked
]

{ #category : #initialization }
TToCheckable >> initialize [

self class initializeSlots: self.
super initialize.
]

{ #category : #'t - checkable - initializing' }
TToCheckable >> initializeCheckable [

Expand Down
11 changes: 6 additions & 5 deletions src/Toplo/ToFilterDresserOnListWithPopupExperiment.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,18 @@ ToFilterDresserOnListWithPopupExperiment >> open [
pane addChild: filler.

listElement placeholder: self startPlaceholder.
listElement placeholder elevation: (BlRelativeElevation elevation: SmallInteger maxVal).
listElement placeholder elevation:
(BlRelativeElevation elevation: SmallInteger maxVal).
listElement showPlaceholder.

self listElement addDresser: ToDataFilterDresser new.

listElement
when: ToDataFilterResultEvent
do: [ :event | event selectionUpdated ifTrue: [ listElement data filterResult: event data ] ].
listElement when: ToDataFilterResultEvent do: [ :event |
event selectionUpdated ifTrue: [
listElement data filterResult: event data ] ].

listElement requestFocus.
pane openInOBlSpace
pane openInSpace
]

{ #category : #'instance creation' }
Expand Down
3 changes: 2 additions & 1 deletion src/Toplo/ToPicsumPhotosGalleryImageElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ ToPicsumPhotosGalleryImageElement >> imageData: anImageData [
ToPicsumPhotosGalleryImageElement >> initialize [
super initialize.
label := ToLabel new hFitContent; yourself.
label background: Color yellow.
label background: Color black.
label withSkin: nil.
self addChild: label.
self whenLayoutedDo: [ self loadImage ]
]
Expand Down
2 changes: 1 addition & 1 deletion src/Toplo/ToSandBox.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ ToSandBox class >> example_ListWithoutSelection [

{ #category : #list }
ToSandBox class >> example_PicsumPhotosGallery [

"cool example adapted from the feenk Glamorous Toolkit version BlInfiniteExample>>exampleGallery"
| space list vscrollBar |
list := ToListElement new
matchParent;
Expand Down

0 comments on commit 5170827

Please sign in to comment.