summarylogtreecommitdiffstats
path: root/tdesktop.patch
diff options
context:
space:
mode:
authorAllen Wild2018-12-08 15:52:41 -0500
committerAllen Wild2018-12-08 15:52:41 -0500
commitd3442c7a0546a029b83efa0964417194c86864af (patch)
tree535a9f6a71ca0019eb64b72a777c1135f08cc354 /tdesktop.patch
parent462e7af7506abfa2305504bc7ad2849354228d61 (diff)
downloadaur-d3442c7a0546a029b83efa0964417194c86864af.tar.gz
update to 1.4.8-1
Diffstat (limited to 'tdesktop.patch')
-rw-r--r--tdesktop.patch71
1 files changed, 55 insertions, 16 deletions
diff --git a/tdesktop.patch b/tdesktop.patch
index d0700d0b52e7..410fd4cee57c 100644
--- a/tdesktop.patch
+++ b/tdesktop.patch
@@ -1,13 +1,39 @@
+From 1d382bc490484b6515ff599def7150f4a6e7386c Mon Sep 17 00:00:00 2001
+From: Allen Wild <allenwild93@gmail.com>
+Date: Sat, 8 Dec 2018 15:30:09 -0500
+Subject: [PATCH] tdesktop.patch
+
+---
+ Telegram/Resources/qrc/telegram_linux.qrc | 1 -
+ Telegram/SourceFiles/core/launcher.cpp | 12 ++-
+ .../SourceFiles/platform/linux/linux_libs.h | 2 +-
+ Telegram/SourceFiles/qt_functions.cpp | 94 +++++++++++++++++++
+ Telegram/SourceFiles/qt_static_plugins.cpp | 9 --
+ Telegram/SourceFiles/ui/text/text.cpp | 6 +-
+ Telegram/SourceFiles/ui/text/text_block.cpp | 3 +
+ Telegram/SourceFiles/ui/twidget.cpp | 4 +-
+ Telegram/gyp/PrecompiledHeader.cmake | 4 +-
+ Telegram/gyp/Telegram.gyp | 12 +--
+ Telegram/gyp/qt.gypi | 64 +++----------
+ Telegram/gyp/qt_moc.gypi | 2 +-
+ Telegram/gyp/qt_rcc.gypi | 2 +-
+ Telegram/gyp/settings_linux.gypi | 4 +-
+ Telegram/gyp/telegram_linux.gypi | 50 ++++------
+ Telegram/gyp/telegram_sources.txt | 9 +-
+ 16 files changed, 150 insertions(+), 128 deletions(-)
+ create mode 100644 Telegram/SourceFiles/qt_functions.cpp
+
diff --git a/Telegram/Resources/qrc/telegram_linux.qrc b/Telegram/Resources/qrc/telegram_linux.qrc
-index 0554fa179..3ea027406 100644
+index 164e8d4f2..12319be14 100644
--- a/Telegram/Resources/qrc/telegram_linux.qrc
+++ b/Telegram/Resources/qrc/telegram_linux.qrc
-@@ -1,5 +1,4 @@
+@@ -1,6 +1,5 @@
<RCC>
<qresource prefix="/qt">
- <file alias="etc/qt.conf">../etc/qt_linux.conf</file>
</qresource>
- </RCC>
+ <qresource prefix="/fc">
+ <file alias="fc-custom.conf">../fc-custom.conf</file>
diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp
index d4bdadc17..8a420c74b 100644
--- a/Telegram/SourceFiles/core/launcher.cpp
@@ -40,10 +66,10 @@ index d4bdadc17..8a420c74b 100644
DEBUG_LOG(("Telegram finished, result: %1").arg(result));
diff --git a/Telegram/SourceFiles/platform/linux/linux_libs.h b/Telegram/SourceFiles/platform/linux/linux_libs.h
-index 6f93d69cd..df185d5a2 100644
+index 4834fee11..2e60a6513 100644
--- a/Telegram/SourceFiles/platform/linux/linux_libs.h
+++ b/Telegram/SourceFiles/platform/linux/linux_libs.h
-@@ -17,7 +17,7 @@ extern "C" {
+@@ -21,7 +21,7 @@ extern "C" {
} // extern "C"
#ifndef TDESKTOP_DISABLE_UNITY_INTEGRATION
@@ -171,10 +197,10 @@ index e29f348c8..122ff0f5d 100644
-Q_IMPORT_PLUGIN(QHimePlatformInputContextPlugin)
#endif // Q_OS_WIN | Q_OS_MAC | Q_OS_LINUX
diff --git a/Telegram/SourceFiles/ui/text/text.cpp b/Telegram/SourceFiles/ui/text/text.cpp
-index 944f58479..887c1982f 100644
+index bc4d3d57b..370e5fe85 100644
--- a/Telegram/SourceFiles/ui/text/text.cpp
+++ b/Telegram/SourceFiles/ui/text/text.cpp
-@@ -1750,11 +1750,11 @@ private:
+@@ -1760,11 +1760,11 @@ private:
if (item == -1)
return;
@@ -204,10 +230,10 @@ index 2959cec77..04ad00645 100644
CrashReports::ClearAnnotationRef("CrashString");
}
diff --git a/Telegram/SourceFiles/ui/twidget.cpp b/Telegram/SourceFiles/ui/twidget.cpp
-index 71f318229..461f52278 100644
+index 0ccc63ed5..464921148 100644
--- a/Telegram/SourceFiles/ui/twidget.cpp
+++ b/Telegram/SourceFiles/ui/twidget.cpp
-@@ -233,9 +233,9 @@ void sendSynteticMouseEvent(QWidget *widget, QEvent::Type type, Qt::MouseButton
+@@ -245,9 +245,9 @@ void sendSynteticMouseEvent(QWidget *widget, QEvent::Type type, Qt::MouseButton
, button
, QGuiApplication::mouseButtons() | button
, QGuiApplication::keyboardModifiers()
@@ -242,7 +268,7 @@ index a0e1e0489..223113081 100644
IMPLICIT_DEPENDS CXX "${_pch_header}"
COMMENT "Precompiling header ${_name} for ${_target} (C++)")
diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp
-index dd7779c7e..c5dd775e4 100644
+index ac7696e1d..07193cf19 100644
--- a/Telegram/gyp/Telegram.gyp
+++ b/Telegram/gyp/Telegram.gyp
@@ -75,7 +75,6 @@
@@ -261,7 +287,7 @@ index dd7779c7e..c5dd775e4 100644
'AL_ALEXT_PROTOTYPES',
'TGVOIP_USE_CXX11_LIB',
'XXH_INLINE_ALL',
-@@ -94,16 +92,8 @@
+@@ -96,16 +94,8 @@
'include_dirs': [
'<(src_loc)',
'<(SHARED_INTERMEDIATE_DIR)',
@@ -465,7 +491,7 @@ index 17219fa2c..b00fd50ea 100644
],
'cflags_c': [
diff --git a/Telegram/gyp/telegram_linux.gypi b/Telegram/gyp/telegram_linux.gypi
-index 80259c687..5f33ff961 100644
+index dc0f4b90d..5f33ff961 100644
--- a/Telegram/gyp/telegram_linux.gypi
+++ b/Telegram/gyp/telegram_linux.gypi
@@ -23,10 +23,11 @@
@@ -525,7 +551,7 @@ index 80259c687..5f33ff961 100644
# '<!(pkg-config 2> /dev/null --libs <@(pkgconfig_libs))',
],
'cflags_cc': [
-@@ -90,16 +83,14 @@
+@@ -90,26 +83,15 @@
},
},
'conditions': [
@@ -536,20 +562,30 @@ index 80259c687..5f33ff961 100644
],
}], ['not_need_gtk!="True"', {
'cflags_cc': [
-- '<!(pkg-config 2> /dev/null --cflags appindicator-0.1)',
- '<!(pkg-config 2> /dev/null --cflags gtk+-2.0)',
- '<!(pkg-config 2> /dev/null --cflags glib-2.0)',
- '<!(pkg-config 2> /dev/null --cflags dee-1.0)',
+ '<!(pkg-config 2> /dev/null --cflags appindicator3-0.1)',
+ '<!(pkg-config 2> /dev/null --cflags gtk+-3.0)',
],
+- }], ['<!(pkg-config ayatana-appindicator3-0.1; echo $?) == 0', {
+- 'cflags_cc': [ '<!(pkg-config --cflags ayatana-appindicator3-0.1)' ],
+- 'defines': [ 'TDESKTOP_USE_AYATANA_INDICATORS' ],
+- }], ['<!(pkg-config ayatana-appindicator-0.1; echo $?) == 0', {
+- 'cflags_cc': [ '<!(pkg-config --cflags ayatana-appindicator-0.1)' ],
+- 'defines': [ 'TDESKTOP_USE_AYATANA_INDICATORS' ],
+- }], ['<!(pkg-config appindicator3-0.1; echo $?) == 0', {
+- 'cflags_cc': [ '<!(pkg-config --cflags appindicator3-0.1)' ],
+- }], ['<!(pkg-config appindicator-0.1; echo $?) == 0', {
+- 'cflags_cc': [ '<!(pkg-config --cflags appindicator-0.1)' ],
}]
],
+ }]],
diff --git a/Telegram/gyp/telegram_sources.txt b/Telegram/gyp/telegram_sources.txt
-index a21f20b56..ffc1a1ef8 100644
+index 03c8a1335..77884c330 100644
--- a/Telegram/gyp/telegram_sources.txt
+++ b/Telegram/gyp/telegram_sources.txt
-@@ -761,14 +761,7 @@
+@@ -775,14 +775,7 @@
<(emoji_suggestions_loc)/emoji_suggestions.cpp
<(emoji_suggestions_loc)/emoji_suggestions.h
@@ -565,3 +601,6 @@ index a21f20b56..ffc1a1ef8 100644
platforms: win
<(res_loc)/winrc/Telegram.rc
+--
+2.19.2
+