diff --git a/gramps/gui/editors/displaytabs/gallerytab.py b/gramps/gui/editors/displaytabs/gallerytab.py index ddb05e367..2a7863b0e 100644 --- a/gramps/gui/editors/displaytabs/gallerytab.py +++ b/gramps/gui/editors/displaytabs/gallerytab.py @@ -165,10 +165,10 @@ class GalleryTab(ButtonTab, DbGUIElement): item = Gtk.MenuItem(_('Make Active Media')) item.connect('activate', lambda obj: self.uistate.set_active(ref_obj.handle, "Media")) item.show() - menu.append(item) + self.menu.append(item) item = Gtk.SeparatorMenuItem() item.show() - menu.append(item) + self.menu.append(item) for (needs_write_access, image, title, func) in itemlist: if image: