fixed menu info displaying, replaced debug() by DEBUG()

the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
This commit is contained in:
HW
2012-05-28 18:59:16 +02:00
parent 8191cbe852
commit 60ccd7441e
15 changed files with 50 additions and 54 deletions

View File

@@ -3,7 +3,7 @@ require "ui/inputevent"
require "ui/widget"
require "ui/screen"
require "ui/dialog"
require "settings" -- for debug(), TODO: put debug() somewhere else
require "settings" -- for DEBUG(), TODO: put DEBUG() somewhere else
-- we also initialize the framebuffer
@@ -136,11 +136,11 @@ function UIManager:run()
end
until all_tasks_checked
--debug("---------------------------------------------------")
--debug("exec stack", self._execution_stack)
--debug("window stack", self._window_stack)
--debug("dirty stack", self._dirty)
--debug("---------------------------------------------------")
--DEBUG("---------------------------------------------------")
--DEBUG("exec stack", self._execution_stack)
--DEBUG("window stack", self._window_stack)
--DEBUG("dirty stack", self._dirty)
--DEBUG("---------------------------------------------------")
-- stop when we have no window to show (bug)
if #self._window_stack == 0 then