Minor cleanup
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
local P = {}
|
||||
P.__index = P
|
||||
|
||||
function P:set_value(value)
|
||||
-- Set widget value. (0 - 100)
|
||||
@ -30,7 +31,6 @@ end
|
||||
function P:new()
|
||||
local widget = {}
|
||||
setmetatable(widget, self)
|
||||
self.__index = self
|
||||
|
||||
widget.icon = wibox.widget {
|
||||
id = "icon",
|
||||
|
@ -5,7 +5,7 @@ local widget_types = {
|
||||
local P = {
|
||||
name = "backlight"
|
||||
}
|
||||
|
||||
P.__index = P
|
||||
|
||||
---
|
||||
-- Internal methods
|
||||
@ -101,7 +101,6 @@ function P:new(args)
|
||||
-- do nothing. Updated in _get_status()
|
||||
}
|
||||
setmetatable(b, self)
|
||||
self.__index = self
|
||||
|
||||
b.widget = widget_types[b.widget_type]:new()
|
||||
|
||||
|
Reference in New Issue
Block a user