[hackers] [surf] Adding a default font size option. || Christoph Lohmann
commit d02f73d9902b953e6d815856844c79e3755c26fd
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Thu Mar 14 06:35:42 2013 +0100
Adding a default font size option.
Thanks Alexander Sedov <alex0player_AT_gmail.com>!
diff --git a/config.def.h b/config.def.h
index 85bfe47..052313c 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -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;
diff --git a/surf.c b/surf.c
index ee4ab75..830665a 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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(
Received on Thu Mar 14 2013 - 06:38:35 CET
This archive was generated by hypermail 2.3.0
: Thu Mar 14 2013 - 06:48:14 CET