wibox.layout.align: Bugfix

It didn't correctly attach to its second and third widget's widget::updated
signal.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-10-06 19:46:47 +02:00
parent 27d448bc97
commit 1fab3aa745

View file

@ -80,13 +80,13 @@ end
--- Set the layout's second widget. This is the centered one.
function set_second(layout, widget)
widget_changed(layout, widget)
widget_changed(layout, layout.second, widget)
layout.second = widget
end
--- Set the layout's third widget. This is the widget that is at the right/bottom
function set_third(layout, widget)
widget_changed(layout, widget)
widget_changed(layout, layout.third, widget)
layout.third = widget
end