* src/EditPerson.py: Allow the photo to accept events, allowing us

to display a popup menu similar to galleries
* src/gramps.glade: Add eventbox to the image, allowing events
* src/MediaView.py: use object handle instead of gramps ID when
getting value from the list.


svn: r3764
This commit is contained in:
Don Allingham
2004-11-29 03:24:02 +00:00
parent fd56ea2ce1
commit e499e58d00
4 changed files with 94 additions and 10 deletions

View File

@ -337,7 +337,8 @@ class MediaView:
if not node:
return
if (const.dnd_images):
obj = self.db.get_object_from_handle(store.get_value(node,1))
handle = store.get_value(node,5)
obj = self.db.get_object_from_handle(handle)
image = self.db.get_thumbnail_image(obj.get_handle())
context.set_icon_pixbuf(image,0,0)