[shotwell] F-Spot import: Set exposure time of imported media.
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] F-Spot import: Set exposure time of imported media.
- Date: Wed, 4 Feb 2015 02:38:19 +0000 (UTC)
commit fe9d604aa52dfd44855c4b358d8a850d6405dacf
Author: Tim Waugh <twaugh redhat com>
Date: Sat Dec 27 19:19:43 2014 +0000
F-Spot import: Set exposure time of imported media.
plugins/shotwell-data-imports/FSpotImporter.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/shotwell-data-imports/FSpotImporter.vala
b/plugins/shotwell-data-imports/FSpotImporter.vala
index 03abe01..93d526c 100644
--- a/plugins/shotwell-data-imports/FSpotImporter.vala
+++ b/plugins/shotwell-data-imports/FSpotImporter.vala
@@ -94,6 +94,7 @@ public class FSpotImportableItem : Spit.DataImports.ImportableMediaItem, GLib.Ob
private FSpotImportableRating rating;
private string folder_path;
private string filename;
+ private time_t? date_time;
public FSpotImportableItem(
DataImports.FSpot.Db.FSpotPhotoRow photo_row,
@@ -109,6 +110,7 @@ public class FSpotImportableItem : Spit.DataImports.ImportableMediaItem, GLib.Ob
this.roll_row = roll_row;
this.tags = tags;
this.event = event;
+ this.date_time = photo_row.time;
if (photo_row.rating > 0)
this.rating = new FSpotImportableRating(photo_row.rating);
else if (is_hidden)
@@ -166,6 +168,10 @@ public class FSpotImportableItem : Spit.DataImports.ImportableMediaItem, GLib.Ob
public Spit.DataImports.ImportableRating get_rating() {
return rating;
}
+
+ public time_t? get_exposure_time() {
+ return date_time;
+ }
private string decode_url(string url) {
StringBuilder builder = new StringBuilder();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]