awful.menu: Remove useless surface() call

The imagebox calls surface() for us.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-01-15 18:43:10 +01:00
parent 58ecd92b8e
commit 86f2d05382
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ function menu.entry(parent, args)
if type(args.cmd) == "table" then
if args.theme.submenu_icon then
submenu = wibox.widget.imagebox()
submenu:set_image(surface.load(args.theme.submenu_icon))
submenu:set_image(args.theme.submenu_icon)
else
submenu = wibox.widget.textbox()
submenu:set_font(args.theme.font)