naughty: config.icon_size works now (FS#359)

Signed-off-by: koniu <gkusnierz@gmail.com>
This commit is contained in:
koniu 2008-11-04 20:09:28 +00:00
parent 105e155606
commit 9447d29204
1 changed files with 4 additions and 1 deletions

View File

@ -238,7 +238,10 @@ function notify(args)
iconbox = widget({ type = "imagebox", name = "icon", align = "left" }) iconbox = widget({ type = "imagebox", name = "icon", align = "left" })
iconbox:buttons({ button({ }, 1, function () destroy(notification) end) }) iconbox:buttons({ button({ }, 1, function () destroy(notification) end) })
local img = image(icon) local img = image(icon)
if icon_size then img:crop_and_scale(0,0,img.height,img.width,icon_size,icon_size) end if icon_size then
img = img:crop_and_scale(0,0,img.height,img.width,icon_size,icon_size)
iconbox.resize = false
end
iconbox.image = img iconbox.image = img
if config.hover_timeout then iconbox.mouse_enter = hover_destroy end if config.hover_timeout then iconbox.mouse_enter = hover_destroy end
end end