On Mon, Apr 03, 2000 at 11:28:59AM +0100, Damon Chaplin wrote:
> Marcus Brinkmann wrote:
> > 
> > Hi,
> > 
> > when an (older?) glade file is loaded which does not set gnome support
> > explicitely to False, glae assumes a wrong default True, and saves it.
> > As a direct consequence, Glade can't reload the file if it is compiled
> > without gnome support.
> > 
> > I suggest to set the default in glade_project_load_options to False
> > if USE_GNOME is defined, but you might prefer some different solution,
> > depending on your upgrade strategy.
> 
> I think the project must have been pretty old. I think we should try
> to support Glade XML files back to version 0.5.0, but not worry too much
> about earlier versions. Glade still isn't at a 1.0 release, after all.

This is not only a backward compat problem, although it is triggered by it.
It is a decision you make when formalizing what a glade file should look
like.

Is the XML format you use standardized or documented? In this case it should
be pointed out that the Gnome Support tag must exist for glade to operate
properly, so other applications which might produce glade files will do the
right thing.

I agree that this is only a bug if the field is optional. It's your decision :)
But then it might be good to not set a default at all and produce an error
if the field is missing. However you look at it, the current behaviour is
contradictionary.

(Anyway, as this is really trivial to fix, it could be a good idea to follow
the motto "be strict in what you produce, but liberal in what you accept",
and set a good default instead producing an error message.)

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
[EMAIL PROTECTED],     [EMAIL PROTECTED]    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       [EMAIL PROTECTED]

+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to