Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: (PR#2455) dead functions in GUI interface
Home

[Freeciv-Dev] Re: (PR#2455) dead functions in GUI interface

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2455) dead functions in GUI interface
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Wed, 18 Dec 2002 18:34:31 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Wed, 2002-12-18 at 21:11, Jason Short via RT wrote:
> 
> [rfalke - Wed Dec 18 13:38:01 2002]:
>
> > > -void free_color_system(void);
> > 
> > This should stay. It can/should be called from common code.
> 
> Sounds good.

Actually this isn't as easy as it seems.

Only GTK and GTK-2.0 clients implement this function.  Most of the
others could use it, though.

But this function corresponds to init_color_system.  Currently both
functions are called in ui_main().  So, they should both instead be
called from main().  But this isn't easy under all GUIs since it changes
the order in which functions are called.  In GTK and GTK-2.0, I believe
it will mean moving some initialization code up into ui_init(), which is
otherwise empty.

jason




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