Replace Gtk.STOCK_ icons with standard icon names
This commit is contained in:
parent
011718c032
commit
282996cd16
|
@ -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(
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue