Replace Gtk.STOCK_ icons with standard icon names

This commit is contained in:
Teemu Ikonen 2021-08-12 22:27:12 +03:00
parent 011718c032
commit 282996cd16
4 changed files with 5 additions and 5 deletions

View File

@ -155,7 +155,7 @@ class UserAppsReader(object):
self.apps.append(UserApplication(
_('Default application'), 'default',
';'.join((mime + '/*' for mime in self.mimetypes)),
Gtk.STOCK_OPEN))
'document-open'))
def add_separator(self):
self.apps.append(UserApplication(

View File

@ -65,7 +65,7 @@ class DownloadStatusModel(Gtk.ListStore):
# Set up stock icon IDs for tasks
self._status_ids = collections.defaultdict(lambda: None)
self._status_ids[download.DownloadTask.DOWNLOADING] = 'go-down'
self._status_ids[download.DownloadTask.DONE] = Gtk.STOCK_APPLY
self._status_ids[download.DownloadTask.DONE] = 'object-select-symbolic'
self._status_ids[download.DownloadTask.FAILED] = 'dialog-error'
self._status_ids[download.DownloadTask.CANCELLING] = 'media-playback-stop'
self._status_ids[download.DownloadTask.CANCELLED] = 'media-playback-stop'

View File

@ -2262,9 +2262,9 @@ class gPodder(BuilderWidget, dbus.service.Object):
can_delete = not can_cancel
if open_instead_of_play:
self.toolPlay.set_stock_id(Gtk.STOCK_OPEN)
self.toolPlay.set_icon_name('document-open')
else:
self.toolPlay.set_stock_id(Gtk.STOCK_MEDIA_PLAY)
self.toolPlay.set_icon_name('media-playback-start')
self.toolPlay.set_sensitive(can_play)
self.toolDownload.set_sensitive(can_download)
self.toolCancel.set_sensitive(can_cancel)

View File

@ -196,7 +196,7 @@ class EpisodeListModel(Gtk.ListStore):
self.ICON_VIDEO_FILE = 'video-x-generic'
self.ICON_IMAGE_FILE = 'image-x-generic'
self.ICON_GENERIC_FILE = 'text-x-generic'
self.ICON_DOWNLOADING = Gtk.STOCK_GO_DOWN
self.ICON_DOWNLOADING = 'go-down'
self.ICON_DELETED = 'edit-delete'
self.ICON_ERROR = 'dialog-error'