Kirsan
3ff033cdf3
Fix for https://github.com/telegramdesktop/tdesktop/issues/4544
...
(cherry picked from commit d99c757d44d7c31fbb0eb290f273ad4d2d464255)
2018-04-07 12:13:52 +04:00
Marco Trevisan (Treviño)
e88c575d4a
linux: use $HOME to determine actual user path
...
As it could be different in confined environments.
2018-03-10 00:55:24 +03:00
Marco Trevisan (Treviño)
0de9c62675
linux-desktop-environment: detect Ubuntu properly enabling features
...
In Ubuntu (running in GNOME) we support AppIndicator and
Unity counters still.
2018-03-10 00:52:06 +03:00
Marco Trevisan
9dc03c4f0f
Linux ARM compile fixes ( #4399 )
...
This fixes errors when compiling in ARM
2018-03-09 23:48:47 +03:00
John Preston
2aa477176c
Fix build for Xcode / GCC.
2018-02-08 12:20:52 +03:00
John Preston
97a9089ebf
Move draw / getState code to HistoryView::Message.
...
Item dimensions broken for now.
Also remove history.h from pch.
2018-02-08 12:20:48 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
af552fb4c0
Replace base/task_queue with crl.
2017-12-31 00:28:38 +03:00
John Preston
14034c255e
Replace QSharedPointer with std::shared_ptr.
2017-12-18 13:07:18 +04:00
John Preston
0a4038d061
Fix build with TDESKTOP_DISABLE_CRASH_REPORTS.
...
Regression was introduced in 97c15865a5
.
Fixes #4173 .
2017-12-13 00:25:14 +04:00
John Preston
e998bd0b3f
Parse command line natively on Windows.
...
Use CommandLineToArgvW() so that unicode arguments are preserved.
This will fix path arguments with unicode symbols in them.
2017-12-12 18:56:37 +04:00
John Preston
251176df47
Move relaunch / update logic to Core::Launcher.
...
Also pass "-workdir" argument through relaunch / update.
Fixes #4149 .
2017-12-12 18:56:36 +04:00
John Preston
97c15865a5
Move some code around.
...
Move logs:SignalHandlers to core/crash_reports:CrashReports.
Move all pre-launch windows to core/crash_report_window module.
Move some global code to core/launcher:Launcher.
It should replace settings / platform_specific module in some way.
2017-12-12 16:47:32 +04:00
John Preston
9534121676
Fix issue number :/ Fixes #4150 .
2017-12-11 15:19:13 +04:00
John Preston
10b76d921b
Fix window scaling issue on macOS.
...
Fixes #4149 .
2017-12-11 15:06:05 +04:00
Mike Zueff
64e9958585
Fixed awesome WM tray icon.
2017-12-07 09:11:39 +04:00
John Preston
2432845df2
Optimize and rename base::weak_unique_ptr.
...
Rename base::enable_weak_from_this -> base::has_weak_ptr.
Rename base::weak_unique_ptr -> base::weak_ptr.
Rename base::make_weak_unique -> base::make_weak.
Rename base/weak_unique_ptr.h -> base/weak_ptr.h
2017-11-30 21:33:27 +04:00
John Preston
837dac50fa
Fix build for the original range-v3.
2017-11-26 18:20:22 +04:00
John Preston
2850d456d0
Closed beta 1.1.23.8: Test an upstream fix backport for macOS issue.
2017-11-22 21:53:10 +04:00
John Preston
ac99318f34
Use ranges:: algorithms instead of base::
2017-11-20 16:24:00 +04:00
John Preston
bc7c88c511
Fix build in Xcode / GCC.
2017-11-19 20:31:58 +04:00
John Preston
5a159d0204
Improve string encoding.
2017-11-16 07:59:12 +04:00
John Preston
7fdeab829f
Paint native title instead of using custom.
2017-11-16 07:59:12 +04:00
John Preston
5c12b0e5fa
Use /permissive- flag for Visual Studio builds.
2017-11-16 07:59:10 +04:00
John Preston
508fa14385
Workaround render glitches on new MacBooks.
...
For unknown reason large windows have bad render glitches in High Sierra.
Forcing of OpenGL composition (by adding a fake child QOpenGLWidget) fixes it.
2017-11-16 07:59:07 +04:00
John Preston
21b1ba1f88
Move build to Ubuntu 14.04 and GCC 7.2.
...
To be able to run on the same distributions as before we need to have
the same GLIBC version dependency as in Ubuntu 12.04, which is 2.15.
For that we need to remove all usages of GLIBC features from 2.16 and above.
Currently there are three methods used, so they're wrapped in a separate
static library, linux_glibc_wraps.
It is a separate library because it must be compiled without '-flto' flag,
otherwise the inline __asm__ is not working and we get unresolved symbols.
2017-11-16 07:59:05 +04:00
John Preston
f4d9618487
Improve layer / section exchange for Info.
2017-11-16 07:59:04 +04:00
John Preston
41ed2d1b84
New storage for shared media messages index.
2017-11-16 07:59:02 +04:00
eegorov
8bfe407610
New build option: without GTK and appindicator
...
Signed-off-by: Egor Y. Egorov <egor.y.egorov@gmail.com> (github: eegorov)
2017-09-28 18:32:51 +03:00
visuve
8c92f42de3
Fix uninitialized values
...
- Use C++11 default member initializers
Signed-off-by: Veli-Matti Visuri <veli-matti.visuri@cerescon.fi> (github: visuve)
2017-09-28 18:23:42 +03:00
Jan Niklas Hasse
e42cc02d0e
Prefer AppIndicator if DBus interface is available
...
Starting with Ubuntu 17.10 the interface will be provided by an
extension (shipped by default):
https://github.com/ubuntu/gnome-shell-extension-appindicator
Legacy tray icons have been completely removed in GNOME 3.26. By
checking the interface, this will allow users of other distributions
with GNOME to also use Telegram's indicator with the extension.
Signed-off-by: Jan Niklas Hasse <jhasse@bixense.com> (github: jhasse)
2017-09-28 12:59:46 +03:00
John Preston
2e374e68c5
Fix working with layers.
...
Regression was introduced in df64c97
.
New base::flags work correctly only if all mutually exclusive flag
values use mutually exclusive bits (a & b == 0 for exclusive (a, b)).
Closes #3856 .
2017-09-03 22:49:33 +03:00
John Preston
df64c972d8
Replace QFlags with base::flags.
2017-09-03 15:45:47 +03:00
John Preston
25ffaaaa2d
Replace t_assert() with Assert().
...
Also use this assertions for Expects(), Ensures() and Unexpected().
2017-08-30 19:15:42 +03:00
John Preston
b3da99c302
Replace gsl::not_null<T*> with just not_null<T*>.
2017-08-30 19:15:41 +03:00
John Preston
8e433971c9
Improve current executable path computing.
...
Fixes #960 (hopefully).
2017-08-30 19:15:35 +03:00
John Preston
a72453fb1b
Remove ContactsBox and contacts_box module.
2017-08-30 19:15:30 +03:00
John Preston
f7359093b4
Replace ContactsBox with PeerListBox in two cases.
...
- View contacts list in PeerListBox.
- Add participants when creating group / channel in PeerListBox.
2017-08-30 19:15:27 +03:00
John Preston
17cef93ac0
Use gsl::finally() instead of base::scope_guard().
2017-08-30 19:15:26 +03:00
John Preston
b08732cf28
Move MediaView from MainWindow to Messenger.
2017-08-25 14:39:27 +03:00
John Preston
ab35829358
Remove App::app(), App::uploader(), App::api().
...
Also use Auth() instead of AuthSession::Current*().
2017-08-25 14:39:18 +03:00
John Preston
a143505fd6
Remove lambda_slot() and lambda_slot_once().
2017-08-25 14:39:15 +03:00
John Preston
ca47e4ebfd
Alpha 1.1.13: Fix build for Xcode.
2017-07-14 15:52:53 +03:00
John Preston
f316e3bd17
Add debug logs for window position and autoupdate.
2017-07-03 15:23:41 +03:00
John Preston
4993ff1921
Finalize rename / move.
2017-06-30 09:21:45 +03:00
John Preston
e39b95175b
Handle channel event log mouse events.
2017-06-30 09:21:42 +03:00
John Preston
7dd50fa931
Closed beta 1001007001: Fix build in Xcode.
2017-06-29 11:40:01 +03:00
John Preston
f5353080e7
Use Qt UI language if system was not determined.
...
Also rename platform/mac/specific_mac.cpp to .mm
2017-06-29 11:39:47 +03:00
John Preston
139d4e72b5
Start cloud langpack support.
...
Change the way langpacks are stored.
Support custom langpacks in the new storage.
2017-06-29 11:39:42 +03:00
John Preston
2334ba1fe1
Use QString + Lang::Tag() instead of Lang::String.
2017-06-29 11:39:40 +03:00