[Freeciv-Dev] Re: (PR#7446) center_on_something fails
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=7446 >
On Tue, Apr 13, 2004 at 08:49:48AM -0700, Jason Short wrote:
>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7446 >
>
> Raimar Falke wrote:
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=7446 >
> >
> > On Mon, Apr 12, 2004 at 04:29:28PM -0700, Jason Short wrote:
> >
> >><URL: http://rt.freeciv.org/Ticket/Display.html?id=7446 >
> >>
> >>Raimar Falke wrote:
> >>
> >>
> >>>init_mapcanvas_and_overview should stay. Please research what is the
> >>>real cause of this problem. No band-aids.
> >>
> >>Um, init_mapcanvas_and_overview is the cause of the problem.
> >>
> >>Before your patch that created init_mapcanvas_and_overview, the gtk2
> >>client had code like:
> >>
> >> gtk_widget_show(toplevel);
> >> overview.store = NULL;
> >>
> >>now it is
> >>
> >> gtk_widget_show(toplevel);
> >> init_mapcanvas_and_overview();
> >>
> >>in other words, the mapview was never "initted" before. Now, however,
> >>it is configured when the toplevel window is shown (line 1) and later
> >>"initted" (e.g. overwritten) in line 2.
> >
> >
> > So it should work if we switch the lines?
>
> I don't think so. Until the toplevel window is created we don't have a
> palette to create the canvas with.
gtk_widget_realize(toplevel) is called a screen above.
It works if you exchange the lines.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
-- Brian W. Kernighan
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, (continued)
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Raimar Falke, 2004/04/12
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/12
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/12
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Raimar Falke, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Raimar Falke, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Vasco Alexandre da Silva Costa, 2004/04/13
- [Freeciv-Dev] (PR#7446) center_on_something fails, Vasco Alexandre da Silva Costa, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Raimar Falke, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails,
Raimar Falke <=
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Raimar Falke, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Vasco Alexandre da Silva Costa, 2004/04/13
- [Freeciv-Dev] Re: (PR#7446) center_on_something fails, Jason Short, 2004/04/13
|
|