Patch! Change Time(zone) function



Hej

Here is the first release of the ChangePhotoTime routine.

For a teaser, please check the GUI at
www.thuree.com:8080/bt/testing/F-Spot_TimeZone.jpg

Please test it and do come with suggestions for features/enhancements.

Gnome HIG I am not sure I am following, neither proper translation standards.
This is my second try at coding in Gnome and C# so bear with me please :)

The command I used to create the diff files were as follows
  diff -Naur ../f-spot-0.0.13.orig/src/Makefile src/Makefile > Makefile.diff
  diff -Naur ../f-spot-0.0.13.orig/src/MainWindow.cs src/MainWindow.cs >
MainWindow.cs.diff
  diff -Naur ../f-spot-0.0.13.orig/src/PhotoStore.cs src/PhotoStore.cs >
PhotoStore.cs.diff
  diff -Naur ../f-spot-0.0.13.orig/src/f-spot.glade src/f-spot.glade >
f-spot.glade.diff

  and then I just copied the ChangePhotoTime.cs file

The changes I introduced to PhotoStore consist of one new method
(CommitTime (DbItem item))
which updates only the time (thought it was uneccasary to call commit and
modify tags and all).

Good luck

/Bengt

p.s.
I have based my modifications on F-Spot version 0.0.13


-----

A debug trace from one of my runs...

nrjbeth brdhcp052-89:~/development/f-spot/f-spot-0.0.13.TimeZone$ f-spot
Photo 20030426_Jasmine_ 006.jpg, Old time 23/04/2003 7:11:06 AM, New time
24/04/2003 7:10:06 AM
Photo 20030819_Jasmine_ 009.jpg, Old time 16/08/2003 10:50:27 AM, New time
17/08/2003 10:49:27 AM
Photo 20030822_Jasmine 002a.jpg, Old time 21/08/2003 4:36:45 AM, New time
22/08/2003 4:35:45 AM
Photo 20040131_JadeJasmine_China_1.JPG, Old time 30/01/2004 2:29:05 AM,
New time 31/01/2004 2:28:05 AM
Photo 20040629 183759_Linköping_PrincessJasmine_004.JPG, Old time
28/06/2004 8:38:59 AM, New time 29/06/2004 8:37:59 AM
Photo 20040717 125752_Loftahammar_AakesSummerHouse.JPG, Old time
16/07/2004 2:58:52 AM, New time 17/07/2004 2:57:52 AM
Photo 20040723 142528_Stockholm_Skansen_Jasmine_Bengt_005.JPG, Old time
22/07/2004 4:26:28 AM, New time 23/07/2004 4:25:28 AM
Photo 20040905181719_Yokohama_SushiTime_Jasmine_000.JPG, Old time
4/09/2004 8:18:19 AM, New time 5/09/2004 8:17:19 AM
Photo 20041005130110_Mohnani_Jasmine_Bengt.JPG, Old time 4/10/2004 3:02:10
AM, New time 5/10/2004 3:01:10 AM




-- 
Bengt Thuree   bengt thuree com    www.thuree.com/bt

Attachment: f_spot_ChangeTime.zip
Description: Zip archive



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]