2.5. Libglade 2.0 binding

(require 'libglade)
The libglade extension module provides a wrapping for James Henstridge's Libglade library, version 2.0. It depends upon the gobject and gtk extensions.

procedure: (glade-xml-new filename (#:domain domain) (#:root root))

Reads the Glade XML file filename, constructing the widget tree. The optional keyword arguments domain and root are passed through to the underlying C function, glade_xml_new; if they are omitted, NULL is passed in their place.

procedure: (glade-xml-new-from-memory bv-or-string (#:domain domain) (#:root root))

As for glade-xml-new, except instead of reading XML from a file, reads XML from a byte-vector or string (bv-or-string). Delegates to the C function glade_xml_new_from_memory.

procedure: (glade-xml-construct xml filename (#:domain domain) (#:root root))

Fills in a newly-created GladeXML widget, xml, with information from the Glade XML file filename, as for glade-xml-new. Delegates to the C function glade_xml_construct.

procedure: (glade-xml-signal-autoconnect xml handlers-alist)

Connects handlers named in the GladeXML widget xml to the Scheme functions passed in in handlers-alist. handlers-alist should be an association list, suitable for use with assoc, which maps strings (the names of the handlers as specified in the original XML) to Scheme functions of appropriate arity. Delegates to the C function glade_xml_signal_autoconnect_full.

procedure: (glade-xml-get-widget xml name)

Retrieve a named subwidget from a GladeXML widget by name. Delegates to the C function glade_xml_get_widget.

procedure: (glade-xml-get-widget-by-long-name xml name)

Retrieve a named subwidget from a GladeXML widget by long name. Delegates to the C function glade_xml_get_widget_by_long_name.