Re: [gtk-list] Re: Bad preview colormap refcounting in 970925



On 24 Oct 1997, Marius Vollmer wrote:

> Marius Vollmer <mvo@zagadka.ping.de> writes:
> 
> > I'll try to reproduce your problem.
> 
> Yep, it bombs, but only with high/true color.

Indeed, that is what I am using.

> gdk_colormap_get_system
> creates the colormap with a ref_count of zero, apparently.

This seems to do the trick, thank you.

> Here is a patch:
> 
> *** gdkcolor.c~	Fri Oct 24 09:21:50 1997
> --- gdkcolor.c	Fri Oct 24 17:09:35 1997
> ***************
> *** 169,174 ****
> --- 169,175 ----
>         private->visual = gdk_visual_get_system ();
>         private->private_val = FALSE;
>         private->next_color = 0;
> +       private->ref_count = 1;
>   
>         for (i = 0; i < 256; i++)
>   	{
> 
> I might actually have write access to the Gtk sources, so maybe I can
> commit this myself...

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




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