From 449686ae3a8b6ad059a7c905387adaca40e9e8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Fri, 29 Oct 2010 19:23:59 +0200 Subject: Use canonical-append hint for FreeDesktop notifications. This merges notifications on Ubuntu. 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 -- cgit v0.10.2-6-g49f6