mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 11:12:31 +00:00
freedesktop: removed lgi patch for compatibility with lua-lgi 0.7.2
This commit is contained in:
parent
c10bed4428
commit
25520110ca
|
@ -7,14 +7,11 @@ local type = type
|
|||
local ipairs = ipairs
|
||||
local pairs = pairs
|
||||
|
||||
local Gtk = require("lgi").Gtk
|
||||
|
||||
module("freedesktop.utils")
|
||||
|
||||
terminal = 'xterm'
|
||||
|
||||
icon_theme = nil
|
||||
gtk_icon_theme = Gtk.IconTheme.get_default()
|
||||
|
||||
all_icon_sizes = {
|
||||
'128x128',
|
||||
|
@ -66,14 +63,6 @@ function lookup_icon(arg)
|
|||
-- icons with absolute path and supported (AFAICT) formats
|
||||
return arg.icon
|
||||
else
|
||||
local gtk_icon_info = Gtk.IconTheme.lookup_icon(gtk_icon_theme, arg.icon, 48, 0)
|
||||
if gtk_icon_info then
|
||||
filename = Gtk.IconInfo.get_filename(gtk_icon_info)
|
||||
if filename then
|
||||
return filename
|
||||
end
|
||||
end
|
||||
|
||||
local icon_path = {}
|
||||
local icon_themes = {}
|
||||
local icon_theme_paths = {}
|
||||
|
|
Loading…
Reference in a new issue