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

This commit is contained in:
Michael Natterer
2012-04-11 21:51:33 +02:00
parent f888792a77
commit 7b46656f7d

View File

@ -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);