forked from pool/telegram-desktop
02366e1e42
- Add 0003-priortize-gtk2.patch and enable GTK integration. Fixes boo#1149986 regression. OBS-URL: https://build.opensuse.org/request/show/897600 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=196
20 lines
805 B
Diff
20 lines
805 B
Diff
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 bafd075..315bab7 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
|
|
@@ -239,12 +239,12 @@ void GtkIntegration::load() {
|
|
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)) {
|
|
Loaded = SetupGtkBase(_lib);
|
|
}
|
|
if (!Loaded
|
|
&& !TriedToInit
|
|
- && LoadGtkLibrary(_lib, "gtk-x11-2.0", 0)) {
|
|
+ && LoadGtkLibrary(_lib, "gtk-3", 0)) {
|
|
Loaded = SetupGtkBase(_lib);
|
|
}
|
|
|