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 ) )

nor

> cputxt = {}
> cputxt.buttons = awful.util.table.join(awful.button({ }, 1,
functions.throwOutExampleMessage ) )
> cputxt = function-to-return-a-working-registered-cpu-textbox-widget()

gives any example message. However, a
"functions.throwOutExampleMessage()", inserted at the end of my rc.lua,
throws my example message as planned.
I don't get any errors not even a commentary from awesome, it just works
fine except for the fact that just nothing happens when I left-click on
my widget. cputxt is inserted into wibox.widgets as usual and also works
fine, it still shows me CPU-Usage as it did before starting the experiment.
According to the API [1] the way of cputxt.buttons should be working
(unless I misinterprete the reference API), as it does with tasklist and
taglist.

Does anyone see something obviously wrong with my code? (Or is just some
more info necessary?)

Thanks in advance,
Manuel

[1] http://awesome.naquadah.org/doc/api/modules/widget.html

-- 
To unsubscribe, send mail to [email protected].

Reply via email to