[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/dataengines/notifications
From: Aurélien Gâteau <agateau () kde ! org>
Date: 2009-07-16 12:55:43
Message-ID: 1247748943.848232.8292.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 997752 by gateau:
Support for icon_data and image_path hints
image_path still need to look up image in themes
M +8 -0 notificationsengine.cpp
--- trunk/KDE/kdebase/workspace/plasma/dataengines/notifications/notificationsengine.cpp #997751:997752
@@ -170,6 +170,14 @@
if (hints.contains("image_data")) {
QDBusArgument arg = hints["image_data"].value<QDBusArgument>();
image = decodeNotificationSpecImageHint(arg);
+ } else if (hints.contains("image_path")) {
+ image.load(hints["image_path"].toString());
+ } else if (hints.contains("icon_data")) {
+ // This hint was in use in version 0.9 of the spec but has been
+ // replaced by "image_data" in version 0.10. We need to support it for
+ // users of the 0.9 version of the spec.
+ QDBusArgument arg = hints["icon_data"].value<QDBusArgument>();
+ image = decodeNotificationSpecImageHint(arg);
}
notificationData.insert("image", image);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic