Re: [Obvious] [PATCH] buttons as simple table

2009-07-29 Thread Gregor Best
On Tue, Jul 28, 2009 at 08:50:20PM -0400, Evan McClain wrote:
 Attached is a patch to use buttons as a simple table as per the 
 earlier commit to awesome master.
 [...]

Merged it, thanks a lot :)

-- 
GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- O M-- V PS+ PE- Y+ PGP+++ t+ 5 X+ R tv+ b++ DI+++ D+++ G+
e- h! r y+

Gregor Best


pgpYR1q05A1G0.pgp
Description: PGP signature


[Obvious] [PATCH] buttons as simple table

2009-07-28 Thread Evan McClain
Attached is a patch to use buttons as a simple table as per the 
earlier commit to awesome master.

-- 
Evan McClain
/* No Comment */
evan.mccl...@gatech.edu
From 50662340bdee2580751106227f95b8583b4ed5bb Mon Sep 17 00:00:00 2001
From: Evan McClain evan.mccl...@gatech.edu
Date: Tue, 28 Jul 2009 20:35:48 -0400
Subject: [PATCH] Fix to use button as a simple table.

---
 battery/init.lua |4 ++--
 clock/init.lua   |4 ++--
 volume_alsa/init.lua |4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/battery/init.lua b/battery/init.lua
index f092abd..f6a8259 100644
--- a/battery/init.lua
+++ b/battery/init.lua
@@ -88,9 +88,9 @@ local function detail ()
 update()
 end
 
-widget:buttons(awful.util.table.join(
+widget.buttons = awful.util.table.join(
 awful.button({ }, 1, detail)
-))
+)
 update()
 awful.hooks.timer.register(60, update)
 
diff --git a/clock/init.lua b/clock/init.lua
index b587fd2..bc105e7 100644
--- a/clock/init.lua
+++ b/clock/init.lua
@@ -65,7 +65,7 @@ local widget = capi.widget({
 align = right
 })
 
-widget:buttons(awful.util.table.join(
+widget.buttons = awful.util.table.join(
 awful.button({ }, 3, function ()
 menu:toggle()
 end), 
@@ -83,7 +83,7 @@ widget:buttons(awful.util.table.join(
 naughty.notify({ text = awful.util.pread(ddate):gsub(\n$, ) })
 end
 end)
-))
+)
 
 local function read_alarms(file)
 local rv = { }
diff --git a/volume_alsa/init.lua b/volume_alsa/init.lua
index 3bc2e53..65c058f 100644
--- a/volume_alsa/init.lua
+++ b/volume_alsa/init.lua
@@ -84,11 +84,11 @@ function setchannel(c)
 channel = c
 end
 
-widget:buttons(awful.util.table.join(
+widget.buttons = awful.util.table.join(
 awful.button({ }, 4, function () raise() end),
 awful.button({ }, 5, function () lower() end),
 awful.button({ }, 1, function () mute() end)
-))
+)
 
 update()
 awful.hooks.timer.register(10, update)
-- 
1.6.3.3