+Sun Dec 8 21:22:46 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
+ When allocating non-writeable colors, fill in the flags
+ field of the XColor, and insert the returned color into
+ our color hash. (#100023, Naofumi Yasufuku)
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_free_colors):
+ Fix a typo (my fault) that slipped in in the last patch.
+
Sun Dec 8 20:32:23 2002 Owen Taylor <otaylor@redhat.com>
More fixes for GdkColormapX11 (#100023, Naofumi Yasufuku)
+Sun Dec 8 21:22:46 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
+ When allocating non-writeable colors, fill in the flags
+ field of the XColor, and insert the returned color into
+ our color hash. (#100023, Naofumi Yasufuku)
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_free_colors):
+ Fix a typo (my fault) that slipped in in the last patch.
+
Sun Dec 8 20:32:23 2002 Owen Taylor <otaylor@redhat.com>
More fixes for GdkColormapX11 (#100023, Naofumi Yasufuku)
+Sun Dec 8 21:22:46 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
+ When allocating non-writeable colors, fill in the flags
+ field of the XColor, and insert the returned color into
+ our color hash. (#100023, Naofumi Yasufuku)
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_free_colors):
+ Fix a typo (my fault) that slipped in in the last patch.
+
Sun Dec 8 20:32:23 2002 Owen Taylor <otaylor@redhat.com>
More fixes for GdkColormapX11 (#100023, Naofumi Yasufuku)
+Sun Dec 8 21:22:46 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
+ When allocating non-writeable colors, fill in the flags
+ field of the XColor, and insert the returned color into
+ our color hash. (#100023, Naofumi Yasufuku)
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_free_colors):
+ Fix a typo (my fault) that slipped in in the last patch.
+
Sun Dec 8 20:32:23 2002 Owen Taylor <otaylor@redhat.com>
More fixes for GdkColormapX11 (#100023, Naofumi Yasufuku)
+Sun Dec 8 21:22:46 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
+ When allocating non-writeable colors, fill in the flags
+ field of the XColor, and insert the returned color into
+ our color hash. (#100023, Naofumi Yasufuku)
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_free_colors):
+ Fix a typo (my fault) that slipped in in the last patch.
+
Sun Dec 8 20:32:23 2002 Owen Taylor <otaylor@redhat.com>
More fixes for GdkColormapX11 (#100023, Naofumi Yasufuku)
+Sun Dec 8 21:22:46 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private):
+ When allocating non-writeable colors, fill in the flags
+ field of the XColor, and insert the returned color into
+ our color hash. (#100023, Naofumi Yasufuku)
+
+ * gdk/x11/gdkcolor-x11.c (gdk_colormap_free_colors):
+ Fix a typo (my fault) that slipped in in the last patch.
+
Sun Dec 8 20:32:23 2002 Owen Taylor <otaylor@redhat.com>
More fixes for GdkColormapX11 (#100023, Naofumi Yasufuku)
}
}
- if (npixels_to_free && !private->private_val && !private->screen->closed)
+ if (npixels && !private->private_val && !private->screen->closed)
XFreeColors (GDK_SCREEN_XDISPLAY (private->screen), private->xcolormap,
pixels, npixels, 0);
store[nstore].blue = colors[i].blue;
store[nstore].green = colors[i].green;
store[nstore].pixel = index;
+ store[nstore].flags = DoRed | DoGreen | DoBlue;
nstore++;
success[i] = TRUE;
-
colors[i].pixel = index;
+
+ colormap->colors[i] = colors[i];
private->info[index].ref_count++;
+
+ g_hash_table_insert (private->hash,
+ &colormap->colors[index],
+ &colormap->colors[index]);
}
else
nremaining++;