Re: [Vala] glade widget bindings




Thats what comes of rushing to post before lunch;
ignore that one, (although the principle remains)

Sorry guys.

Sam

Sam Liddicott wrote:
This first-cut xslt will convert a glade file to a private.h file which defines a struct to hold each widget, as well as named index of each widget into that struct, with a view to automatic widget binding when the glade is loaded.

It also C-quotes the xml too.

Vala might include the header file thus:
[CCode (cheader_filename="phoneui.glade.h")]

The file is generated like this:
xsltproc --path /usr/share/xml/libglade ../widgets.xslt phoneui.glade > phoneui.glade.h

Comments?

Sam
------------------------------------------------------------------------

_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]