update freedesktp frontend
This commit is contained in:
parent
40d1768d49
commit
6177e89670
|
@ -101,8 +101,9 @@ uint FreedesktopFrontend::Notify(const QString &app_name, uint replaces_id,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Icon appIcon(qicon.pixmap(max).toImage());
|
Icon appIcon(qicon.pixmap(max).toImage());
|
||||||
Alert alert("DBus Alert", appIcon);
|
Alert alert(tr("DBus Alert"), appIcon);
|
||||||
app = Application(app_name, appIcon);
|
app = Application(app_name, appIcon);
|
||||||
|
app.hints().setValue("use-markup", QVariant::fromValue(true));
|
||||||
app.addAlert(alert);
|
app.addAlert(alert);
|
||||||
SnoreCore::instance().registerApplication(app);
|
SnoreCore::instance().registerApplication(app);
|
||||||
} else {
|
} else {
|
||||||
|
@ -142,7 +143,7 @@ QStringList FreedesktopFrontend::GetCapabilities()
|
||||||
return QStringList()
|
return QStringList()
|
||||||
<< "body"
|
<< "body"
|
||||||
<< "urgency"
|
<< "urgency"
|
||||||
// << "body-hyperlinks"
|
<< "body-hyperlinks"
|
||||||
<< "body-markup"
|
<< "body-markup"
|
||||||
<< "icon-static"
|
<< "icon-static"
|
||||||
<< "actions";
|
<< "actions";
|
||||||
|
|
Loading…
Reference in New Issue