From f44ab17578bc563801255899aba5a1c46fbb6115 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 8 Oct 2013 01:00:55 +0000 Subject: [PATCH] Add Gallery 'Make Active Media' svn: r23268 --- src/gui/editors/displaytabs/gallerytab.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/editors/displaytabs/gallerytab.py b/src/gui/editors/displaytabs/gallerytab.py index 6c6887ac7..30291379f 100644 --- a/src/gui/editors/displaytabs/gallerytab.py +++ b/src/gui/editors/displaytabs/gallerytab.py @@ -148,6 +148,14 @@ class GalleryTab(ButtonTab, DbGUIElement): item = gtk.SeparatorMenuItem() item.show() menu.append(item) + + item = gtk.MenuItem(_('Make Active Media')) + item.connect('activate', lambda obj: self.uistate.set_active(ref_obj.handle, "Media")) + item.show() + menu.append(item) + item = gtk.SeparatorMenuItem() + item.show() + menu.append(item) for (needs_write_access, image, title, func) in itemlist: if image: