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:
parent
8ddc77eeb9
commit
f2800d96fd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue