[gimp/goat-invasion] app: name the image's palette formats "-gimp-indexed-format-image_id"



commit ce76ec3694ab63046c52dbb8d9290f1123e5a707
Author: Michael Natterer <mitch gimp org>
Date:   Wed Apr 11 21:51:33 2012 +0200

    app: name the image's palette formats "-gimp-indexed-format-image_id"

 app/core/gimpimage-colormap.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpimage-colormap.c b/app/core/gimpimage-colormap.c
index 67168a1..da66cc0 100644
--- a/app/core/gimpimage-colormap.c
+++ b/app/core/gimpimage-colormap.c
@@ -73,9 +73,14 @@ gimp_image_colormap_init (GimpImage *image)
 
   if (! private->babl_palette_rgb)
     {
-      babl_new_palette (NULL,
+      gchar *format_name = g_strdup_printf ("-gimp-indexed-format-%d",
+                                            gimp_image_get_ID (image));
+
+      babl_new_palette (format_name,
                         &private->babl_palette_rgb,
                         &private->babl_palette_rgba);
+
+      g_free (format_name);
     }
 
   gimp_palette_set_columns (private->palette, 16);



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