From 068f91e41aebee1df65c75967641888125f6dcb6 Mon Sep 17 00:00:00 2001 From: Peter Hofmann Date: Thu, 10 Jun 2021 15:42:28 +0200 Subject: Add chorizo to PATCHES --- PATCHES | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PATCHES b/PATCHES index 174b734..1a3a4d1 100644 --- a/PATCHES +++ b/PATCHES @@ -10,7 +10,9 @@ The project used to be hosted on GitHub, so there is a couple of forks: https://github.com/vain/lariza/network/members -I'm not aware of any non-GitHub forks at the moment. +Non-GitHub forks: + + https://chorizo.armaanb.net Why? -- cgit v1.2.3 From 32da447da9cc523407366787d597d4204350d6c5 Mon Sep 17 00:00:00 2001 From: Peter Hofmann Date: Sun, 13 Jun 2021 07:22:49 +0200 Subject: Work around weirdness in setting a preferred language --- CHANGES | 4 ++++ browser.c | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index dfc17e4..7d137af 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,9 @@ Release history for lariza +next + [Fixed] + - Setting a preferred language works again (workaround in place). + v21.01 2021-01-22 [Changed] - The file "adblock.black" has been renamed to "adblock". diff --git a/browser.c b/browser.c index ebab7fb..77ea6ff 100644 --- a/browser.c +++ b/browser.c @@ -127,6 +127,7 @@ client_new(const gchar *uri, WebKitWebView *related_wv, gboolean show, struct Client *c; gchar *f; GtkWidget *evbox, *tabbox; + WebKitWebContext *wc; if (uri != NULL && cooperative_instances && !cooperative_alone) { @@ -151,6 +152,17 @@ client_new(const gchar *uri, WebKitWebView *related_wv, gboolean show, else c->web_view = webkit_web_view_new_with_related_view(related_wv); + /* XXX We have just created a new WebView with either the default + * WebContext (if related_wv == NULL) or a WebView with an inherited + * context. Still, it doesn't use the preferred languages we might + * have set on the default WebContext. This used to work. New bug in + * WebKit or changed API? */ + if (accepted_language[0] != NULL) + { + wc = webkit_web_view_get_context(WEBKIT_WEB_VIEW(c->web_view)); + webkit_web_context_set_preferred_languages(wc, accepted_language); + } + webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(c->web_view), global_zoom); g_signal_connect(G_OBJECT(c->web_view), "notify::favicon", G_CALLBACK(changed_favicon), c); @@ -851,9 +863,6 @@ init_default_web_context(void) webkit_web_context_set_web_extensions_directory(wc, p); g_free(p); - if (accepted_language[0] != NULL) - webkit_web_context_set_preferred_languages(wc, accepted_language); - g_signal_connect(G_OBJECT(wc), "download-started", G_CALLBACK(download_handle_start), NULL); -- cgit v1.2.3 From 97790aedc153817aee4f88d96b6aa54b419597a3 Mon Sep 17 00:00:00 2001 From: Peter Hofmann Date: Sat, 19 Jun 2021 11:08:38 +0200 Subject: Release v21.06 --- CHANGES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 7d137af..0d0cbe5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,6 @@ Release history for lariza -next +v21.06 2021-06-19 [Fixed] - Setting a preferred language works again (workaround in place). -- cgit v1.2.3