mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
When allocating non-writeable colors, fill in the flags field of the
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.
This commit is contained in:
parent
fac76f9426
commit
e4c9e2ebca
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
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)
|
||||
|
@ -1,3 +1,13 @@
|
||||
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)
|
||||
|
@ -1,3 +1,13 @@
|
||||
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)
|
||||
|
@ -1,3 +1,13 @@
|
||||
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)
|
||||
|
@ -1,3 +1,13 @@
|
||||
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)
|
||||
|
@ -1,3 +1,13 @@
|
||||
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)
|
||||
|
@ -715,7 +715,7 @@ gdk_colormap_free_colors (GdkColormap *colormap,
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
@ -868,12 +868,18 @@ gdk_colormap_alloc_colors_private (GdkColormap *colormap,
|
||||
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++;
|
||||
|
Loading…
Reference in New Issue
Block a user