1
0
telegram-desktop/0003-prioritize-gtk2.patch

20 lines
935 B
Diff
Raw Normal View History

diff --git a/Telegram/lib_base/base/platform/linux/base_linux_gtk_integration.cpp b/Telegram/lib_base/base/platform/linux/base_linux_gtk_integration.cpp
index 1b78bac..09c2ede 100644
--- a/Telegram/lib_base/base/platform/linux/base_linux_gtk_integration.cpp
+++ b/Telegram/lib_base/base/platform/linux/base_linux_gtk_integration.cpp
@@ -475,12 +475,12 @@ void GtkIntegration::load(const QString &allowedBackends, bool force) {
DEBUG_LOG(("Icon theme: %1").arg(QIcon::themeName()));
DEBUG_LOG(("Fallback icon theme: %1").arg(QIcon::fallbackThemeName()));
- if (LoadGtkLibrary(_lib, "gtk-3", 0)) {
+ if (LoadGtkLibrary(_lib, "gtk-x11-2.0", 0)) {
_private->loaded = _private->setupBase(_lib, allowedBackends);
}
if (!_private->loaded
&& !_private->triedToInit
- && LoadGtkLibrary(_lib, "gtk-x11-2.0", 0)) {
+ && LoadGtkLibrary(_lib, "gtk-3", 0)) {
_private->loaded = _private->setupBase(_lib, allowedBackends);
}