* libglabels/xml-template.c:
Remove any leading white space from part #s when parsing old names.
* src/mini-preview-pixbuf-cache.c:
If name isn't in cache add it.
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@688
f5e0f49d-192f-0410-a22d-
a8d8700d0965
+2007-10-28 Jim Evins <evins@snaught.com>
+
+ * libglabels/xml-template.c:
+ Remove any leading white space from part #s when parsing old names.
+ * src/mini-preview-pixbuf-cache.c:
+ If name isn't in cache add it.
+
2007-10-26 Jim Evins <evins@snaught.com>
* libglabels/Makefile.am:
name = lgl_xml_get_prop_string (template_node, "name", NULL);
if (name)
{
- g_message (_("Missing required \"brand\" or \"part\" attribute, trying deprecated name."));
v = g_strsplit (name, " ", 2);
brand = g_strdup (v[0]);
- part = g_strdup (v[1]);
+ part = g_strchug (g_strdup (v[1]));
g_free (name);
g_strfreev (v);
}
else
{
- g_message (_("Name attribute also missing."));
+ g_message (_("Missing name or brand/part attributes."));
}
}
pixbuf = g_hash_table_lookup (mini_preview_pixbuf_cache, name);
+ if (!pixbuf)
+ {
+ gl_mini_preview_pixbuf_cache_add_by_name (name);
+ pixbuf = g_hash_table_lookup (mini_preview_pixbuf_cache, name);
+ }
+
gl_debug (DEBUG_PIXBUF_CACHE, "END");
return g_object_ref (pixbuf);