On Fri, Mar 7, 2014 at 8:17 AM, Pharo4Stef <pharo4Stef@free.fr> wrote:

On 06 Mar 2014, at 12:05, phil@highoctane.be wrote:

And of course, the TWMUI Theme doesn't work at all anymore...

Is there some info about how the new theming works in 3.0?

What have been removed are UIManager creation methods (I would have prefer to have them deprecated we could still do it).
newColumns and others, if I remember correctly
Now for the theming I do not think it changed.


I have had a look and �Morphic-Menus appear to have been removed and we now have Morphic-Base-Menus.

All classes in Morphic-Menus appear to be in there, except UpdatingMenuMorph.

As I was getting the class back in my 3.0 image, I noticed that drag and drop of classes to other packages led to a #MNU:
https://pharo.fogbugz.com/default.asp?13049

... and deprecation warnings are nice but not with little windows all over... :-p

Putting the UpdatingMenuMorph makes TWM works again. As TWM is the only user of this one, I suggest to put the class in TWM with a TWM prefix. Okay?

Phil



TIA
Phil




On Thu, Mar 6, 2014 at 12:00 PM, phil@highoctane.be <phil@highoctane.be> wrote:
I am trying to get TWM to work in 3.0

I use the Metacello config flag "trick" to make it load 2.x things.

Now, things do load but there is the deprecation warnings about the way icons are handled.

e.g.

deleteSnapshotIcon �
^ dock theme smallDeleteIcon.

gives a warning.

I looked into the code and now, we are supposed to do:

Smalltalk ui smallDeleteIcon.

Well, I changed the things that needed to be changed and then hit:

newMenu: aSelector icon: aForm help: aString�
^ MenuItemMorph new
contents: '';
subMenu: (UpdatingMenuMorph new updater: self updateSelector: aSelector);
icon: aForm;
setBalloonText: aString.

Where Updating MenuMorph appears to be gone in 3.0

What am I supposed to use as a replacement?

TIA

Phil