GTKWebkitWebView change WebDataDir and WebCacheDir #1471
Replies: 1 comment
-
|
Thanks for reporting and providing a minimal sample. It looks like you are doing the right thing. I will look at this for the upcoming next release of the 0.8.0 series. I created an issue (#1472) from this discussion. We can continue over there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am just using a normal WebView trying to change the folders where it stores its content (because I will use multiple webviews in my project). The documentation (https://webkitgtk.org/reference/webkitgtk/stable/migrating-to-webkitgtk-6.0.html#network-session-api) here says the following:
"[...] WebKitNetworkSession to be used must be passed to the WebKitWebView as a construct parameter."
So thats what I am trying, but I dont know how to do this right. I managed to create a new NetworkSession with the pathes which is simple, but is it even possible to pass it using the
ConstructArgumentfrom the bindings?Heres my code:
So here I get the exception that the specified structure must be blittable or have layout information. May I only pass primitive types here? But the property is a
construct-only-property as you can see here: https://webkitgtk.org/reference/webkitgtk/stable/property.WebView.network-session.html. So it seems like there is the only way to pass it via constructor?Beta Was this translation helpful? Give feedback.
All reactions