diff options
author | Christoph Lohmann <20h@r-36.net> | 2013-03-14 06:35:42 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-03-14 06:35:42 +0100 |
commit | d02f73d9902b953e6d815856844c79e3755c26fd (patch) | |
tree | 30188490a81273ba0a8bd5049360801efd175f0a | |
parent | a5dddd8fd3cce2d77b9bbb3e22f2d1f1552b6ee4 (diff) | |
download | surf-d02f73d9902b953e6d815856844c79e3755c26fd.tar.gz surf-d02f73d9902b953e6d815856844c79e3755c26fd.tar.bz2 surf-d02f73d9902b953e6d815856844c79e3755c26fd.zip |
Adding a default font size option.
Thanks Alexander Sedov <alex0player@gmail.com>!
-rw-r--r-- | config.def.h | 2 | ||||
-rw-r--r-- | surf.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 85bfe47..052313c 100644 --- a/config.def.h +++ b/config.def.h @@ -10,6 +10,8 @@ static char *cafile = "/etc/ssl/certs/ca-certificates.crt"; static char *strictssl = FALSE; /* Refuse untrusted SSL connections */ static Bool kioskmode = FALSE; /* Ignore shortcuts */ +static guint defaultfontsize = 12; + /* Webkit default features */ static Bool enablescrollbars = TRUE; static Bool enablespatialbrowsing = TRUE; @@ -752,6 +752,8 @@ newclient(void) { enableinspector, NULL); g_object_set(G_OBJECT(settings), "enable-default-context-menu", kioskmode ^ 1, NULL); + g_object_set(G_OBJECT(settings), "default-font-size", + defaultfontsize, NULL); if(enableinspector) { c->inspector = WEBKIT_WEB_INSPECTOR( |