DESCRIPTION

The g2c program converts a Glade XML tree to C source code.


USAGE
g2c <file.glade>

file.glade is any glade XML file.  Make sure to run g2c from the top-level
project directory (the directory containing file.glade).

There are currently no options for g2c.  Most options are actually given
in the XML file.


DEPENDENCIES
ctags (any version should work)
gnome-xml (libxml2)


WHAT FILES IT CREATES
The program outputs source to the <source_directory> specified in the Glade XML file.

Four files are created for each top level widget: 
	widgetname_gui.h
	widgetname_gui.c
	widgetname.h
	widgetname.c

An additional file is created for the project to house main(). This file
will be named <program_name>.c, where <program_name> is given as the 
project name for the glade project.

FILES REQUIRED FROM GLADE
Glade creates support.c/support.h files in the source directory.  g2c uses these
files for pixmap handling.  Future releases should remove this dependency.


THINGS THE USER HAS TO DO
You can access widgets using the "gui" member of the WidgetName struct (see widgetname.h).

Be sure to read the TODO file for specifics on what is currently supported.  Right now the
only unsupported widgets are Bonobo controls and Gnome-DB.  But these aren't even supported
in Glade source code generation, so this is not a high priority for many people.


OTHER NOTES
Right now all strings are made translatable, but I'll put in code to only use the _() macros
if <translate_strings> is set to TRUE. Next version, right?



Enjoy,

John Margaglione
john@margaglione.com


