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



Marius Vollmer <mvo@zagadka.ping.de> writes:

> I'll try to reproduce your problem.

Yep, it bombs, but only with high/true color. gdk_colormap_get_system
creates the colormap with a ref_count of zero, apparently.

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...



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