Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Commit 2cd0cd5

Browse files
committed
Update webkitgtk to 2.20.5
1 parent 96ef198 commit 2cd0cd5

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NOTE: These libraries can require additional installations if you haven't such.
1616
- `zeromq=4.3` distributed messaging
1717
- `spdlog=1.4.1` logging library
1818
- `gtest=1.8.1` for tests
19-
- `webkitgtk>=2.4.10` web content rendering
19+
- `webkit2gtk>=2.20.5` web content rendering
2020
- `Boost.System, Boost.Filesystem, Boost.Date_Time, Boost.Thread=1.70`
2121

2222
### Building with Docker (only for Ubuntu 18.04)

player/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pkg_check_modules(GSTREAMER REQUIRED
1212
gstreamer-pbutils-1.0>=1.16.2
1313
gstreamer-plugins-base-1.0>=1.16.2
1414
gstreamer-video-1.0>=1.16.2)
15-
pkg_check_modules(WEBKITGTK REQUIRED webkitgtk-3.0>=2.4.10)
15+
pkg_check_modules(WEBKITGTK REQUIRED webkit2gtk-4.0>=2.20.5)
1616
pkg_check_modules(GTKMM REQUIRED gtkmm-3.0>=3.22.0)
1717
pkg_check_modules(GLIBMM REQUIRED glibmm-2.4>=2.56.0)
1818
pkg_check_modules(X11 REQUIRED x11)

player/control/media/webview/WebViewGtk.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "common/types/Uri.hpp"
44

5-
#include <webkit/webkit.h>
5+
#include <webkit2/webkit2.h>
66

77
namespace ph = std::placeholders;
88

@@ -50,7 +50,9 @@ void WebViewGtk::enableTransparency()
5050
handler_.signal_screen_changed().connect(std::bind(&WebViewGtk::screenChanged, this, ph::_1));
5151
screenChanged(handler_.get_screen());
5252

53-
webkit_web_view_set_transparent(webView_, true);
53+
GdkRGBA background_color;
54+
gdk_rgba_parse(&background_color, "rgba(0,0,0,0)");
55+
webkit_web_view_set_background_color(webView_, &background_color);
5456
}
5557

5658
void WebViewGtk::screenChanged(const Glib::RefPtr<Gdk::Screen>& screen)

snap/snapcraft.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ parts:
3737
- wget
3838
- unzip
3939
- libgtkmm-3.0-dev
40-
- libwebkitgtk-3.0-dev
40+
- libwebkit2gtk-4.0-dev
4141
- libxss-dev
4242
- libglibmm-2.4-dev
4343
- libssl-dev
@@ -197,7 +197,7 @@ parts:
197197
- libboost1.70
198198
- libgtkmm-3.0-1v5
199199
- libcanberra-gtk3-module
200-
- libwebkitgtk-3.0-0
200+
- libwebkit2gtk-4.0-dev
201201
- libgpm2 # gstreamer warning
202202
- libslang2 # gstreamer warning
203203
after: [zmq, boost, spdlog, gtest]

0 commit comments

Comments
 (0)