[gimp/goat-invasion: 490/608] app: name the image's palette formats "-gimp-indexed-format-image_id"
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/goat-invasion: 490/608] app: name the image's palette formats "-gimp-indexed-format-image_id"
- Date: Fri, 27 Apr 2012 21:06:34 +0000 (UTC)
commit ca91915b581b9255dcbf274bbed08a85137b1678
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]