Libglade Reference Manual
<<< Previous Page | Home | Up | Next Page >>>

# Adding GNOME Support

Libglade is starting to support the GNOME widgets (I am adding support as it is added to Glade, so that the file formats do not get out of sync). The GNOME support is done in a modular way, so that applications that do not use the GNOME support do not need to link with the GNOME libraries.

For this reason, you need to link with an extra library if you want GNOME support (add `-lglade-gnome` to the start of the library list), and call `glade_gnome_init` to intitialise libglade, instead of `glade_init`.

To get the link flags for GNOME support, once again you use the `libglade-config` script. To build the program, you would now use:

    cc -o testprogram testprogram.c `libglade-config --cflags --libs gnome`

If you use the AM_PATH_LIBGLADE autoconf macro, giving "gnome" as the third parameter will have the same effect. Note that libglade-config will give an error if GNOME support was not compiled, and GNOME support is asked for.

<<< Previous Page | Home | Up | Next Page >>>
Libglade Programming Notes | Internationalisation with Libglade