Adding a default font size option.

Thanks Alexander Sedov <alex0player@gmail.com>!
This commit is contained in:
Christoph Lohmann 2013-03-14 06:35:42 +01:00
parent a5dddd8fd3
commit d02f73d990
2 changed files with 4 additions and 0 deletions

View file

@ -10,6 +10,8 @@ static char *cafile = "/etc/ssl/certs/ca-certificates.crt";
static char *strictssl = FALSE; /* Refuse untrusted SSL connections */ static char *strictssl = FALSE; /* Refuse untrusted SSL connections */
static Bool kioskmode = FALSE; /* Ignore shortcuts */ static Bool kioskmode = FALSE; /* Ignore shortcuts */
static guint defaultfontsize = 12;
/* Webkit default features */ /* Webkit default features */
static Bool enablescrollbars = TRUE; static Bool enablescrollbars = TRUE;
static Bool enablespatialbrowsing = TRUE; static Bool enablespatialbrowsing = TRUE;

2
surf.c
View file

@ -752,6 +752,8 @@ newclient(void) {
enableinspector, NULL); enableinspector, NULL);
g_object_set(G_OBJECT(settings), "enable-default-context-menu", g_object_set(G_OBJECT(settings), "enable-default-context-menu",
kioskmode ^ 1, NULL); kioskmode ^ 1, NULL);
g_object_set(G_OBJECT(settings), "default-font-size",
defaultfontsize, NULL);
if(enableinspector) { if(enableinspector) {
c->inspector = WEBKIT_WEB_INSPECTOR( c->inspector = WEBKIT_WEB_INSPECTOR(