From 25520110ca36c637b85e42d758f6b534f23afd59 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Sat, 12 Oct 2013 16:00:20 +0200 Subject: [PATCH] freedesktop: removed lgi patch for compatibility with lua-lgi 0.7.2 --- freedesktop/utils.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/freedesktop/utils.lua b/freedesktop/utils.lua index 22755b0..958f924 100644 --- a/freedesktop/utils.lua +++ b/freedesktop/utils.lua @@ -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 = {}