From 823cd10be7a269fc6af5298870cd93f499fcb885 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 15 Dec 2012 10:08:23 +0100 Subject: [PATCH] awful.widget.button: Fix name clash (FS#1064) Signed-off-by: Uli Schlachter --- lib/awful/widget/button.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/widget/button.lua.in b/lib/awful/widget/button.lua.in index 93b6db085..0f0d758fb 100644 --- a/lib/awful/widget/button.lua.in +++ b/lib/awful/widget/button.lua.in @@ -6,7 +6,7 @@ local setmetatable = setmetatable local type = type -local button = require("awful.button") +local abutton = require("awful.button") local imagebox = require("wibox.widget.imagebox") local widget = require("wibox.widget.base") local surface = require("gears.surface") @@ -32,7 +32,7 @@ function button.new(args) local w = imagebox() 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 end