Awful.menu: Fix the text

Looks like someone wasn't using set_markup() where he was supposed to do so.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-10-07 14:24:16 +02:00
parent 688b4fb628
commit e64d36b104
1 changed files with 2 additions and 2 deletions

View File

@ -208,11 +208,11 @@ local function add_item(data, num, item_info)
-- Create the item label widget
local label = wibox.widget.textbox()
local key = ''
label.text = string.gsub(util.escape(item_info[1]), "&amp;(%w)",
label:set_markup(string.gsub(util.escape(item_info[1]), "&amp;(%w)",
function (l)
key = string.lower(l)
return "<u>"..l.."</u>"
end, 1)
end, 1))
-- Set icon if needed
local iconbox
local margin = wibox.layout.margin()