Libglade Initialisation

Name

Libglade Initialisation — Routines used to initialise libglade.

Synopsis


#include <glade/glade.h>


void        glade_init                      (void);
void        glade_load_module               (const char *module);

Description

These routines are used to initialise libglade, and to load addon modules that recognise extra widget sets. The glade_init routine must be called before any libglade routines are used, and the glade_load_module routine would be used to load extra modules.

Details

glade_init ()

void        glade_init                      (void);

Should be called before creating any GladeXML objects. Currently all it does is register all the widget building routines, so they can be found by widget name. In the future it may do some more initialisation work.


glade_load_module ()

void        glade_load_module               (const char *module);

This routine loads the shared library module, and calls the function glade_init_module. If the file doesn't exist, or it doesn't contain a glade_init_module function, the loading fails. The idea of this function is to allow new widget building routines to be loaded into libglade at runtime.

This would be a lot more useful if special tags in the XML file could trigger the loading of modules.

module : the shared library.