GTK3: menu needs to survive function scope
svn: r22446
This commit is contained in:
parent
960787a33c
commit
0acc25953d
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user