From fbc736faff7c0d085148f554163f30b3a8f29838 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 11 Oct 2001 22:59:38 +0000 Subject: [PATCH] Some basic media object editing svn: r457 --- gramps/src/ImageSelect.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/src/ImageSelect.py b/gramps/src/ImageSelect.py index d0737ae8e..e7c90cf3d 100644 --- a/gramps/src/ImageSelect.py +++ b/gramps/src/ImageSelect.py @@ -329,10 +329,12 @@ class Gallery(ImageSelect): item.show() menu.append(item) utils.add_menuitem(menu,_("View in the default viewer"),None,self.popup_view_photo) - utils.add_menuitem(menu,_("Edit in the default editor"),None,self.popup_edit_photo) + object = photo.getReference() + if object.getMimeType()[0:5] == "image": + utils.add_menuitem(menu,_("Edit with the GIMP"),\ + None,self.popup_edit_photo) utils.add_menuitem(menu,_("Edit Object Properties"),None, self.popup_change_description) - object = photo.getReference() if object.getLocal() == 0: utils.add_menuitem(menu,_("Convert to local copy"),None, self.popup_convert_to_private)