LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-03-2011, 05:42 AM   #1
implosions
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Rep: Reputation: 0
Awesome[WM] related LUA question


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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Awesome WM 3.4.5-1: Edit Prompt widget help (Lua) Biowaste Linux - Desktop 3 08-20-2013 04:02 PM
[SOLVED] Ifplugd > Awesome WM 3.4.5-1 widget using awesome-client Biowaste Linux - General 3 07-09-2010 07:37 AM
C/C++ embedding Lua with Gtk question PatrickNew Programming 1 09-01-2008 06:05 AM
c related question. blackzone Programming 1 07-24-2004 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration