? last_import.patch
? libeog/access.lo
? libeog/accessible-image-view-factory.lo
? libeog/accessible-image-view.lo
? libeog/cursors.lo
? libeog/eog-file-selection.lo
? libeog/eog-image.lo
? libeog/eog-pixbuf-util.lo
? libeog/eog-scroll-view.lo
? libeog/image-view.lo
? libeog/libeog-marshal.lo
? libeog/libfspoteog.la
? libeog/ui-image.lo
? libeog/uta.lo
? libeog/zoom.lo
? libfspot/f-image-view.lo
? libfspot/f-jpeg-utils.lo
? libfspot/f-marshal.lo
? libfspot/f-pixbuf-save.lo
? libfspot/f-pixbuf-unsharp.lo
? libfspot/f-pixbuf-utils.lo
? libfspot/f-screen-utils.lo
? libfspot/f-utils.lo
? libfspot/libfspot.la
? libjpegtran/jpeg-data.lo
? libjpegtran/jpeg-marker.lo
? libjpegtran/jpegtran.lo
? libjpegtran/libfspotjpegtran.la
? libjpegtran/transupp.lo
? po/.intltool-merge-cache
Index: src/ImportCommand.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/ImportCommand.cs,v
retrieving revision 1.44
diff -u -p -r1.44 ImportCommand.cs
--- src/ImportCommand.cs	13 Jan 2006 21:56:23 -0000	1.44
+++ src/ImportCommand.cs	23 Jan 2006 22:58:04 -0000
@@ -733,6 +733,42 @@ public class ImportCommand : FSpot.Glade
 				}
 			}
 
+			TagStore tag_store = MainWindow.Toplevel.Database.Tags; 
+			Tag tag_last_roll = tag_store.GetTagByName("Last Import");
+			
+			// BEGIN fix
+			// Has the user upgraded? this needs to be done more cleanly before CVS
+			if (tag_last_roll == null) {
+				Tag lastimport_tag = tag_store.CreateTag (tag_store.RootCategory, "Last Import");
+				lastimport_tag.StockIconName = "f-spot-other.png";
+				lastimport_tag.SortPriority = -11;
+				tag_store.Commit (lastimport_tag);
+			}
+			tag_last_roll = tag_store.GetTagByName("Last Import");
+			
+			// END fix
+			
+			if (tag_last_roll != null) {
+				
+				Tag [] last_roll_arr = new Tag [] {tag_last_roll};
+				Photo [] photos = store.Query (last_roll_arr);	
+
+				foreach (Photo photo in photos) {
+					photo.RemoveCategory (last_roll_arr);
+					store.Commit (photo);
+				}
+			
+				for (int i = 0; i < collection.Count; i++) {
+					Photo p = collection [i] as Photo;
+					
+					if (p == null)
+						continue;
+						
+					p.AddTag (tag_last_roll);
+					store.Commit (p);
+				}
+			}
+
 			this.Dialog.Destroy ();
 			return collection.Count;
 		} else {
Index: src/TagStore.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/TagStore.cs,v
retrieving revision 1.26
diff -u -p -r1.26 TagStore.cs
--- src/TagStore.cs	19 Dec 2005 04:35:17 -0000	1.26
+++ src/TagStore.cs	23 Jan 2006 22:58:05 -0000
@@ -373,6 +373,11 @@ public class TagStore : DbStore {
 
 	private void CreateDefaultTags ()
 	{
+		Tag lastimport_tag = CreateTag (RootCategory, "Last Import");
+		lastimport_tag.StockIconName = "f-spot-other.png";
+		lastimport_tag.SortPriority = -11;
+		Commit (lastimport_tag);
+
 		Tag favorites_tag = CreateTag (RootCategory, "Favorites");
 		favorites_tag.StockIconName = "f-spot-favorite.png";
 		favorites_tag.SortPriority = -10;
