mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Update to the new WebKitGTK 6.0 API
This commit is contained in:
@@ -914,7 +914,7 @@ void Panel::showWebviewError(
|
||||
"https://go.microsoft.com/fwlink/p/?LinkId=2124703"))
|
||||
.append(parts.value(1));
|
||||
} break;
|
||||
case Error::NoGtkOrWebkit2Gtk:
|
||||
case Error::NoWebKitGTK:
|
||||
rich.append(tr::lng_payments_webview_install_webkit(tr::now));
|
||||
break;
|
||||
case Error::OldWindows:
|
||||
|
||||
@@ -9,7 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
|
||||
#include "core/crash_reports.h"
|
||||
#include "core/update_checker.h"
|
||||
#include "webview/platform/linux/webview_linux_webkit2gtk.h"
|
||||
#include "webview/platform/linux/webview_linux_webkitgtk.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
@@ -64,8 +64,8 @@ Launcher &Launcher::Instance() {
|
||||
int Launcher::exec() {
|
||||
for (auto i = begin(_arguments), e = end(_arguments); i != e; ++i) {
|
||||
if (*i == "-webviewhelper" && std::distance(i, e) > 1) {
|
||||
Webview::WebKit2Gtk::SetSocketPath(*(i + 1));
|
||||
return Webview::WebKit2Gtk::Exec();
|
||||
Webview::WebKitGTK::SetSocketPath(*(i + 1));
|
||||
return Webview::WebKitGTK::Exec();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "core/core_settings.h"
|
||||
#include "core/update_checker.h"
|
||||
#include "window/window_controller.h"
|
||||
#include "webview/platform/linux/webview_linux_webkit2gtk.h"
|
||||
#include "webview/platform/linux/webview_linux_webkitgtk.h"
|
||||
|
||||
#ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
#include "base/platform/linux/base_linux_glibmm_helper.h"
|
||||
@@ -787,7 +787,7 @@ void start() {
|
||||
#endif // DESKTOP_APP_USE_PACKAGED_FONTS
|
||||
#endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION
|
||||
|
||||
Webview::WebKit2Gtk::SetSocketPath(u"%1/%2-%3-webview-%4"_q.arg(
|
||||
Webview::WebKitGTK::SetSocketPath(u"%1/%2-%3-webview-%4"_q.arg(
|
||||
QDir::tempPath(),
|
||||
h,
|
||||
cGUIDStr(),
|
||||
|
||||
@@ -1143,7 +1143,7 @@ void Panel::showWebviewError(
|
||||
"https://go.microsoft.com/fwlink/p/?LinkId=2124703"))
|
||||
.append(parts.value(1));
|
||||
} break;
|
||||
case Error::NoGtkOrWebkit2Gtk:
|
||||
case Error::NoWebKitGTK:
|
||||
rich.append(tr::lng_payments_webview_install_webkit(tr::now));
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user