[f-spot] Remove a dependency on PhotoChanges.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Remove a dependency on PhotoChanges.
- Date: Sun, 23 May 2010 10:04:19 +0000 (UTC)
commit 1f8b3f2eb9cf899d936c301c2cb74007035ee9a0
Author: Ruben Vermeersch <ruben savanne be>
Date: Sun May 23 11:58:32 2010 +0200
Remove a dependency on PhotoChanges.
src/Core/IBrowsableItemChanges.cs | 11 +++++++++++
src/MainWindow.cs | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/IBrowsableItemChanges.cs b/src/Core/IBrowsableItemChanges.cs
index 79a3be7..4bcc510 100644
--- a/src/Core/IBrowsableItemChanges.cs
+++ b/src/Core/IBrowsableItemChanges.cs
@@ -29,4 +29,15 @@ namespace FSpot
get { return true; }
}
}
+
+ public class InvalidateData : IBrowsableItemChanges
+ {
+ static InvalidateData instance = new InvalidateData ();
+ public static InvalidateData Instance {
+ get { return instance; }
+ }
+
+ public bool DataChanged { get { return true; } }
+ public bool MetadataChanged { get { return false; } }
+ }
}
diff --git a/src/MainWindow.cs b/src/MainWindow.cs
index fbc928e..c990495 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -918,7 +918,7 @@ namespace FSpot
int [] selected_ids = SelectedIds ();
if (command.Execute (direction, SelectedPhotos (selected_ids)))
- query.MarkChanged (selected_ids, new PhotoChanges () {DataChanged = true});
+ query.MarkChanged (selected_ids, InvalidateData.Instance);
}
//
@@ -2343,7 +2343,7 @@ namespace FSpot
int [] selected_ids = SelectedIds ();
if (command.Execute (SelectedPhotos (selected_ids)))
- query.MarkChanged (selected_ids, new PhotoChanges {DataChanged = true});
+ query.MarkChanged (selected_ids, InvalidateData.Instance);
}
public void HandleRotate90Command (object sender, EventArgs args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]