From fbd2af7b15094bb17ceb9e7941780a3f82d6a728 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Fri, 8 Oct 2010 22:26:08 +0200 Subject: [PATCH] init: add set_markup support --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index 7ee0d74..51d3131 100644 --- a/init.lua +++ b/init.lua @@ -75,6 +75,8 @@ local function update(widget, reg, disablecache) widget:add_value(tonumber(data) and tonumber(data)/100) elseif widget.set_value ~= nil then widget:set_value(tonumber(data) and tonumber(data)/100) + elseif widget.set_markup ~= nil then + widget:set_markup(data) else widget.text = data end