Merge pull request #790 from gpodder/player-list-force-size

Gtk UI: Force-resize icons in player list
This commit is contained in:
Eric Le Lay 2020-04-29 19:19:12 +02:00 committed by GitHub
commit f75efeb5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class UserApplication(object):
(icon_name, extension) = os.path.splitext(os.path.basename(self.icon))
theme = Gtk.IconTheme()
if theme.has_icon(icon_name):
return theme.load_icon(icon_name, 24, 0)
return theme.load_icon(icon_name, 24, Gtk.IconLookupFlags.FORCE_SIZE)
def is_mime(self, mimetype):
return self.mime.find(mimetype + '/') != -1