Line 0
Link Here
|
|
|
1 |
From 0b4100d7cecc4e748c51f3f51ebfd1392ec3978a Mon Sep 17 00:00:00 2001 |
2 |
From: John Preston <johnprestonmail@gmail.com> |
3 |
Date: Thu, 29 Apr 2021 10:53:08 +0400 |
4 |
Subject: [PATCH] Set correct version in QLibrary::load. |
5 |
|
6 |
--- |
7 |
webview/platform/linux/webview_linux_webkit_gtk.cpp | 2 +- |
8 |
webview/platform/linux/webview_linux_webkit_gtk.h | 2 +- |
9 |
2 files changed, 2 insertions(+), 2 deletions(-) |
10 |
|
11 |
diff --git webview/platform/linux/webview_linux_webkit_gtk.cpp webview/platform/linux/webview_linux_webkit_gtk.cpp |
12 |
index 3b8ca3f..c3c8d37 100644 |
13 |
--- Telegram/lib_webview/webview/platform/linux/webview_linux_webkit_gtk.cpp |
14 |
+++ Telegram/lib_webview/webview/platform/linux/webview_linux_webkit_gtk.cpp |
15 |
@@ -38,7 +38,7 @@ bool Resolve() { |
16 |
&& LOAD_GTK_SYMBOL(gtk, gtk_window_get_type) |
17 |
&& LOAD_GTK_SYMBOL(gtk, gtk_window_set_decorated) |
18 |
&& LOAD_GTK_SYMBOL(gtk, gdk_x11_window_get_xid) |
19 |
- && base::Platform::Gtk::LoadLibrary(webkit2gtk, "libwebkit2gtk-4.0.so.37", 0) |
20 |
+ && base::Platform::Gtk::LoadLibrary(webkit2gtk, "libwebkit2gtk-4.0.so.37", 37) |
21 |
&& LOAD_GTK_SYMBOL(webkit2gtk, webkit_web_view_new) |
22 |
&& LOAD_GTK_SYMBOL(webkit2gtk, webkit_web_view_get_type) |
23 |
&& LOAD_GTK_SYMBOL(webkit2gtk, webkit_web_view_get_user_content_manager) |
24 |
diff --git webview/platform/linux/webview_linux_webkit_gtk.h webview/platform/linux/webview_linux_webkit_gtk.h |
25 |
index a7f0f97..6d2979a 100644 |
26 |
--- Telegram/lib_webview/webview/platform/linux/webview_linux_webkit_gtk.h |
27 |
+++ Telegram/lib_webview/webview/platform/linux/webview_linux_webkit_gtk.h |
28 |
@@ -11,9 +11,9 @@ |
29 |
extern "C" { |
30 |
#undef signals |
31 |
#include <JavaScriptCore/JavaScript.h> |
32 |
+#include <gdk/gdkx.h> |
33 |
#include <gtk/gtk.h> |
34 |
#include <webkit2/webkit2.h> |
35 |
-#include <X11/Xlib.h> |
36 |
#define signals public |
37 |
} // extern "C" |
38 |
|