Further 4.1 changes

This commit is contained in:
Tracker-Friendly 2024-04-25 16:38:57 +01:00
parent e12795daef
commit cdb51de8ba
1 changed files with 3 additions and 4 deletions

View File

@ -1096,9 +1096,9 @@ inline std::string json_parse(const std::string &s, const std::string &key,
// ==================================================================== // ====================================================================
// //
// This implementation uses webkit2gtk backend. It requires gtk+3.0 and // This implementation uses webkit2gtk backend. It requires gtk+3.0 and
// webkit2gtk-4.0 libraries. Proper compiler flags can be retrieved via: // webkit2gtk-4.1 libraries. Proper compiler flags can be retrieved via:
// //
// pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0 // pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.1
// //
// ==================================================================== // ====================================================================
// //
@ -1415,8 +1415,7 @@ private:
return loaded_lib; return loaded_lib;
} }
constexpr std::array<const char *, 2> lib_names{"libwebkit2gtk-4.1.so", constexpr std::array<const char *, 2> lib_names{"libwebkit2gtk-4.1.so"};
"libwebkit2gtk-4.0.so"};
auto found = auto found =
std::find_if(lib_names.begin(), lib_names.end(), [](const char *name) { std::find_if(lib_names.begin(), lib_names.end(), [](const char *name) {
return native_library::is_loaded(name); return native_library::is_loaded(name);