Glade projects running under win 32 

If you have made a correct install with the paths as set in the zipfile, you should have a number of sub-directories below a directory called 'Gtk4Win'.  These will include bin and dlls among others.  In the directory called editor, you will find copies of the four C files and the three headers produced by Glade and offered as the example program with the Linux installation.  This directory structure is set up so that the unmodified C files will compile and run using the 'Jam' make utility in the bin directory.  To get up and running, do the following:

1)  Add the bin and the dlls directory full paths to the DOS/WINDOWS PATH statement.  (The included file 'init.bat' will do this if you need it to, but only for the commandline session you are running - you may want to add the paths to the Path statement in Autoexec.bat).

2)  From the command line, working within the directory called 'Editor' run (execute) 'Jam'.  This will execute Jam using the makefile provided (this is called 'jamfile').  Your Editor should then compile and link.

The directory 'Work' contains a set of Glade files I made experimentally.  It does nothing useful, but might be worth looking at as a second example.  Any further directories you create at the same level for your own projects should be able to use copies of the same jamfile unmodified if you want.

Comments:

You can change the name of the base-directory, presently called Gtk4Win.  Nothing should depend on that.  There is a doc file for jam.  As is, I couldn't get linking to work, so my easy way out was to put the link action into my jamfile - it takes precedence over the inbuilt one.  If you want to see what is compiled into the Jam executable, look at jambase.old in the bin directory.

I have only included the three pixmaps actually used by the editor example.  The jamfile is used to define the location of the pixmaps directory to where I put it.

You will have to use Glade with Gnome additional widgets excluded - else it will be asking you for Gnome.h and it is not here.  Also, the special buttons available under Glade (the ones like 'close' with a little cross on it) are not available to you in the Windows port.  Simply avoid using them.  Otherwise, everything that works under Linux GTK+ ought to work under Windows and look very very similar!

Defining HAVE_CONFIG_H will not work with Glade C source produced under Linux unless you modify the C files, as Windows only uses uppercase filenames in the underlying DOS operating system.  Linux understands how to discern - and the Jam executable works in the way Linux would expect.  For this reason, I have defined CONFIG.H as an include to be passed to all files by the preprocessor.  This is again done in Jamfile.  The same arrangement ought to work for anything you make in Glade under Linux - you will need to add any additional C files you write to the jamfile (makefile) as it will only look for the four standard ones. (main, support, interface and callbacks).  Please feed back any problems to me.  Enjoy!

Barry Drake - b-drake@supanet.com
