mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-05 21:34:17 +01:00
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:
committed by
Carlos R. Mafra
parent
31c00a8749
commit
3ed8cb6ffa
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user