webview / webview_deno

🌐 Deno bindings for webview, a tiny library for creating web-based desktop GUIs
https://deno.land/x/webview
MIT License
1.43k stars 74 forks source link

update WebView to support gtk 4 #176

Open sigmaSd opened 2 weeks ago

sigmaSd commented 2 weeks ago

The latest WebView update uses webgtkkit 6 and gtk 4 would be great if this library updates to the latest version

eliassjogreen commented 1 week ago

Yeah, webview is in need of some major refactoring and housekeeping. Haven't had the time nor motivation to update it in the last year or so... Help is ofc always welcome :)

sigmaSd commented 1 week ago

The good thing is the new release doesn't seem to have new breaking changes.

I dlopened the new library directly, and it wroked on linux, so it seems like its just a matter of updating the buildscript. (I confirmed its using gtk 4 using GTK_DEBUG=all)

I'm not familiar with cross building for mac and windows, so I can't help in this area for now.

SteffenL commented 1 week ago

I haven't been involved in this project but I'll just say that the core webview library can currently be compiled to support one of the following, but not all at the same time:

Note that some features aren't available anymore in GTK 4 and have no replacements.

eliassjogreen commented 1 week ago

Looking at this now quickly I think the biggest problem is that we are using a 2 year old version of webview. We need to update the build scripts to support the latest webview and then we should be able to build for each variant. We should then probably build all of the different variants in matrix CI action, that way we can support each variant :)