Quoth Gabriel VLASIU,

I added the following line in GNUstep/Defaults/WindowMaker:
SwitchPanelImages = None;

  That's the key!

  In wInitSwitchPanel() after constructing the panel we do this check:

    if (!wPreferences.swtileImage)
        return panel;

But the images and icons arrays haven't been added at that point. That happens a few lines later.

We've already had a patch to check the arrays being NULL in changeImage(). Now I understand why that could happen. It may be worth adding a check for the same preference in changeImage() so it's explicitly clear what's going on.


--
To unsubscribe, send mail to [email protected].

Reply via email to