Merge branch 'naughty-version' of https://github.com/psychon/awesome
This commit is contained in:
commit
62495daa66
5
dbus.c
5
dbus.c
|
@ -319,8 +319,9 @@ a_dbus_convert_value(lua_State *L, int idx, DBusMessageIter *iter)
|
||||||
case dbustype: \
|
case dbustype: \
|
||||||
{ \
|
{ \
|
||||||
const char *s = lua_tostring(L, idx + 1); \
|
const char *s = lua_tostring(L, idx + 1); \
|
||||||
if(s) \
|
if(!s) \
|
||||||
dbus_message_iter_append_basic(iter, dbustype, &s); \
|
s = ""; \
|
||||||
|
dbus_message_iter_append_basic(iter, dbustype, &s); \
|
||||||
} \
|
} \
|
||||||
break;
|
break;
|
||||||
DBUS_MSG_RETURN_HANDLE_TYPE_STRING(DBUS_TYPE_STRING)
|
DBUS_MSG_RETURN_HANDLE_TYPE_STRING(DBUS_TYPE_STRING)
|
||||||
|
|
|
@ -195,8 +195,8 @@ capi.dbus.connect_signal("org.freedesktop.Notifications", function (data, appnam
|
||||||
naughty.destroy(obj, naughty.notificationClosedReason.dismissedByCommand)
|
naughty.destroy(obj, naughty.notificationClosedReason.dismissedByCommand)
|
||||||
end
|
end
|
||||||
elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then
|
elseif data.member == "GetServerInfo" or data.member == "GetServerInformation" then
|
||||||
-- name of notification app, name of vender, version
|
-- name of notification app, name of vender, version, specification version
|
||||||
return "s", "naughty", "s", "awesome", "s", capi.awesome.version:match("%d.%d"), "s", "1.0"
|
return "s", "naughty", "s", "awesome", "s", capi.awesome.version, "s", "1.0"
|
||||||
elseif data.member == "GetCapabilities" then
|
elseif data.member == "GetCapabilities" then
|
||||||
-- We actually do display the body of the message, we support <b>, <i>
|
-- We actually do display the body of the message, we support <b>, <i>
|
||||||
-- and <u> in the body and we handle static (non-animated) icons.
|
-- and <u> in the body and we handle static (non-animated) icons.
|
||||||
|
|
Loading…
Reference in New Issue