awful.widget.button: Fix name clash (FS#1064)
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
fb20b3599d
commit
823cd10be7
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
local setmetatable = setmetatable
|
local setmetatable = setmetatable
|
||||||
local type = type
|
local type = type
|
||||||
local button = require("awful.button")
|
local abutton = require("awful.button")
|
||||||
local imagebox = require("wibox.widget.imagebox")
|
local imagebox = require("wibox.widget.imagebox")
|
||||||
local widget = require("wibox.widget.base")
|
local widget = require("wibox.widget.base")
|
||||||
local surface = require("gears.surface")
|
local surface = require("gears.surface")
|
||||||
|
@ -32,7 +32,7 @@ function button.new(args)
|
||||||
|
|
||||||
local w = imagebox()
|
local w = imagebox()
|
||||||
w:set_image(img_release)
|
w:set_image(img_release)
|
||||||
w:buttons(button({}, 1, function () w:set_image(img_press) end, function () w:set_image(img_release) end))
|
w:buttons(abutton({}, 1, function () w:set_image(img_press) end, function () w:set_image(img_release) end))
|
||||||
return w
|
return w
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue