2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Support GNotification

It's used if there's a gtk notification daemon or application is running sandboxed without access to the freedesktop protocol.

GNotification API is poor, but should feel native on environments using GNOME technologies.
This commit is contained in:
Ilya Fedin
2022-11-11 15:49:50 +04:00
committed by John Preston
parent afaad155a0
commit f9dd2b4a0a
10 changed files with 439 additions and 16 deletions

View File

@@ -125,9 +125,9 @@ void System::setManager(std::unique_ptr<Manager> manager) {
}
}
ManagerType System::managerType() const {
Manager &System::manager() const {
Expects(_manager != nullptr);
return _manager->type();
return *_manager;
}
Main::Session *System::findSession(uint64 sessionId) const {