Re: [gtk-list] Re: Bug: push_visual/push_colormap bug related to styles on certain  machines.
- From: Todd Dukes <tdukes ibmoto com>
 
- To: gtk-list redhat com, cdhwang sr hei co kr
 
- Subject: Re: [gtk-list] Re: Bug: push_visual/push_colormap bug related to styles on certain  machines.
 
- Date: Wed, 02 Jun 1999 10:14:26 -0500
 
Chi-Deok Hwang wrote:
> 
> Hi,
> With following patch, at least warning message disappeared.
> But I cannot be sure this is correct.
> 
> --- gtkstyle.c.orig     Wed Jun  2 10:20:53 1999
> +++ gtkstyle.c  Wed Jun  2 10:23:21 1999
> @@ -527,6 +527,11 @@
>      gtk_style_ref (new_style);
> 
>    new_style->attach_count++;
> +  if (style != new_style)
> +    {
> +      gtk_style_unref (style);
> +      gtk_style_ref (new_style);
> +    }
> 
>    return new_style;
>  }
> 
This works for me in my application also. Error messages are
gone and it behaves as I expect.
thank you very much,
Todd.
-- 
   | Todd Dukes                      E-MAIL:  tdukes@ibmoto.com |
   | Motorola Somerset                  Phone:   (512) 424-8008 |
   | 6200 Bridgepoint Parkway Building #4 MS OE70               |
   | Austin, Texas 78730                                        |
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]