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:
parent
a756972962
commit
35286d5ecc
|
@ -493,7 +493,8 @@ if capi.dbus then
|
||||||
args.preset.callback(data, appname, replaces_id, icon, title, text, actions, hints, expire)) then
|
args.preset.callback(data, appname, replaces_id, icon, title, text, actions, hints, expire)) then
|
||||||
if icon ~= "" then
|
if icon ~= "" then
|
||||||
args.icon = icon
|
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:
|
-- icon_data is an array:
|
||||||
-- 1 -> width, 2 -> height, 3 -> rowstride, 4 -> has alpha
|
-- 1 -> width, 2 -> height, 3 -> rowstride, 4 -> has alpha
|
||||||
-- 5 -> bits per sample, 6 -> channels, 7 -> data
|
-- 5 -> bits per sample, 6 -> channels, 7 -> data
|
||||||
|
|
Loading…
Reference in New Issue