From d395c4c515b01d09265ead3849a0ab133367c830 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 8 Oct 2013 01:03:54 +0000 Subject: [PATCH] Add Gallery 'Make Active Media' svn: r23269 --- gramps/gui/editors/displaytabs/gallerytab.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gramps/gui/editors/displaytabs/gallerytab.py b/gramps/gui/editors/displaytabs/gallerytab.py index 522347312..bf31fe4f0 100644 --- a/gramps/gui/editors/displaytabs/gallerytab.py +++ b/gramps/gui/editors/displaytabs/gallerytab.py @@ -162,6 +162,14 @@ class GalleryTab(ButtonTab, DbGUIElement): item.show() self.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: item = Gtk.ImageMenuItem.new_from_stock(title, None)