]> git.sur5r.net Git - glabels/commitdiff
2007-05-05 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Sat, 5 May 2007 18:05:32 +0000 (18:05 +0000)
committerJim Evins <evins@snaught.com>
Sat, 5 May 2007 18:05:32 +0000 (18:05 +0000)
* src/template-designer.c: (apply_cb):
Add new template to mini-preview pixbuf cache.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@659 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/template-designer.c

index 2439da7583e92947fe47260cf75d1f3fcf9a2221..1e6aa4b2368e70ca87caa248248018b31dcfebb2 100644 (file)
@@ -1,3 +1,8 @@
+2007-05-05  Jim Evins  <evins@snaught.com>
+
+       * src/template-designer.c: (apply_cb):
+               Add new template to mini-preview pixbuf cache.
+
 2007-05-03  Jim Evins  <evins@snaught.com>
 
        * src/label-image.c: (gl_label_image_init), (draw_object):
index fe1aa943db99dde25c0d68c35199ccabfaa8d60d..490ea2daa1f18dd890b2fa28ab9f2acbca5af02a 100644 (file)
@@ -38,6 +38,7 @@
 #include <libglabels/paper.h>
 #include <libglabels/template.h>
 #include "wdgt-mini-preview.h"
+#include "mini-preview-pixbuf-cache.h"
 #include "print-op.h"
 #include "util.h"
 
@@ -1112,7 +1113,7 @@ apply_cb (glTemplateDesigner *dialog)
        
        template = build_template (dialog);
        gl_template_register (template);
-                                                                               
+        gl_mini_preview_pixbuf_cache_add_by_name (template->name);
 }
                          
 /*--------------------------------------------------------------------------*/