bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] File load/save in latest cvs linux


From: Ingo Macherius
Subject: Re: [Bug-gnubg] File load/save in latest cvs linux
Date: Fri, 04 Mar 2005 18:19:53 +0100

From:   anthon
Subject:        [Bug-gnubg] File load/save in latest cvs linux
Date:   Wed, 2 Mar 2005 14:55:34 +0100 (CET)
User-agent:     SquirrelMail/1.5.0

Anthon,

[... a number of issues with 2.6 file requesters here ...]

thanks for your bug report. The file requester support using the new GTK 2.4 
and 2.6 library functions is work in progress and obviously needs some fixes 
still. When you want to build a stable gnubg against 2.4 or better libs from 
current CVS, it is best to disable the new features until they matured.

Look into the file "gtkgame.c" for this lines

[...]
extern void GTKFileCommand( char *szPrompt, char *szDefault, char *szCommand,
                       char *szPath, filedialogtype fdt, pathformat pathId ) {

  char *pch;

#if GTK_CHECK_VERSION(2,4,0)
  if (fdt == FDT_NONE_OPEN || fdt == FDT_NONE_SAVE) {
    GTKFileCommand24(szPrompt, szDefault, szCommand, szPath, fdt, pathId);
    return;
  }
#endif
[...]

To revert to the normal, well tested GTK 1.3 file requesters, you just need to 
disable the conditional #ifdef block which by default is branching into the new 
"GTKFileCommand24" routine. This would be a simple fix:

#if 0 && GTK_CHECK_VERSION(2,4,0)

Nothing else needs to be changed. After you recompile,you will have a version 
using the old, but stable file requester routines in GtkFileCommand(...).

Ingo

__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201





reply via email to

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