Update xdg-menu to work with latest gtk3 (#914830)

epel9
Miroslav Lichvar 12 years ago
parent 60314f81b9
commit 4edb1fd18e

@ -47,6 +47,7 @@ def icon_attr(entry):
iconinfo = theme.lookup_icon(name, 22, Gtk.IconLookupFlags.NO_SVG) iconinfo = theme.lookup_icon(name, 22, Gtk.IconLookupFlags.NO_SVG)
if iconinfo: if iconinfo:
iconfile = iconinfo.get_filename() iconfile = iconinfo.get_filename()
if hasattr(iconinfo, 'free'):
iconinfo.free() iconinfo.free()
if iconfile: if iconfile:
return ' icon="' + iconfile + '"' return ' icon="' + iconfile + '"'

Loading…
Cancel
Save