Author: akv
Date: 2010-01-26 21:22:13 +0100 (Tue, 26 Jan 2010)
New Revision: 3080

Modified:
   branches/rawstudio-ng-color/src/rs-library.c
Log:
Saving library tag backup for each change to a photo (in library).

Modified: branches/rawstudio-ng-color/src/rs-library.c
===================================================================
--- branches/rawstudio-ng-color/src/rs-library.c        2010-01-26 20:21:06 UTC 
(rev 3079)
+++ branches/rawstudio-ng-color/src/rs-library.c        2010-01-26 20:22:13 UTC 
(rev 3080)
@@ -434,6 +434,8 @@
 
        rs_io_idle_read_checksum(filename, -1, got_checksum, 
GINT_TO_POINTER(id));
 
+       library_backup_tags(library, g_path_get_dirname(photo));
+
        return id;
 }
 
@@ -598,6 +600,8 @@
        if (!library_is_photo_tagged(library, photo_id, tag_id))
                library_photo_add_tag(library, photo_id, tag_id, autotag);
 
+       library_backup_tags(library, g_path_get_dirname(filename));
+
        return;
 }
 
@@ -617,6 +621,7 @@
 
        library_photo_delete_tags(library, photo_id);
        library_delete_photo(library, photo_id);
+       library_backup_tags(library, g_path_get_dirname(photo));
 }
 
 gboolean
@@ -1060,6 +1065,7 @@
 
        gint photo_id = library_add_photo(library, photo);
        library_photo_default_tags(library, photo_id, metadata);
+       library_backup_tags(library, g_path_get_dirname(photo));
 }
 
 static void 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to