More fixes for the recent module() removal

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-06-17 14:52:06 +02:00
parent 1cef64a9c8
commit b552000bd9
4 changed files with 5 additions and 5 deletions

View File

@ -102,7 +102,7 @@ local function apply_size_hints(c)
-- Handle the size increment
if hints.width_inc and hints.width_inc > 0 then
function apply_inc(size, inc, base)
local function apply_inc(size, inc, base)
local i = size - base
if i < 0 then i = 0 end
-- Round size down to a multiple of inc, ignoring the base size

View File

@ -29,7 +29,7 @@ local function tile_group(cls, wa, orientation, fact, group)
end
-- make this more generic (not just width)
available = wa[width] - (group.coord - wa[x])
local available = wa[width] - (group.coord - wa[x])
-- find our total values
local total_fact = 0

View File

@ -22,8 +22,8 @@ if dbus then
if data.member == "Eval" then
local f, e = load(code)
if f then
results = { f() }
retvals = {}
local results = { f() }
local retvals = {}
for _, v in ipairs(results) do
local t = type(v)
if t == "boolean" then

View File

@ -503,7 +503,7 @@ end
-- Notify
if capi.dbus then
capi.dbus.connect_signal("org.freedesktop.Notifications", function (data, appname, replaces_id, icon, title, text, actions, hints, expire)
args = { }
local args = { }
if data.member == "Notify" then
if text ~= "" then
args.text = text