summaryrefslogtreecommitdiff
path: root/src/dwb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dwb.c')
-rw-r--r--src/dwb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dwb.c b/src/dwb.c
index d54c84a6..2ec0fbba 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -77,6 +77,7 @@ static DwbStatus dwb_set_ntlm(GList *gl, WebSettings *s);
static DwbStatus dwb_set_find_delay(GList *gl, WebSettings *s);
static DwbStatus dwb_set_do_not_track(GList *gl, WebSettings *s);
static DwbStatus dwb_set_show_single_tab(GList *gl, WebSettings *s);
+static DwbStatus dwb_set_accept_language(GList *gl, WebSettings *s);
#ifdef WITH_LIBSOUP_2_38
static DwbStatus dwb_set_dns_lookup(GList *gl, WebSettings *s);
#endif
@@ -175,6 +176,14 @@ dwb_set_adblock(GList *gl, WebSettings *s)
}
}/*}}}*/
+/*{{{*/
+static DwbStatus
+dwb_set_accept_language(GList *gl, WebSettings *s)
+{
+ g_object_set(webkit_get_default_session(), "accept-language", s->arg_local.p, NULL);
+ return STATUS_OK;
+}/*}}}*/
+
/* dwb_set_cookies {{{ */
static DwbStatus
dwb_set_cookies(GList *gl, WebSettings *s) {