Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] (PR#7499) problems with detachable panes
Home

[Freeciv-Dev] (PR#7499) problems with detachable panes

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#7499) problems with detachable panes
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Tue, 24 Feb 2004 09:32:03 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7499 >

> [jdorje - Tue Feb 24 00:48:41 2004]:
> 
> Vasco Alexandre da Silva Costa wrote:
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=7499 >
> > 
> > 
> > On Mon, 23 Feb 2004, Jason Short wrote:
> > 
> > 
> >><URL: http://rt.freeciv.org/Ticket/Display.html?id=7499 >
> >>
> >>When I detach one of the detachable panes I get a gdk warning like:
> >>
> >>(civclient:13948): Gdk-CRITICAL **: file gdkdraw.c: line 370
> >>(gdk_draw_line): assertion `GDK_IS_DRAWABLE (drawable)' failed
> >>
> >>and if I'm unlucky freeciv will crash.
> >>
> >>jason
> > 
> > 
> > GTK+ 1.2 or 2.0?
> 
> gtk2 client.
> 
> jason

I think I know why the bug happens. The code used to draw directly to
'overview_canvas->window'. Now you copy the pointer to a struct, and use
that pointer. But what if the pointer value in the original
'overview_canvas' was changed uh? Yep. Boom!

I'm working on a fix.



[Prev in Thread] Current Thread [Next in Thread]