From e5c9e7e29fd34271522a4ed7dfc6b8b8ee6670cd Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Wed, 23 Jan 2013 13:18:58 +0100 Subject: Allow setting custom widget ids --- button.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'button.lua') diff --git a/button.lua b/button.lua index fd0cff4..2e2b310 100644 --- a/button.lua +++ b/button.lua @@ -48,7 +48,7 @@ return function(w) end -- Generate unique identifier for gui state update and querying. - local id = core.generateID() + local id = w.id or core.generateID() -- group.getRect determines the position and size of the widget according -- to the currently active group. Both arguments may be omitted. -- cgit v1.2.3-54-g00ecf