WPrefs: fix conversion of old "Apercu" setting to the new keywords
commite666cfc6a57248c8db8e51100a9bb019f33a8284
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 20 Jun 2015 16:23:59 +0000 (20 18:23 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 20 Jun 2015 16:34:57 +0000 (20 17:34 +0100)
treef53399d81966935824912c717513845b2819f37a
parentae7e228aa400edf0beb0f61499eaf41cc95af3fc
WPrefs: fix conversion of old "Apercu" setting to the new keywords

As pointed by Josip, the code for loading the legacy setting keywords for
the Minipreview feature did not update correctly the configuration:

 - if the setting used a size as a multiple of icon size, this was
understood as the minimum pixel size, which meant here disabling the
feature. The code is now consistent with what Window Maker does;

 - if the old keyword were found, they were loaded but not removed from the
database after creating the new ones, which is a source of problem as
Window Maker assumes that the presence of the legacy keywords means they
are to be taken in consideration.

Reported-by: Josip Deanovic <djosip+news@linuxpages.net>
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/Icons.c