summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2006-01-02 23:31:29 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2006-01-02 23:31:29 +0000
commit611ec68e46d77168ff16b00e083d362e29be007d (patch)
tree99791ff6b9decdf44d870677f9c0151581f7785c /desktop
parente68f319778277b34a4ade12a4c003b81c1b6c5a0 (diff)
downloadnetsurf-611ec68e46d77168ff16b00e083d362e29be007d.tar.gz
netsurf-611ec68e46d77168ff16b00e083d362e29be007d.tar.bz2
[project @ 2006-01-02 23:31:28 by jmb]
Implement font default option properly svn path=/import/netsurf/; revision=1969
Diffstat (limited to 'desktop')
-rw-r--r--desktop/options.c6
-rw-r--r--desktop/options.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/desktop/options.c b/desktop/options.c
index ad8f17042..2310b3a27 100644
--- a/desktop/options.c
+++ b/desktop/options.c
@@ -21,6 +21,7 @@
#include <string.h>
#include "libxml/HTMLparser.h"
#include "libxml/HTMLtree.h"
+#include "netsurf/css/css.h"
#include "netsurf/desktop/options.h"
#include "netsurf/desktop/tree.h"
#include "netsurf/utils/log.h"
@@ -67,6 +68,8 @@ bool option_send_referer = true;
bool option_animate_images = true;
/** How many days to retain URL data for */
int option_expire_url = 28;
+/** Default font family */
+int option_font_default = CSS_FONT_FAMILY_SANS_SERIF;
EXTRA_OPTION_DEFINE
@@ -91,7 +94,8 @@ struct {
{ "minimum_gif_delay", OPTION_INTEGER, &option_minimum_gif_delay },
{ "send_referer", OPTION_BOOL, &option_send_referer },
{ "animate_images", OPTION_BOOL, &option_animate_images },
- { "expire_url", OPTION_INTEGER, &option_expire_url }, \
+ { "expire_url", OPTION_INTEGER, &option_expire_url },
+ { "font_default", OPTION_INTEGER, &option_font_default },
EXTRA_OPTION_TABLE
};
diff --git a/desktop/options.h b/desktop/options.h
index ee9c48415..ffd8fb83f 100644
--- a/desktop/options.h
+++ b/desktop/options.h
@@ -45,6 +45,7 @@ extern int option_minimum_gif_delay;
extern bool option_send_referer;
extern bool option_animate_images;
extern int option_expire_url;
+extern int option_font_default; /* a css_font_family */
void options_read(const char *path);
void options_write(const char *path);