Merge 9301e186ef
into 969d94255b
This commit is contained in:
commit
75725de146
13
init.lua
13
init.lua
|
@ -362,5 +362,18 @@ function vicious.call_async(wtype, format, warg, callback)
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Change the timer of a registered widget.
|
||||
function vicious.change_timer(reg, timeout)
|
||||
if not reg then return end
|
||||
local cur = reg.timeout
|
||||
if timeout ~= cur then
|
||||
vicious.unregister(nil, true, reg)
|
||||
reg.timeout = timeout
|
||||
regregister(reg)
|
||||
end
|
||||
return cur
|
||||
end
|
||||
-- }}}
|
||||
|
||||
return vicious
|
||||
-- }}}
|
||||
|
|
Loading…
Reference in New Issue