1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

treat x-cinnamon the same as gnome

This commit is contained in:
sudden6 2015-11-29 13:04:46 +01:00
parent 0ef39aa06a
commit 17e43d9835
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ SystemTrayIcon::SystemTrayIcon()
} }
#endif #endif
#ifdef ENABLE_SYSTRAY_GTK_BACKEND #ifdef ENABLE_SYSTRAY_GTK_BACKEND
else if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate") else if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate" || desktop == "x-cinnamon")
{ {
qDebug() << "Using GTK backend"; qDebug() << "Using GTK backend";
backendType = SystrayBackendType::GTK; backendType = SystrayBackendType::GTK;

View File

@ -1897,7 +1897,7 @@ inline QIcon Widget::prepareIcon(QString path, uint32_t w, uint32_t h)
} }
desktop = desktop.toLower(); desktop = desktop.toLower();
if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate") if (desktop == "xfce" || desktop.contains("gnome") || desktop == "mate" || desktop == "x-cinnamon")
{ {
if (w > 0 && h > 0) if (w > 0 && h > 0)
{ {