OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

uiml-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Public Comment


Comment from: kris.luyten@luc.ac.be

The renderer fails on trying to create a parameterless constructor, andas a result for this exception search for an appropriate set ofparameters to pass to the constructor of the widget being rendered. Thisis when the "id="constructor"" is being used. The vocabulary specifies:<d-class id="Label" used-in-tag="part" maps-type="class"maps-to="Gtk.Label">...<d-property id="constructor" maps-type="constructor"maps-to="Gtk.Label"> <d-param id="text" type="System.String"/></d-property></d-class>Notice the parameter id is the same as a property id in the same class:<d-property id="text" maps-type="setMethod" maps-to="Text">  <d-param type="System.String"/></d-property>The renderer will look whether the property "text" is defined in theUIML spec and use this as a parameter.The relevant code can be seen at:Rendering/GTKsharp/GtkRenderer.cs -> in the first "try-catch block" of "private Widget Render(Part uiPart,Style uiStyle)" and in "private Widget CreateWithParams(Type classType,Part uiPart, Style uiStyle)"2) A link to the autoconnect function provided in libGlade:In C#:http://www.go-mono.com:8080/monodoc.ashx?link=m:Glade.XML.Autoconnect(System.Object)(There is an error in this doc page, the word static has to removed fromthe remarks section)In C:http://developer.gnome.org/doc/API/2.0/libglade/gladexml.html#GLADE-XML-SIGNAL-AUTOCONNECThttp://developer.gnome.org/doc/API/2.0/libglade/libglade-notes.html#libglade-basics
http://developer.gnome.org/doc/API/2.0/libglade/libglade-notes.html#libglade-basics


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]