gimp r26540 - in branches/soc-2008-tagging: . app/core



Author: aurisj
Date: Wed Aug 13 21:13:34 2008
New Revision: 26540
URL: http://svn.gnome.org/viewvc/gimp?rev=26540&view=rev

Log:
2008-08-14  Aurimas JuÅka  <auris auris-laptop>

	* app/core/gimptagcache.c (gimp_tag_cache_object_add): fixed
	identifier remapping when resource files are renamed.



Modified:
   branches/soc-2008-tagging/ChangeLog
   branches/soc-2008-tagging/app/core/gimptagcache.c

Modified: branches/soc-2008-tagging/app/core/gimptagcache.c
==============================================================================
--- branches/soc-2008-tagging/app/core/gimptagcache.c	(original)
+++ branches/soc-2008-tagging/app/core/gimptagcache.c	Wed Aug 13 21:13:34 2008
@@ -183,11 +183,9 @@
  * @cache:      a GimpTagCache object.
  * @container:  container containing GimpTagged objects.
  *
- * Adds container of GimpTagged objects to tag cache. Objects in container
- * are assigned tags when cache is loaded from file. When tag cache is saved
- * to file, tags are collected from objects in container. Therefore, before
- * loading and saving tag cache, containers added to tag cache must be already
- * initialized and not freed.
+ * Adds container of GimpTagged objects to tag cache. Before calling this
+ * function tag cache must be loaded using gimp_tag_cache_load(). When tag
+ * cache is saved to file, tags are collected from objects in containers.
  **/
 void
 gimp_tag_cache_add_container (GimpTagCache     *cache,
@@ -219,8 +217,7 @@
   identifier_quark = g_quark_try_string (identifier);
   g_free (identifier);
 
-  if (identifier_quark
-      && !gimp_tagged_get_tags (tagged))
+  if (! gimp_tagged_get_tags (tagged))
     {
       if (identifier_quark)
         {



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