wmmenu: Fix -Woverlength-strings compiler warning.
Instead of printing one giant string for the help text, we print each line individually.
This commit is contained in:
parent
1bda233d76
commit
93bb8f6267
|
@ -48,24 +48,21 @@ char * Options_Argv [MAXOPTIONS] ;
|
||||||
|
|
||||||
static void Usage (void)
|
static void Usage (void)
|
||||||
{
|
{
|
||||||
printf (
|
printf("Usage: wmmenu [<options>...][-- <dockoptions>...]\n");
|
||||||
"Usage: wmmenu [<options>...][-- <dockoptions>...]\n"
|
printf("Normal options:\n");
|
||||||
"Normal options:\n"
|
printf("-m MENUNAME set the name of the menu file to load from ~/.wmmenu\n");
|
||||||
"-m MENUNAME set the name of the menu file to load from ~/.wmmenu\n"
|
printf("-g WxH force width and height of tile\n");
|
||||||
"-g WxH force width and height of tile\n"
|
printf("-l XPMFILE set the pixmap used to highlight icon under cursor\n");
|
||||||
"-l XPMFILE set the pixmap used to highlight icon under cursor\n"
|
printf("-t XPMFILE set the pixmap used as button bar background\n");
|
||||||
"-t XPMFILE set the pixmap used as button bar background\n"
|
printf("-O click bar is only triggered by clicks on the tile, not moves\n");
|
||||||
"-O click bar is only triggered by clicks on the tile, not moves\n"
|
printf("-O noautoscale disable automatic pixmap scaling to tile size\n");
|
||||||
"-O noautoscale disable automatic pixmap scaling to tile size\n"
|
printf("-O behind draw highlight pixmap behind icon, not above\n");
|
||||||
"-O behind draw highlight pixmap behind icon, not above\n"
|
printf("-O hide=N set bar hiding timeout to N ms (default one)\n");
|
||||||
"-O hide=N set bar hiding timeout to N ms (default one)\n"
|
printf("-r ROWS set number of menu rows (default one)\n");
|
||||||
"-r ROWS set number of menu rows (default one)\n"
|
printf("-v print version information\n");
|
||||||
"-v print version information\n"
|
printf("-h print this help message\n");
|
||||||
"-h print this help message\n"
|
printf("Note:\n");
|
||||||
"Note:\n"
|
printf(" -t, -l and '-O behind' can also be specified with the defaults file.\n");
|
||||||
" -t, -l and '-O behind' can also be specified with the defaults file.\n"
|
|
||||||
""
|
|
||||||
) ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetGeometry (const char * val)
|
static void SetGeometry (const char * val)
|
||||||
|
|
Loading…
Reference in a new issue