f-spot r4495 - branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4495 - branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath
- Date: Thu, 16 Oct 2008 21:06:21 +0000 (UTC)
Author: sdelcroix
Date: Thu Oct 16 21:06:21 2008
New Revision: 4495
URL: http://svn.gnome.org/viewvc/f-spot?rev=4495&view=rev
Log:
2008-10-16 Stephane Delcroix <sdelcroix novell com>
* ChangePhotoPath.addin.xml:
* ChangePhotoPathController.cs: mark the changes to be committed, fixes
bgo #545967.
Modified:
branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangeLog
branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangePhotoPath.addin.xml
branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangePhotoPathController.cs
Modified: branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangePhotoPath.addin.xml
==============================================================================
--- branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangePhotoPath.addin.xml (original)
+++ branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangePhotoPath.addin.xml Thu Oct 16 21:06:21 2008
@@ -1,6 +1,6 @@
<Addin namespace="FSpot"
id="ChangePath"
- version="0.5.0.0"
+ version="0.5.0.1"
name="ChangePath"
description="UNSTABLE - Please ensure you have a backup of your photos.db before you test this extension. This extension will allow you to change the base path to the your photos. It is very handy if you move your photos from ~/Photos to /OurPhotos for instance. Just ensure you let SqLite continue to process the changes for up to a few hours after f-spot reports finished. It will only change the path to photos which are located under the Photo directory."
author="Bengt Thuree"
Modified: branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangePhotoPathController.cs
==============================================================================
--- branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangePhotoPathController.cs (original)
+++ branches/FSPOT_0_5_0_STABLE/extensions/Tools/ChangePhotoPath/ChangePhotoPathController.cs Thu Oct 16 21:06:21 2008
@@ -183,6 +183,8 @@
photo = photo_store.Get ( (uint) photo_id_array[index]) as Photo;
PhotoVersion version = photo.GetVersion ( (uint) version_id_array[index]) as PhotoVersion;
version.Uri = new System.Uri ( path );
+ photo.Changes.UriChanged = true;
+ photo.Changes.ChangeVersion ( (uint) version_id_array[index] );
}
/// FIXME Refactor, try to use one common method....
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]