diff options
Diffstat (limited to 'SwifTools/Notifier/GNTPNotifier.cpp')
-rw-r--r-- | SwifTools/Notifier/GNTPNotifier.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/SwifTools/Notifier/GNTPNotifier.cpp b/SwifTools/Notifier/GNTPNotifier.cpp index 9bc05bd..757594f 100644 --- a/SwifTools/Notifier/GNTPNotifier.cpp +++ b/SwifTools/Notifier/GNTPNotifier.cpp @@ -15,4 +15,5 @@ #include <Swiften/Base/foreach.h> +#include <Swiften/Base/Path.h> #include <Swiften/Network/ConnectionFactory.h> @@ -24,5 +25,5 @@ GNTPNotifier::GNTPNotifier(const std::string& name, const boost::filesystem::pat message << "GNTP/1.0 REGISTER NONE\r\n"; message << "Application-Name: " << name << "\r\n"; - message << "Application-Icon: file://" << icon.string() << "\r\n"; + message << "Application-Icon: file://" << pathToString(icon) << "\r\n"; message << "Notifications-Count: " << getAllTypes().size() << "\r\n"; std::vector<Notifier::Type> defaultTypes = getDefaultTypes(); @@ -60,5 +61,5 @@ void GNTPNotifier::showMessage(Type type, const std::string& subject, const std: message << "Notification-Title: " << subject << "\r\n"; message << "Notification-Text: " << description << "\r\n"; - message << "Notification-Icon: " << picture.string() << "\r\n"; + message << "Notification-Icon: " << pathToString(picture) << "\r\n"; message << "\r\n"; send(message.str()); |