ui/gtk/webview.h

changeset 103
6606616eca9f
parent 102
64ded9f6a6c6
--- a/ui/gtk/webview.h	Tue Feb 25 21:11:00 2025 +0100
+++ b/ui/gtk/webview.h	Sat Apr 05 16:46:11 2025 +0200
@@ -31,7 +31,12 @@
 #ifdef UI_WEBVIEW
 
 #include "../ui/webview.h"
+
+#if GTK_MAJOR_VERSION >= 4
 #include <webkit/webkit.h>
+#else
+#include <webkit2/webkit2.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {

mercurial