about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-10-06 16:06:16 -0500
committerMarco Peereboom <marco@conformal.com>2011-10-06 16:06:16 -0500
commitfa8abdc508553688a81df25a1ba0eef659663d7c (patch)
tree9e0f2461d3bbf69e51fa202b517210e05cd6b537
parent090bc388080187aca96c2ac70b3b36af6a725967 (diff)
downloadxombrero-fa8abdc508553688a81df25a1ba0eef659663d7c.tar.gz
set encoding to webview not soup-session
*sigh*
-rw-r--r--xxxterm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 5da6079..4f18a34 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -8580,6 +8580,8 @@ create_browser(struct tab *t)
 	/* set defaults */
 	t->settings = webkit_web_settings_new();
 
+	g_object_set(t->settings, "default-encoding", encoding, (char *)NULL);
+
 	if (user_agent == NULL) {
 		g_object_get(G_OBJECT(t->settings), "user-agent", &strval,
 		    (char *)NULL);
@@ -10321,9 +10323,6 @@ main(int argc, char *argv[])
 			    (void *)NULL);
 	}
 
-	/* set default encoding */
-	g_object_set(session, "default-encoding", encoding, (char *)NULL);
-
 	/* guess_search regex */
 	if (url_regex == NULL)
 		url_regex = g_strdup(XT_URL_REGEX);