WPrefs: add possibility to configure the size of the aperçu

The Icon preference panel have been rearranged to include a slider which
controls the size of the Aperçu. This slider is also used to turn off the
feature, so the related checkbox have been removed from the Misc preference
panel, because it is more convenient to have the related settings at the
same place.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2014-12-23 11:33:36 +00:00
1 parent 31c00a8749
commit 3ed8cb6ffa
3 files changed
+179 -47

No files matched your search

+2 -3
View File
@@ -52,7 +52,6 @@ static const struct {
} balloon_choices[] = {
{ "WindowTitleBalloons", N_("incomplete window titles"), },
{ "MiniwindowTitleBalloons", N_("miniwindow titles"), },
{ "MiniwindowApercuBalloons", N_("miniwindow apercus"), },
{ "AppIconBalloons", N_("application/dock icons"), },
{ "HelpBalloons", N_("internal help"), }
};
@@ -266,14 +265,14 @@ static void createPanel(Panel * p)
/***************** Balloon Text ****************/
panel->ballF = WMCreateFrame(panel->box);
WMResizeWidget(panel->ballF, 220, 132);
WMResizeWidget(panel->ballF, 220, 130);
WMMoveWidget(panel->ballF, 285, 7);
WMSetFrameTitle(panel->ballF, _("Show balloon for..."));
for (i = 0; i < wlengthof(balloon_choices); i++) {
panel->ballB[i] = WMCreateSwitchButton(panel->ballF);
WMResizeWidget(panel->ballB[i], 198, 20);
WMMoveWidget(panel->ballB[i], 11, 16 + i * 22);
WMMoveWidget(panel->ballB[i], 11, 20 + i * 26);
WMSetButtonText(panel->ballB[i], _(balloon_choices[i].label));
}