From 47aa09199db196b6cdfe862732abb40d9a89a7b0 Mon Sep 17 00:00:00 2001 From: auouymous Date: Thu, 8 Dec 2022 04:46:06 -0700 Subject: [PATCH] Get rid of custom icons for each type of audio and video file. The episode list takes 24% more time to render with this feature. It is also known to produce incorrect icons for some file types. Fixes #872. --- src/gpodder/gtkui/model.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/gpodder/gtkui/model.py b/src/gpodder/gtkui/model.py index b24fc0f6..e70e0dfb 100644 --- a/src/gpodder/gtkui/model.py +++ b/src/gpodder/gtkui/model.py @@ -419,19 +419,6 @@ class EpisodeListModel(Gtk.ListStore): tooltip.append(_('Downloaded file')) status_icon = self.ICON_GENERIC_FILE - # Try to find a themed icon for this file - # doesn't work on win32 (opus files are showed as text) - filename = episode.local_filename(create=False, check_only=True) - if filename is not None and have_gio and not gpodder.ui.win32: - file = Gio.File.new_for_path(filename) - if file.query_exists(): - file_info = file.query_info('*', Gio.FileQueryInfoFlags.NONE, None) - icon = file_info.get_icon() - for icon_name in icon.get_names(): - if self.icon_theme.has_icon(icon_name): - status_icon = icon_name - break - if not episode.file_exists(): tooltip.append(_('missing file')) else: -- 2.11.4.GIT