bort wrote:I believe that GTK2 has backwards compatibility in some aspects. You may just have to grab the GTK1
gtk-config script and mod it to use gtk2.0-x11 libraries.

no, there's no backwards compatibility, at least for gcf.
I've done a fake gtk-config :
Code: Select all
#! /bin/sh
# --version gives pkg-config ver, not the gtk one
if [ "$1" = "--version" >/dev/null 2>&1 ]
then
opt="--modversion"
else
opt=$1
fi
pkg-config gtk+-2.0 $opt
chmod +x, check $PKG_CONFIG_PATH is well defined and ./configure will do it.
but then you get a lot of errors :
- undefined obsolete macros, but you can declare it
- wrong menbers of some structs, like no more 'font' in a GtkStyle
- function prototype who have changed ...
i can add or modify gtk windows, but for now i can't rewrite it in gtk2. it has to be done one day... but this week i'll install gtk1 'cause basic x11 client is too hard to use
