astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
613 stars 65 forks source link

Use native WebKit on macOS #713

Open c-alpha opened 3 years ago

c-alpha commented 3 years ago

WebKitGTK is a nightmare to build on macOS. It takes hours to compile (literally), it needs patches, and it doubles up functionality that is already available on the platform.

Hence, it would seem tempting to try to use the native WebKit that ships with the macOS platform. This is what this PR attempts.

I plan to do this in two steps:

A key challenge will of course be to hook the WKWebView into the hierarchy of Gtk graphics objects. For sure, somewhere deep down the Gtk implementation there must be a pointer or reference to some macOS native window or similar. Perhaps I can find a way to access that, and hook the WKWebView up with that. Fingers crossed! 🤞

c-alpha commented 3 years ago

thread_view.cc compiles without errors, while thread_view.hh is free from any webkit references. So far. so good.

c-alpha commented 3 years ago

Further files with webkit references are:

The next logical target would seem page_client.cc|hh, since it is a friend class of ThreadView, and it is also the next translation unit from the above list in the build process.