From 1d9031173697a72824ef5e780ce9fd118a4d5bf2 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Sun, 1 Apr 2012 18:28:28 +0200 Subject: [PATCH] Gtk UI: Reintroduce "Open Download Folder" menu item --- src/gpodder/gtkui/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gpodder/gtkui/main.py b/src/gpodder/gtkui/main.py index 4ee58be1..65e00e35 100644 --- a/src/gpodder/gtkui/main.py +++ b/src/gpodder/gtkui/main.py @@ -1495,6 +1495,10 @@ class gPodder(BuilderWidget, dbus.service.Object): self.update_podcast_list_model(selected=True) self.update_episode_list_icons(all=True) + def on_open_download_folder(self, item): + assert self.active_channel is not None + util.gui_open(self.active_channel.save_dir) + def treeview_channels_show_context_menu(self, treeview, event=None): model, paths = self.treeview_handle_context_menu_click(treeview, event) if not paths: @@ -1516,6 +1520,12 @@ class gPodder(BuilderWidget, dbus.service.Object): menu.append(gtk.SeparatorMenuItem()) + item = gtk.MenuItem(_('Open download folder')) + item.connect('activate', self.on_open_download_folder) + menu.append(item) + + menu.append(gtk.SeparatorMenuItem()) + item = gtk.MenuItem(_('Mark episodes as old')) item.connect('activate', self.on_mark_episodes_as_old) menu.append(item) -- 2.11.4.GIT