mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +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 ipairs = ipairs
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
|
|
||||||
local Gtk = require("lgi").Gtk
|
|
||||||
|
|
||||||
module("freedesktop.utils")
|
module("freedesktop.utils")
|
||||||
|
|
||||||
terminal = 'xterm'
|
terminal = 'xterm'
|
||||||
|
|
||||||
icon_theme = nil
|
icon_theme = nil
|
||||||
gtk_icon_theme = Gtk.IconTheme.get_default()
|
|
||||||
|
|
||||||
all_icon_sizes = {
|
all_icon_sizes = {
|
||||||
'128x128',
|
'128x128',
|
||||||
|
@ -66,14 +63,6 @@ function lookup_icon(arg)
|
||||||
-- icons with absolute path and supported (AFAICT) formats
|
-- icons with absolute path and supported (AFAICT) formats
|
||||||
return arg.icon
|
return arg.icon
|
||||||
else
|
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_path = {}
|
||||||
local icon_themes = {}
|
local icon_themes = {}
|
||||||
local icon_theme_paths = {}
|
local icon_theme_paths = {}
|
||||||
|
|
Loading…
Reference in a new issue