reusing config.h's color values, note we have to use const char *, instead of const char [] here, because the pointer might change
Anselm R Garbe garbeam@gmail.com
Sat, 14 Jun 2008 10:55:13 +0100
M
config.h
→
config.h
@@ -1,14 +1,14 @@
/* See LICENSE file for copyright and license details. */ /* appearance */ -#define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*" -#define NORMBGCOLOR "#cccccc" -#define NORMFGCOLOR "#000000" -#define SELBGCOLOR "#0066ff" -#define SELFGCOLOR "#ffffff" +static const char *font = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*"; +static const char *normbgcolor = "#cccccc"; +static const char *normfgcolor = "#000000"; +static const char *selbgcolor = "#0066ff"; +static const char *selfgcolor = "#ffffff"; -static uint spaceitem = 30; /* px between menu items */ +static uint spaceitem = 30; /* px between menu items */ #ifdef XINERAMA -static uint xidx = 0; /* Xinerama screen index to use */ +static uint xidx = 0; /* Xinerama screen index to use */ #endif