surf

Surf web browser.
git clone git://r-36.net/surf
Log | Files | Refs | README | LICENSE

commit 60a44e177d37eac08d66a9d9d80a6a36204864ea
parent 482a88bd1a2dc89497026927d65c6421b69d909d
Author: Christoph Lohmann <20h@r-36.net>
Date:   Fri, 21 Apr 2017 20:43:29 +0200

Allow the monospace font size to be set.

Diffstat:
config.def.h | 7++++---
surf.c | 2++
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -12,9 +12,10 @@ static Bool showindicators = TRUE; /* Show indicators in window title */ static Bool zoomto96dpi = TRUE; /* Zoom pages to always emulate 96dpi */ static Bool runinfullscreen = FALSE; /* Run in fullscreen mode by default */ -static char *defaultencoding = "utf-8"; /* Default encoding for files. */ -static guint defaultfontsize = 12; /* Default font size */ -static gfloat zoomlevel = 1.0; /* Default zoom level */ +static char *defaultencoding = "utf-8"; /* Default encoding for files. */ +static guint defaultfontsize = 12; /* Default font size */ +static guint defaultmonofontsize = 10; /* Default monospace font size */ +static gfloat zoomlevel = 1.0; /* Default zoom level */ /* Soup default features */ static char *cookiefile = "~/.surf/cookies.txt"; diff --git a/surf.c b/surf.c @@ -1090,6 +1090,8 @@ newclient(void) g_object_set(G_OBJECT(settings), "default-font-size", defaultfontsize, NULL); g_object_set(G_OBJECT(settings), + "default-monospace-font-size", defaultmonofontsize, NULL); + g_object_set(G_OBJECT(settings), "resizable-text-areas", 1, NULL); g_object_set(G_OBJECT(settings), "default-encoding", defaultencoding, NULL);