Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed settings on Pharo 7 (#1) #12

Merged
merged 1 commit into from
Dec 20, 2018

Conversation

fortizpenaloza
Copy link
Contributor

  • Fixed settings on Pharo 7 (Pharo-7.0.0+rc1.build.63.sha.0ac2b792c9ce59356b74dccb0d59983f564cb478)
  • Also added Carousel as the default view to improve UX. I find it very awkward to enable Mirage and after pressing Ctrl+Tab just see a grey overlay.

Fixes #10

* Fixed settings on Pharo 7 (Pharo-7.0.0+rc1.build.63.sha.0ac2b792c9ce59356b74dccb0d59983f564cb478)
* Also added Carousel as the default view to improve UX. I find it very awkward to enable Mirage and after pressing Ctrl+Tab just see a grey overlay.
@fortizpenaloza fortizpenaloza changed the title Fixed settings on Pharo 7 (#1) (#2) Fixed settings on Pharo 7 (#1) Dec 19, 2018
@fortizpenaloza
Copy link
Contributor Author

It works on Pharo 6 also.

Copy link
Owner

@juliendelplanque juliendelplanque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, I'm happy to see that this project is used by someone else! :-)

Let's discuss my comments. :-)

@@ -26,8 +26,8 @@ MICarousel class >> activate: aBoolean [

{ #category : #'initialize-release' }
MICarousel class >> initialize [
super initialize.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing the call to super here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While reading your code, I saw a code critic rule discouraging sending #initialize to super on the class-side since some class of the top of the hierarchy should not be reinitialized.

I also browsed the Morph hierarchy and I didn't find a single super initialize collaboration on the class initialization.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, you're right I didn't realised it was on class side.

}

{ #category : #accessing }
MICarouselSettings class >> defaultThumbnailUpdateTime [
^ 5 seconds
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you removed the instantiation of a duration from here?

Copy link
Contributor Author

@fortizpenaloza fortizpenaloza Dec 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stumbled with this bug opening the settings after loading the dev branch on Pharo 7.

A debugger opens while building a PluggableSliderMorph. It fails scaling the default value (a 5 seconds duration) within an integer range from 1 to 30 configured on MICarouselSettings class>>#wpThumbnailUpdateTimeSettingsOn:.

The Duration>#roundTo: expects another duration. I spent a while trying to fix it keeping the duration and, after failing miserably, I finally changed it for an integer.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, seems legit.

@@ -39,7 +39,7 @@ SystemWindow >> mirageThumbnailPropertySymbol [
{ #category : #'*Mirage-Carousel' }
SystemWindow >> scheduleThumbnailUpdate [
([
MICarouselSettings thumbnailUpdateTime wait.
MICarouselSettings thumbnailUpdateTime seconds wait.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To put it back here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a consequence of what I describe above.

@fortizpenaloza
Copy link
Contributor Author

fortizpenaloza commented Dec 20, 2018

You did a great job btw, I totally love this project. I missed window navigation so much.

@juliendelplanque
Copy link
Owner

Thanks for your contribution.

I merge this PR.

@juliendelplanque juliendelplanque merged commit 07e9ef0 into juliendelplanque:dev Dec 20, 2018
@fortizpenaloza fortizpenaloza deleted the dev branch January 9, 2019 03:03
juliendelplanque added a commit that referenced this pull request Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants