mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
wmaker/WPrefs: Remove legacy support for deprecated apercus.
Replaced by minipreviews in December 2014. Over two years have passed.
This commit is contained in:
committed by
Carlos R. Mafra
parent
f6320d4fa5
commit
fa8121ee61
@@ -60,8 +60,6 @@ typedef struct _Panel {
|
||||
|
||||
CallbackRec callbacks;
|
||||
|
||||
Bool have_legacy_apercu;
|
||||
|
||||
WMWidget *parent;
|
||||
|
||||
WMFrame *posF;
|
||||
@@ -201,14 +199,6 @@ static void showData(_Panel * panel)
|
||||
|
||||
/* Mini-Previews for Icons */
|
||||
|
||||
/*
|
||||
* Backward Compatibility:
|
||||
* These settings changed names after 0.95.6, so to avoid breaking user's
|
||||
* config we still support the old names, and silently convert them to the
|
||||
* new settings
|
||||
* This hack should be kept for at least 2 years, that means >= 2017.
|
||||
*/
|
||||
panel->have_legacy_apercu = False;
|
||||
str = GetStringForKey("MiniwindowPreviewBalloons");
|
||||
if (str != NULL) {
|
||||
/* New names found, use them in priority */
|
||||
@@ -220,25 +210,6 @@ static void showData(_Panel * panel)
|
||||
} else {
|
||||
i = minipreview_minimum_size;
|
||||
}
|
||||
} else {
|
||||
/* No new names, try the legacy names */
|
||||
b = GetBoolForKey("MiniwindowApercuBalloons");
|
||||
if (b) {
|
||||
panel->have_legacy_apercu = True;
|
||||
i = GetIntegerForKey("ApercuSize");
|
||||
|
||||
/*
|
||||
* In the beginning, the option was coded as a multiple of the icon
|
||||
* size; then it was converted to pixel size
|
||||
*/
|
||||
if (i < 24)
|
||||
i *= GetIntegerForKey("IconSize");
|
||||
|
||||
if (i <= minipreview_minimum_size)
|
||||
i = minipreview_minimum_size + 1; /* +1 to not display as "off" */
|
||||
} else {
|
||||
i = minipreview_minimum_size;
|
||||
}
|
||||
}
|
||||
WMSetSliderValue(panel->minipreview.slider, i);
|
||||
minipreview_slider_changed(panel->minipreview.slider, panel);
|
||||
@@ -478,10 +449,6 @@ static void storeData(_Panel * panel)
|
||||
}
|
||||
SetIntegerForKey(i, "MiniPreviewSize");
|
||||
}
|
||||
if (panel->have_legacy_apercu) {
|
||||
RemoveObjectForKey("MiniwindowApercuBalloons");
|
||||
RemoveObjectForKey("ApercuSize");
|
||||
}
|
||||
|
||||
for (i = 0; i < wlengthof(icon_animation); i++) {
|
||||
if (WMGetButtonSelected(panel->animB[i])) {
|
||||
|
||||
Reference in New Issue
Block a user