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

DNU stopStepping: on GtkMorphView #13

Open
RemiDufloer opened this issue Apr 12, 2022 · 0 comments
Open

DNU stopStepping: on GtkMorphView #13

RemiDufloer opened this issue Apr 12, 2022 · 0 comments

Comments

@RemiDufloer
Copy link

Pharo 10

Downloaded with:

Metacello new
        repository: 'github://pharo-spec/Spec-Gtk';
        baseline: 'SpecGtk';
        onConflict: [ :e | e useIncoming ];
        onUpgrade: [ :e | e useIncoming ];
        ignoreImage;
        load 

Open a calypso on a separate window doing:

presenter := SpPresenter new.
presenter application: (SpApplication new useBackend: #Gtk).
presenter layout: (SpBoxLayout newVertical 
    add: (morph := presenter newMorph);
    yourself).

morph morph: (ClyFullBrowserMorph onDefaultEnvironment).

presenter open.

Clicking somewhere (package, class, method) throws many DNU stopStepping: on GtkMorphView.

We are looking at how to solve it, it seems there are already versions of stopStepping with different number of arguments.

One solution could be to implement it as

stopStepping: aMorph selector: aSelector
	
	steps ifNil: [ ^ self ].
	
	(steps 
		removeAll: (steps 
			select:[ :each | 
				each receiver == aMorph ]))
		do: [ :each | each cancel ]*

However, this looks like repeated code with WorldMorph/WorldState

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

No branches or pull requests

1 participant