diff options
author | sabetts <sabetts> | 2004-10-05 17:46:14 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2004-10-05 17:46:14 +0000 |
commit | 8bf304d2da9810e57986749ccd55fe8a734dd18f (patch) | |
tree | 3acf6d57475dfadac0bd3cfd5244e40c046174bb | |
parent | e5373028a3f726cafc4de8f644d2cba3ac04db19 (diff) | |
download | ratpoison-8bf304d2da9810e57986749ccd55fe8a734dd18f.zip |
* src/conf.h (DEFAULT_FONT): new define
* src/main.c (init_defaults): use the DEFAULT_FONT define
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/conf.h | 3 | ||||
-rw-r--r-- | src/main.c | 6 |
3 files changed, 10 insertions, 3 deletions
@@ -1,5 +1,9 @@ 2004-10-05 Shawn Betts <katia_dilkina@verizon.net> + * src/conf.h (DEFAULT_FONT): new define + + * src/main.c (init_defaults): use the DEFAULT_FONT define + * src/actions.c: new command, sselect (cmd_sselect): new function. added prototype. (cmd_set): free 'var' at the appropriate places. @@ -115,4 +115,7 @@ /* The name of the top level keymap */ #define TOP_KEYMAP "top" +/* The default font */ +#define DEFAULT_FONT "9x15bold" + #endif /* !_ _RATPOISON_CONF_H */ @@ -477,13 +477,13 @@ init_defaults () defaults.padding_top = 0; defaults.padding_bottom = 0; - defaults.font = XLoadQueryFont (dpy, "9x15bold"); + defaults.font = XLoadQueryFont (dpy, DEFAULT_FONT); if (defaults.font == NULL) { - fprintf (stderr, "ratpoison: Cannot load font %s.\n", "9x15bold"); + fprintf (stderr, "ratpoison: Cannot load font %s.\n", DEFAULT_FONT); exit (EXIT_FAILURE); } - defaults.font_string = xstrdup ("9x15bold"); + defaults.font_string = xstrdup (DEFAULT_FONT); defaults.fgcolor_string = xstrdup ("black"); defaults.bgcolor_string = xstrdup ("white"); |