textbox: Store the font in `_private`.

So a getter can work.
This commit is contained in:
Emmanuel Lepage Vallee 2021-10-26 13:31:33 -07:00
parent c7208b4bb0
commit c36a869ded
1 changed files with 4 additions and 0 deletions

View File

@ -338,6 +338,10 @@ end
-- @propbeautiful -- @propbeautiful
function textbox:set_font(font) function textbox:set_font(font)
if font == self._private.font then return end
self._private.font = font
self._private.layout:set_font_description(beautiful.get_font(font)) self._private.layout:set_font_description(beautiful.get_font(font))
self:emit_signal("widget::redraw_needed") self:emit_signal("widget::redraw_needed")
self:emit_signal("widget::layout_changed") self:emit_signal("widget::layout_changed")