summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-29 17:23:59 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-29 17:23:59 (GMT)
commit449686ae3a8b6ad059a7c905387adaca40e9e8e8 (patch)
treee98e07fe30a03fcbcf9836698e2687fc59bc15e2 /Swift/QtUI
parent3d6bfcba7ede52f222369adbb0230f5b51e39dea (diff)
downloadswift-contrib-449686ae3a8b6ad059a7c905387adaca40e9e8e8.zip
swift-contrib-449686ae3a8b6ad059a7c905387adaca40e9e8e8.tar.bz2
Use canonical-append hint for FreeDesktop notifications.
This merges notifications on Ubuntu.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/FreeDesktopNotifier.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/FreeDesktopNotifier.cpp b/Swift/QtUI/FreeDesktopNotifier.cpp
index eacaa09..e027043 100644
--- a/Swift/QtUI/FreeDesktopNotifier.cpp
+++ b/Swift/QtUI/FreeDesktopNotifier.cpp
@@ -37,6 +37,7 @@ void FreeDesktopNotifier::showMessage(Type type, const String& subject, const St
QStringList actions;
QMap<QString, QVariant> hints;
+ hints["x-canonical-append"] = QString("allowed");
msg << P2QSTRING(applicationName);
msg << quint32(0); // ID of previous notification to replace
msg << imageScaler.getScaledImage(picture, 48).string().c_str(); // Icon to display