Skip to content
Permalink
Browse files

Merge pull request #739 from jecisc/689-should-use-toolbar-and-not-to…

…olBar

689-should-use-toolbar-and-not-toolBar
  • Loading branch information...
jecisc committed Aug 17, 2019
2 parents ed6e844 + db9cf18 commit f2f807fb4c3c324bfd338e69f2adbdacfb9dfceb
@@ -36,7 +36,7 @@ SpMorphicWindowAdapter >> addContent: aMorph toWindow: aSpecWindow [

"add all decorations (menu, toolbar and statusbar)"
self model hasMenu ifTrue: [ self addMenuTo: containerMorph ].
self model hasToolBar ifTrue: [ self addToolBarTo: containerMorph ].
self model hasToolbar ifTrue: [ self addToolBarTo: containerMorph ].
containerMorph addMorphBack: aMorph.
aMorph
hResizing: #spaceFill;
@@ -208,10 +208,8 @@ SpWindowPresenter >> hasStatusBar [
]

{ #category : #testing }
SpWindowPresenter >> hasToolBar [

^ self toolBar notNil
and: [ self toolBar notEmpty ]
SpWindowPresenter >> hasToolbar [
^ self toolBar notNil and: [ self toolBar notEmpty ]
]

{ #category : #api }
@@ -1,5 +1,11 @@
Extension { #name : #SpWindowPresenter }

{ #category : #'*Spec2-Deprecated' }
SpWindowPresenter >> hasToolBar [
self deprecated: 'Use #hasToolbar instead. cf https://www.dictionary.com/browse/toolbar' transformWith: '`@receiver hasToolBar' -> '`@receiver hasToolbar'.
^ self hasToolbar
]

{ #category : #'*Spec2-Deprecated' }
SpWindowPresenter >> modalRelativeTo: aWindow [
self deprecated: 'Do not use this directly. Use #openModalWithSpec (and family) instead.' on: '2019-02-26' in: #Pharo8.

0 comments on commit f2f807f

Please sign in to comment.
You can’t perform that action at this time.