From 50e7c05fd1a1c51fc89538b505b202dbd65ceffe 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 --- src/ImageSelect.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ImageSelect.py b/src/ImageSelect.py index d0737ae8e..e7c90cf3d 100644 --- a/src/ImageSelect.py +++ b/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)