item.layout.centerred: Fix regressions

This commit is contained in:
Emmanuel Lepage Vallee 2016-03-04 03:21:48 -05:00
parent d6d642551d
commit 8a249192b5
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,3 @@
local unpack = unpack or table.unpack
local rawset = rawset
local setmetatable = setmetatable
local base = require( "radical.base" )
local wibox = require( "wibox" )

View File

@ -1,8 +1,8 @@
local setmetatable = setmetatable
local wibox = require( "wibox" )
local util = require( "awful.util" )
local wibox = require( "wibox" )
local util = require( "awful.util" )
local horizontal = require( "radical.item.layout.horizontal" )
local margins2 = require("radical.margins")
local margins2 = require( "radical.margins" )
local function create_item(item,data,args)
@ -24,7 +24,7 @@ local function create_item(item,data,args)
},
widget = wibox.widget.background,
}
item.widget = w
item._internal.margin_w = item.widget:get_children_by_id("main_margin")[1]
item._internal.text_w = item.widget:get_children_by_id("main_text" )[1]