naughty: fix font support

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-21 14:41:03 +01:00
parent 281e562182
commit 46822d510b
1 changed files with 1 additions and 2 deletions

View File

@ -203,8 +203,7 @@ function notify(args)
local textbox = widget({ type = "textbox", name = "text", align = "flex" }) local textbox = widget({ type = "textbox", name = "text", align = "flex" })
textbox:buttons({ button({ }, 1, run), textbox:buttons({ button({ }, 1, run),
button({ }, 3, die) }) button({ }, 3, die) })
textbox.text = string.format('<margin right="'..config.margin..'" left="'..config.margin..'"/><span font_desc="%s"><b>%s</b>%s</span>', textbox.text = string.format('<margin right="'..config.margin..'" left="'..config.margin..'"/><span font_desc="%s"><b>%s</b>%s</span>', font, title, text)
config.font, title, text)
if config.hover_timeout then textbox.mouse_enter = hover_destroy end if config.hover_timeout then textbox.mouse_enter = hover_destroy end
-- create iconbox -- create iconbox