update freedesktp frontend

This commit is contained in:
Patrick von Reth 2015-06-26 16:28:15 +02:00
parent 40d1768d49
commit 6177e89670
1 changed files with 3 additions and 2 deletions

View File

@ -101,8 +101,9 @@ uint FreedesktopFrontend::Notify(const QString &app_name, uint replaces_id,
}
}
Icon appIcon(qicon.pixmap(max).toImage());
Alert alert("DBus Alert", appIcon);
Alert alert(tr("DBus Alert"), appIcon);
app = Application(app_name, appIcon);
app.hints().setValue("use-markup", QVariant::fromValue(true));
app.addAlert(alert);
SnoreCore::instance().registerApplication(app);
} else {
@ -142,7 +143,7 @@ QStringList FreedesktopFrontend::GetCapabilities()
return QStringList()
<< "body"
<< "urgency"
// << "body-hyperlinks"
<< "body-hyperlinks"
<< "body-markup"
<< "icon-static"
<< "actions";