textbox: Verify a text when it is set
commitd16ca829aae999e6f02230956dbf2371a78a3091
authorUli Schlachter <psychon@znc.in>
Sat, 8 Jan 2011 12:55:36 +0000 (8 13:55 +0100)
committerUli Schlachter <psychon@znc.in>
Sat, 8 Jan 2011 12:55:36 +0000 (8 13:55 +0100)
treec89dec05cd55ecec543f8241a31e07c2526a6bea
parent75956804bdcf616338ceba71020330b36371cd53
textbox: Verify a text when it is set

This makes the textbox pass the markup/text it is given to oopango immediately.
If it is invalid, a lua error will be thrown and the old text will still be
shown.

This fixes a bug where the whole wibox isn't redrawn when a textbox complains
about broken UTF8.

Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/wibox/widget/textbox.lua.in