From: John L. <jr...@us...> - 2007-06-25 16:08:13
|
Update of /cvsroot/wxlua/wxLua/samples In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9840/wxLua/samples Modified Files: controls.wx.lua Log Message: Allow the wxTaskBarIcon to be delete()ed since you have to in MSW for the program to exit Change the keys in the lua registry table to be lightuserdata to avoid collisions Display what the keys are in the registry table in the stack dialog Index: controls.wx.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/samples/controls.wx.lua,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** controls.wx.lua 25 Jun 2007 03:19:51 -0000 1.7 --- controls.wx.lua 25 Jun 2007 16:07:58 -0000 1.8 *************** *** 870,874 **** textCtrl = nil -- stop processing events imageList:delete() ! if taskbarIcon then taskbarIcon:RemoveIcon() end end) --- 870,877 ---- textCtrl = nil -- stop processing events imageList:delete() ! if taskbarIcon then ! taskbarIcon:RemoveIcon() ! taskbarIcon:delete() -- must delete() it for program to exit in MSW ! end end) |