summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-04 19:48:09 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-04 19:48:09 (GMT)
commitbb31d6f3a20e8989e182fa78b1bf2edaa2156dea (patch)
tree35be6fa1ea67e12985e2b852b9a04977b6f0a00a /SwifTools/Notifier/SnarlNotifier.cpp
parent537afef23b0f5da31c0cd38597a13773d79f77d4 (diff)
downloadswift-bb31d6f3a20e8989e182fa78b1bf2edaa2156dea.zip
swift-bb31d6f3a20e8989e182fa78b1bf2edaa2156dea.tar.bz2
Disable the notifier when going to DND.
Resolves: #572
Diffstat (limited to 'SwifTools/Notifier/SnarlNotifier.cpp')
-rw-r--r--SwifTools/Notifier/SnarlNotifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/SwifTools/Notifier/SnarlNotifier.cpp b/SwifTools/Notifier/SnarlNotifier.cpp
index 1cd3f9d..9162ff7 100644
--- a/SwifTools/Notifier/SnarlNotifier.cpp
+++ b/SwifTools/Notifier/SnarlNotifier.cpp
@@ -33,7 +33,7 @@ SnarlNotifier::~SnarlNotifier() {
}
}
-void SnarlNotifier::showMessage(Type type, const String& subject, const String& description, const boost::filesystem::path& picture, boost::function<void()> callback) {
+void SnarlNotifier::doShowMessage(Type type, const String& subject, const String& description, const boost::filesystem::path& picture, boost::function<void()> callback) {
int timeout = (type == Type::IncomingMessage || type == Type::SystemMessage) ? MESSAGE_NOTIFICATION_TIMEOUT : STATUS_NOTIFICATION_TIMEOUT;
int notificationID = snarl.ShowMessageEx(typeToString(type).getUTF8Data(), subject.getUTF8Data(), description.getUTF8Data(), timeout, picture.string().c_str(), window->getID(), SWIFT_SNARLNOTIFIER_MESSAGE_ID);
if (notificationID > 0) {