* src/ImageSelect.py: undo messages

* src/MediaView.py: undo messages
* src/RelLib.py: use db for undo status


svn: r3182
This commit is contained in:
Don Allingham
2004-05-20 00:12:14 +00:00
parent 79d9a39a9e
commit 0013617a90
4 changed files with 48 additions and 22 deletions

View File

@ -312,7 +312,7 @@ class MediaView:
else:
trans = self.db.start_transaction()
self.db.remove_object(mobj.get_id(),trans)
self.db.add_transaction(trans)
self.db.add_transaction(trans,_("Remove Media Object"))
self.build_tree()
def is_object_used(self,mobj):
@ -384,7 +384,7 @@ class MediaView:
photo.set_path(name)
self.db.commit_media_object(photo,trans)
self.db.add_transaction(trans)
self.db.add_transaction(trans,_("Add Media Object"))
if GrampsCfg.globalprop:
ImageSelect.GlobalMediaProperties(self.db,photo,self.load_media)
@ -416,7 +416,7 @@ class MediaView:
return
self.db.commit_media_object(photo,trans)
self.db.add_transaction(trans)
self.db.add_transaction(trans,_("Add Media Object"))
if GrampsCfg.globalprop:
ImageSelect.GlobalMediaProperties(self.db,photo,None)