Code:
function send_start(widget, text)
widget:add_signal("mouse::enter", function () weed.send_info{ text=""..text.."" } end)
end
send_start(mpdwidget, "Test")
I'm afraid to ask what I'm doing wrong. I tried to do it this way:
Code:
mpdwidget:add_signal("mouse::enter", function () weed.send_info{ text=""..text.."" } end)
And it works, so I assume it doesn't recognize "mpdwidget" as "mpd'mpdwidget'" as it should.
Thank you.