GTK3: menu needs to survive function scope

svn: r22446
This commit is contained in:
Benny Malengier 2013-05-28 15:32:24 +00:00
parent 960787a33c
commit 0acc25953d

View File

@ -620,8 +620,8 @@ class EditPerson(EditPrimary):
Look for right-clicks on a picture and create a popup menu of the Look for right-clicks on a picture and create a popup menu of the
available actions. available actions.
""" """
self.imgmenu = Gtk.Menu()
menu = Gtk.Menu() menu = self.imgmenu
menu.set_title(_("Media Object")) menu.set_title(_("Media Object"))
obj = self.db.get_object_from_handle(photo.get_reference_handle()) obj = self.db.get_object_from_handle(photo.get_reference_handle())
if obj: if obj: