naughty: update to new widget layouts

Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Lukas Hrazky 2009-10-26 23:31:20 +01:00 committed by Julien Danjou
parent 8ddc77eeb9
commit f2800d96fd
1 changed files with 5 additions and 1 deletions

View File

@ -403,7 +403,11 @@ function notify(args)
notification.idx = offset.idx
-- populate widgets
notification.box.widgets = { iconbox, textbox, ["layout"] = layout.horizontal.leftright }
if iconbox then
notification.box.widgets = { iconbox, textbox, ["layout"] = layout.horizontal.leftright }
else
notification.box.widgets = { textbox, ["layout"] = layout.horizontal.leftright }
end
-- insert the notification to the table
table.insert(notifications[screen][notification.position], notification)