ui/gtk/webview.h

changeset 502
390c737daf08
parent 472
9ec14d31158a
--- a/ui/gtk/webview.h	Mon Mar 17 12:22:43 2025 +0100
+++ b/ui/gtk/webview.h	Tue Mar 18 17:47:40 2025 +0100
@@ -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