GtkBuilder object dependencies
- From: Element Green <element elementsofsound org>
- To: gtk-list gnome org
- Subject: GtkBuilder object dependencies
- Date: Sun, 22 Jan 2012 11:37:41 -0800
I'm currently porting my application Swami
(http://www.swamiproject.org) from using libglade to GtkBuilder. In
this application widgets are created on demand, for which I'm using
gtk_builder_add_objects_from_file(). One of the drawbacks of this
function though, seems to be that it does not support loading of
dependencies (GtkAdjustment, GtkModel, etc). I'd like to have the
dependencies automatically be loaded, rather than trying to keep a
list of object dependencies in sync with the XML file.
Do I need to resort to parsing the XML to determine dependencies at
runtime? Or does anyone know a way to handle this elegantly in GTK
currently? If not, perhaps it would be a good thing to add. Could be
handled with an additional function like
gtk_builder_add_objects_from_file() which automatically loads
dependencies or which calls a callback to resolve the dependency.
Thank you for any thoughts or information on this.
Best regards,
Element Green
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]