Fix "Open" item on episode context menu and give it an icon.

Gtk.STOCK_OPEN was displaying "gtk-open" as the label. The new name and
icon matches those in the toolbar.
This commit is contained in:
auouymous 2021-05-21 22:55:28 -06:00
parent 8904ff8a12
commit 2ba4ada3ea
1 changed files with 2 additions and 1 deletions

View File

@ -1900,7 +1900,8 @@ class gPodder(BuilderWidget, dbus.service.Object):
(can_play, can_download, can_cancel, can_delete, open_instead_of_play) = self.play_or_download()
if open_instead_of_play:
item = Gtk.ImageMenuItem(Gtk.STOCK_OPEN)
item = Gtk.ImageMenuItem(_('Open'))
item.set_image(Gtk.Image.new_from_icon_name('document-open', Gtk.IconSize.MENU))
elif downloaded:
item = Gtk.ImageMenuItem(_('Play'))
item.set_image(Gtk.Image.new_from_icon_name('media-playback-start', Gtk.IconSize.MENU))