1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 02:12:30 +01:00

clearance for text on titlebar.

This commit is contained in:
id
2000-01-11 07:48:11 +00:00
parent eca1fc5e9f
commit 9fe3f77559
5 changed files with 27 additions and 6 deletions

View File

@@ -141,6 +141,7 @@ static int getRImage();
/* value setting functions */
static int setJustify();
static int setClearance();
static int setIfDockPresent();
static int setStickyIcons();
/*
@@ -557,6 +558,9 @@ WDefaultEntry optionList[] = {
{"WindowTitleFont", DEF_TITLE_FONT, NULL,
NULL, getFont, setWinTitleFont,
},
{"WindowTitleClearance", DEF_TITLE_CLEARANCE, NULL,
&wPreferences.title_clearance, getInt, setClearance
},
{"MenuTitleFont", DEF_MENU_TITLE_FONT, NULL,
NULL, getFont, setMenuTitleFont
},
@@ -2407,6 +2411,11 @@ setJustify(WScreen *scr, WDefaultEntry *entry, WTexture **texture, void *foo)
return REFRESH_WINDOW_TITLE_COLOR;
}
static int
setClearance(WScreen *scr, WDefaultEntry *entry, void *bar, void *foo)
{
return REFRESH_WINDOW_FONT|REFRESH_BUTTON_IMAGES|REFRESH_MENU_TITLE_FONT;
}
static int
setIfDockPresent(WScreen *scr, WDefaultEntry *entry, int *flag, long which)