Hi Manuel,
On 10/27/2012 05:50 AM, Manuel Kasser wrote:
Hi,
I've got another problem, hoping not to get on your nerves.
I want to make an audio-controlling widget, I thought of a simple
textbox displaying the volume in percent and the possibility of raising
the volume by left-clicking on it an lowering it by right-clicking.
So I tried to trigger a function call by binding a mouse button to this
widget, but I spectacularly failed.
I'm experimenting with my CPU-widget, which is a simple textbox-widget,
registered to vicious but I don't think that makes any difference.
The interesting code in my rc.lua:
Neither
cputxt = function-to-return-a-working-registered-cpu-textbox-widget()
cputxt.buttons = awful.util.table.join(awful.button({ }, 1,
functions.throwOutExampleMessage ) )
You should use this one but the second like should look like:
cputxt:buttons(awful.util.table.join(awful.button({ }, 1,
functions.throwOutExampleMessage))
Kind regards,
--
Alexander Yakushev
"If Java had true garbage collection, most programs would delete
themselves upon execution."
-- Robert Sewell
--
To unsubscribe, send mail to [email protected].