X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=a5cfdd0deefd95165219553a785cdff1ceddb868;hb=ee04671220690ec225112d49ece959239a3e2202;hp=93111d4a8782c14790647ce0e37ec311b07ae88c;hpb=00f9dcdf439f85df4a2b1efef32e7422a671c26c;p=surf.git diff --git a/surf.c b/surf.c index 93111d4..a5cfdd0 100644 --- a/surf.c +++ b/surf.c @@ -726,6 +726,13 @@ newview(Client *c, WebKitWebView *rv) webkit_cookie_manager_set_accept_policy( webkit_web_context_get_cookie_manager(context), cookiepolicy_get()); + /* languages */ + webkit_web_context_set_preferred_languages(context, + preferedlanguages); + webkit_web_context_set_spell_checking_languages(context, + spellinglanguages); + webkit_web_context_set_spell_checking_enabled(context, + enablespellchecking); g_signal_connect(G_OBJECT(context), "download-started", G_CALLBACK(downloadstarted), c); @@ -1418,10 +1425,8 @@ clickexternplayer(Client *c, const Arg *a, WebKitHitTestResult *h) { Arg arg; - if (webkit_hit_test_result_get_context(h) & OnMedia) { - arg = (Arg)VIDEOPLAY(webkit_hit_test_result_get_media_uri(h)); - spawn(c, &arg); - } + arg = (Arg)VIDEOPLAY(webkit_hit_test_result_get_media_uri(h)); + spawn(c, &arg); } int @@ -1510,7 +1515,7 @@ main(int argc, char *argv[]) stylefile = EARGF(usage()); break; case 'u': - useragent = EARGF(usage()); + fulluseragent = EARGF(usage()); break; case 'v': die("surf-"VERSION", ©2009-2015 surf engineers, "