Adding a default font size option.
authorChristoph Lohmann <20h@r-36.net>
Thu, 14 Mar 2013 05:35:42 +0000 (06:35 +0100)
committerChristoph Lohmann <20h@r-36.net>
Thu, 14 Mar 2013 05:35:42 +0000 (06:35 +0100)
Thanks Alexander Sedov <alex0player@gmail.com>!

config.def.h
surf.c

index 85bfe47..052313c 100644 (file)
@@ -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 (file)
--- a/surf.c
+++ b/surf.c
@@ -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(