fixed linux build

This commit is contained in:
Patrick von Reth 2014-01-13 10:43:00 +01:00
parent 5ef936cfb2
commit 8d7626f950
2 changed files with 5 additions and 5 deletions

View File

@ -50,7 +50,7 @@ private:
};
}
QDebug operator<< ( QDebug debug, const Snore::Alert &alert );
QDebug SNORE_EXPORT operator<< ( QDebug debug, const Snore::Alert &alert );
#endif // ALERT_H

View File

@ -55,9 +55,9 @@ void FreedesktopBackend::slotNotify ( Notification noti )
hints["urgency"] = (char)noti.priority()+1;
}
if(snore()->aplications().value(noti.application()).hints().contains("desktop-entry"))
if(noti.application().hints().contains("desktop-entry"))
{
hints["desktop-entry"] = snore()->aplications()[noti.application()].hints().value("desktop-entry");
hints["desktop-entry"] = noti.application().hints().value("desktop-entry");
}
uint updateId = 0;
@ -68,14 +68,14 @@ void FreedesktopBackend::slotNotify ( Notification noti )
m_snoreIdMap[noti.id()] = updateId;
}
QString title = QString("%1 - %2").arg(noti.application(), noti.title());
QString title = QString("%1 - %2").arg(noti.application().name(), noti.title());
QString body(noti.text());
if(!supportsRichtext())
{
title = Snore::toPlainText(title);
body = Snore::toPlainText(body);
}
QDBusPendingReply<uint> id = m_interface->Notify(noti.application(), updateId, "", title,
QDBusPendingReply<uint> id = m_interface->Notify(noti.application().name(), updateId, "", title,
body, actions, hints, noti.sticky()?-1:noti.timeout()*1000);
if(noti.updateID() == 0)