contrib: initialization bugfix after lua52 port

The _NAME field was missing in the contrib table. Thanks to Jorg
Thalheim for reporting this.
This commit is contained in:
Adrian C. (anrxc) 2012-06-25 00:15:51 +02:00
parent 4caf95bfd0
commit 1a7b43068c
3 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ local wrequire = require("vicious.helpers").wrequire
-- Vicious: widgets for the awesome window manager
-- vicious.contrib
local contrib = {}
local contrib = { _NAME = "vicious.contrib" }
-- }}}
-- Load modules at runtime as needed

View File

@ -33,8 +33,8 @@ local scroller = {}
-- {{{ Helper functions
-- {{{ Loader of vicious modules
function helpers.wrequire(table, key)
local module = rawget(table, key)
function helpers.wrequire(table, key)
local module = rawget(table, key)
return module or require(table._NAME .. "." .. key)
end
-- }}}

View File

@ -22,6 +22,7 @@ local helpers = require("vicious.helpers")
-- Vicious: widgets for the awesome window manager
local vicious = {}
vicious.widgets = require("vicious.widgets")
--vicious.contrib = require("vicious.contrib")
-- Initialize tables
local timers = {}