1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 06:38:05 +01:00

Renamed "apercu" to "minipreview" in the source code

To be consistent, all place where the not-properly-written "apercu" was
used in the source code (of wmaker and WPrefs) it has been replaced by an
appropriate "minipreview" or similar, to be in line with the new name
suggested by Yuri Tarasievich.

This new name is better understood by contributors who speak usual english,
but not this word which comes From french but is sparsely understood by
british people.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-12-31 01:09:24 +01:00
committed by Carlos R. Mafra
parent 35fe34ac85
commit 67b4302ef8
8 changed files with 79 additions and 79 deletions

View File

@@ -486,7 +486,7 @@ WDefaultEntry optionList[] = {
{"MiniwindowTitleBalloons", "NO", NULL,
&wPreferences.miniwin_title_balloon, getBool, NULL, NULL, NULL},
{"MiniwindowApercuBalloons", "NO", NULL,
&wPreferences.miniwin_apercu_balloon, getBool, NULL, NULL, NULL},
&wPreferences.miniwin_preview_balloon, getBool, NULL, NULL, NULL},
{"AppIconBalloons", "NO", NULL,
&wPreferences.appicon_balloon, getBool, NULL, NULL, NULL},
{"HelpBalloons", "NO", NULL,
@@ -506,7 +506,7 @@ WDefaultEntry optionList[] = {
{"SwitchPanelOnlyOpen", "NO", NULL,
&wPreferences.panel_only_open, getBool, NULL, NULL, NULL},
{"ApercuSize", "128", NULL,
&wPreferences.apercu_size, getInt, NULL, NULL, NULL},
&wPreferences.minipreview_size, getInt, NULL, NULL, NULL},
/* style options */
@@ -1190,18 +1190,18 @@ void wReadDefaults(WScreen * scr, WMPropList * new_dict)
/*
* Backward Compatibility:
* the option 'apercu_size' used to be coded as a multiple of the icon size in v0.95.6
* the option 'minipreview_size' used to be coded as a multiple of the icon size in v0.95.6
* it is now expressed directly in pixels, but to avoid breaking user's setting we check
* for old coding and convert it now.
* This code should probably stay for at least 2 years, you should not consider removing
* it before year 2017
*/
if (wPreferences.apercu_size < 24) {
if (wPreferences.minipreview_size < 24) {
/* 24 is the minimum icon size proposed in WPref's settings */
wPreferences.apercu_size *= wPreferences.icon_size;
if (wPreferences.miniwin_apercu_balloon)
wPreferences.minipreview_size *= wPreferences.icon_size;
if (wPreferences.miniwin_preview_balloon)
wwarning(_("your ApercuSize setting is using old syntax, it is converted to %d pixels; consider running WPrefs.app to update your settings"),
wPreferences.apercu_size);
wPreferences.minipreview_size);
}
if (needs_refresh != 0 && !scr->flags.startup) {