manpagez: man pages & more
html files: libglade
Home | html | info | man

Libglade Initialisation

Libglade Initialisation — Routines used to initialise libglade.

Synopsis


#include <glade/glade-init.h>

void                glade_init                          (void);
void                glade_require                       (const gchar *library);
void                glade_provide                       (const gchar *library);

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);

It used to be necessary to call glade_init() before creating GladeXML objects. This is now no longer the case, as libglade will be initialised on demand now. Calling glade_init() manually will not cause any problems though.


glade_require ()

void                glade_require                       (const gchar *library);

Ensure that a required library is available. If it is not already available, libglade will attempt to dynamically load a module that contains the handlers for that library.

library :

the required library

glade_provide ()

void                glade_provide                       (const gchar *library);

This function should be called by a module to assert that it provides wrappers for a particular library. This should be called by the register_widgets() function of a libglade module so that it isn't loaded twice, for instance.

library :

the provided library
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.