init: add set_markup support

This commit is contained in:
Adrian C. (anrxc) 2010-10-08 22:26:08 +02:00
parent e51d8ac39e
commit fbd2af7b15
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ local function update(widget, reg, disablecache)
widget:add_value(tonumber(data) and tonumber(data)/100) widget:add_value(tonumber(data) and tonumber(data)/100)
elseif widget.set_value ~= nil then elseif widget.set_value ~= nil then
widget:set_value(tonumber(data) and tonumber(data)/100) widget:set_value(tonumber(data) and tonumber(data)/100)
elseif widget.set_markup ~= nil then
widget:set_markup(data)
else else
widget.text = data widget.text = data
end end