Improve naughty's dbus interface

Evil spec from galago project.
image_data should be read too as in http://www.galago-project.org/specs/notification/0.9/x344.html

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Radu Andries 2010-12-09 15:35:32 +01:00 committed by Uli Schlachter
parent a756972962
commit 35286d5ecc
1 changed files with 2 additions and 1 deletions

View File

@ -493,7 +493,8 @@ if capi.dbus then
args.preset.callback(data, appname, replaces_id, icon, title, text, actions, hints, expire)) then
if icon ~= "" then
args.icon = icon
elseif hints.icon_data then
elseif hints.icon_data or hints.image_data then
if hints.icon_data == nil then hints.icon_data = hints.image_data end
-- icon_data is an array:
-- 1 -> width, 2 -> height, 3 -> rowstride, 4 -> has alpha
-- 5 -> bits per sample, 6 -> channels, 7 -> data