Branch: refs/heads/master Author: Chow Loong Jin hyperair@debian.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sun, 05 Feb 2023 22:10:44 UTC Commit: 7a529e3547768b018b93f7da2aa5d6fbe70be2e5 https://github.com/geany/geany-plugins/commit/7a529e3547768b018b93f7da2aa5d6...
Log Message: ----------- webhelper: Initialize webkit favicon database
This fixes missing favicons in webhelper.
Modified Paths: -------------- webhelper/src/gwh-browser.c
Modified: webhelper/src/gwh-browser.c 4 lines changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -1124,6 +1124,7 @@ gwh_browser_init (GwhBrowser *self) { GtkWidget *scrolled; WebKitSettings *wkws; + WebKitWebContext *wkcontext; gboolean inspector_detached;
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, GWH_TYPE_BROWSER, @@ -1134,6 +1135,9 @@ gwh_browser_init (GwhBrowser *self) self->priv->web_view = webkit_web_view_new (); wkws = webkit_web_view_get_settings (WEBKIT_WEB_VIEW (self->priv->web_view)); g_object_set (wkws, "enable-developer-extras", TRUE, NULL); + + wkcontext = webkit_web_view_get_context (WEBKIT_WEB_VIEW (self->priv->web_view)); + webkit_web_context_set_favicon_database_directory (wkcontext, NULL);
self->priv->settings = gwh_settings_get_default (); g_object_get (self->priv->settings,
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).