[crossfire] Crossfire Gtk Client compiled against Gtk 2.0

Veli-Matti Valtonen maligor at gmail.com
Tue Nov 1 03:42:26 CST 2005


The patch included adds a --enable-cfgtk2 option to configure, that's  
disabled by default. It's based on the Windows gtk 2.0 client changes  
made to the gcfclient and is quite simple. Since it changes some of  
the #ifdef WIN32 to CFGTK2 the windows project files will also need  
to be changed accordingly, also the patch doesn't include a  
'configure' since it makes patches look friggen ugly so automake is  
needed to recreate it.

The configure.in changes also have some smmall issues:
     - It reruns PKG_CHECK_MODULES macro that's already been run for  
gtkv2 (I didn't want to restructure that part)
     - defining --enable-cfgtk2  will cause a configure failure if  
GTK 2.0 is not found, it doesn't fall back (a non-issue really)
     - it defines -DGTK_WINDOW_DIALOG=GTK_WINDOW_TOPLEVEL as a  
compiler flag, instead of using CFGTK2 in the source files (Actually  
I've never tried redefining macroes as compiler flags before but  
apparently it works)
     - the use of GTK_ENABLE_BROKEN isn't all that beautiful but  
would require some major work on the multiline text widgets, this is  
also used on the windows client

The patch has only been tested on Debian sid amd64 setup and SDL  
didn't seem to work, rather strangely you need to disable it in the  
game configuration files of the game or it'll result in a crash even  
if SDL isn't compiled against it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cf-gtk2.patch
Type: application/octet-stream
Size: 3446 bytes
Desc: not available
Url : 
     http://shadowknight.real-time.com/pipermail/crossfire/attachments/20051101/b94493ff/cf-gtk2.obj
     
    


More information about the crossfire mailing list