diff --git a/deluge/ui/gtk3/files_tab.py b/deluge/ui/gtk3/files_tab.py index 6e0fba4172..3550c8abc7 100644 --- a/deluge/ui/gtk3/files_tab.py +++ b/deluge/ui/gtk3/files_tab.py @@ -44,7 +44,7 @@ FILE_PRIORITY['High']: 'go-up-symbolic', } -G_ICON_DIRECTORY = Gio.content_type_get_icon('inode/directory') +#G_ICON_DIRECTORY = Gio.content_type_get_icon('inode/directory') def cell_priority(column, cell, model, row, data): @@ -368,7 +368,7 @@ def add_files(self, parent_iter, split_files): for key, value in split_files.items(): if key.endswith('/'): chunk_iter = self.treestore.append( - parent_iter, [key, 0, '', 0, 0, -1, G_ICON_DIRECTORY] + parent_iter, [key, 0, '', 0, 0, -1] ) chunk_size = self.add_files(chunk_iter, value) self.treestore.set(chunk_iter, 1, chunk_size) @@ -664,7 +664,7 @@ def _on_torrentfilerenamed_event(self, torrent_id, index, name): p_itr = self.get_iter_at_path('/'.join(parent_path[:i]) + '/') p_itr = self.treestore.append( p_itr, - [parent_path[i] + '/', 0, '', 0, 0, -1, G_ICON_DIRECTORY], + [parent_path[i] + '/', 0, '', 0, 0, -1], ) p_itr = self.get_iter_at_path('/'.join(parent_path) + '/') old_name_itr = self.get_iter_at_path(old_name) @@ -684,7 +684,7 @@ def _on_torrentfilerenamed_event(self, torrent_id, index, name): parent_iter = None for f in new_folders: parent_iter = self.treestore.append( - parent_iter, [f + '/', 0, '', 0, 0, -1, G_ICON_DIRECTORY] + parent_iter, [f + '/', 0, '', 0, 0, -1] ) child = self.get_iter_at_path(old_name) self.treestore.append( @@ -792,7 +792,7 @@ def _on_torrentfolderrenamed_event(self, torrent_id, old_folder, new_folder): if new_split: for ns in new_split[:-1]: parent = self.treestore.append( - parent, [ns + '/', 0, '', 0, 0, -1, G_ICON_DIRECTORY] + parent, [ns + '/', 0, '', 0, 0, -1] ) self.treestore[old_folder_iter][0] = new_split[-1] + '/'