Skip to content

Commit

Permalink
Gtk UI: Fix context menu UI blocking (bug 1778)
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed Feb 27, 2013
1 parent 9abcf6a commit 2ae85c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gpodder/gtkui/main.py
Expand Up @@ -1715,10 +1715,10 @@ def treeview_available_show_context_menu(self, treeview, event=None):
menu.append(gtk.SeparatorMenuItem())
submenus = {}
for label, callback in result:
key, sep, titel = label.rpartition('/')
item = gtk.ImageMenuItem(titel)
item.connect('button-press-event',
lambda w, ee, callback: callback(episodes), callback)
key, sep, title = label.rpartition('/')
item = gtk.MenuItem(title)
item.connect('activate', lambda item, callback:
callback(episodes), callback)
if key:
if key not in submenus:
sub_menu = self._add_sub_menu(menu, key)
Expand Down

0 comments on commit 2ae85c3

Please sign in to comment.