Complete.Org: Mailing Lists: Archives: freeciv-dev: April 1999:
[Freeciv-Dev] [patch] GUI-independant option code
Home

[Freeciv-Dev] [patch] GUI-independant option code

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [patch] GUI-independant option code
From: Sune Kirkeby <sune@xxxxxxxxxxxxx>
Date: Sat, 24 Apr 1999 17:05:13 +0200

Hi,

Here is a patch that takes the (client) option list out of the
gui-* directories, so new options only have to be added in
one place.  Note that new options still have to be added in
data/Freeciv, I guess it would be possible to be a little
clever about this and and modify the X resources (that is what
they are right?) at run or compile time, but one thing at a time.

The patch also moves the open/load/save option functions out
into client/options,c.  Also the patch changes the names of
the option*label and opiton*toggle resources in data/Freeciv
to be the same as in the code, this allows the Xaw GUI to
runtime get the resources names, instead of using some form
of hardcoded lookup table.  Does that cause troubles anywhere?

Sune Kirkeby

Attachment: freeciv-shared_options.diff.gz
Description: application/gunzip


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