menubar.icon_theme: minor code style fixes
This commit is contained in:
parent
a140d80d76
commit
81072c0420
|
@ -196,8 +196,7 @@ local lookup_icon = function(self, icon_name, icon_size)
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local find_icon_path_helper
|
local find_icon_path_helper = function(self, icon_name, icon_size)
|
||||||
find_icon_path_helper = function(self, icon_name, icon_size)
|
|
||||||
local filename = lookup_icon(self, icon_name, icon_size)
|
local filename = lookup_icon(self, icon_name, icon_size)
|
||||||
if filename then
|
if filename then
|
||||||
return filename
|
return filename
|
||||||
|
@ -253,8 +252,8 @@ icon_theme.find_icon_path = function(self, icon_name, icon_size)
|
||||||
return lookup_fallback_icon(self, icon_name)
|
return lookup_fallback_icon(self, icon_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
icon_theme.mt.__call = function(cls, icon_theme_name, base_directories)
|
icon_theme.mt.__call = function(...)
|
||||||
return icon_theme.new(cls, icon_theme_name, base_directories)
|
return icon_theme.new(...)
|
||||||
end
|
end
|
||||||
|
|
||||||
return setmetatable(icon_theme, icon_theme.mt)
|
return setmetatable(icon_theme, icon_theme.mt)
|
||||||
|
|
Loading…
Reference in New Issue