From 0acc25953d1a84d9b1481eebdee52ec962c7edcc Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 28 May 2013 15:32:24 +0000 Subject: [PATCH] GTK3: menu needs to survive function scope svn: r22446 --- gramps/gui/editors/editperson.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/editors/editperson.py b/gramps/gui/editors/editperson.py index 01d7bb6e2..febe37194 100644 --- a/gramps/gui/editors/editperson.py +++ b/gramps/gui/editors/editperson.py @@ -620,8 +620,8 @@ class EditPerson(EditPrimary): Look for right-clicks on a picture and create a popup menu of the available actions. """ - - menu = Gtk.Menu() + self.imgmenu = Gtk.Menu() + menu = self.imgmenu menu.set_title(_("Media Object")) obj = self.db.get_object_from_handle(photo.get_reference_handle()) if obj: