summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/conf.h3
-rw-r--r--src/main.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/conf.h b/src/conf.h
index a6128f0..c47cc8b 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -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 */
diff --git a/src/main.c b/src/main.c
index 5e87c55..66609ea 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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");