},
"xtype" : "SignalListItemFactory"
},
+ {
+ "$ xns" : "Gtk",
+ "* prop" : "header_factory",
+ "listeners" : {
+ "bind" : [
+ "(listitem) => {",
+ "",
+ " \tvar lbl = (Gtk.Label) ((Gtk.ListItem)listitem).get_child(); ",
+ " \tvar np = (JsRender.NodeProp)((Gtk.ListItem)listitem).get_item();",
+ " ",
+ "\tGLib.debug(\"set label to %s\", np.ptype.to_name());",
+ "\tlbl.label = np.ptype.to_name();",
+ " \t ",
+ "}",
+ ""
+ ],
+ "setup" : [
+ "(listitem) => {",
+ "",
+ "\t ",
+ "\tvar label = new Gtk.Label(\"\");",
+ "\tlabel.xalign = 0;",
+ "\t ",
+ "\t((Gtk.ListItem)listitem).set_child(label);",
+ "\t((Gtk.ListItem)listitem).activatable = false;",
+ "\t",
+ "}",
+ ""
+ ]
+ },
+ "xtype" : "SignalListItemFactory"
+ },
{
"$ xns" : "Gtk",
"* prop" : "expression",
this.el.factory = child_3.el;
var child_4 = new Xcls_SignalListItemFactory986( _this );
this.el.list_factory = child_4.el;
+ var child_5 = new Xcls_SignalListItemFactory1282( _this );
+ this.el.header_factory = child_5.el;
}
// user defined functions
// user defined functions
}
+ public class Xcls_SignalListItemFactory1282 : Object
+ {
+ public Gtk.SignalListItemFactory el;
+ private Xcls_PopoverProperty _this;
+
+
+ // my vars (def)
+
+ // ctor
+ public Xcls_SignalListItemFactory1282(Xcls_PopoverProperty _owner )
+ {
+ _this = _owner;
+ this.el = new Gtk.SignalListItemFactory();
+
+ // my vars (dec)
+
+ // set gobject values
+
+ //listeners
+ this.el.setup.connect( (listitem) => {
+
+
+ var label = new Gtk.Label("");
+ label.xalign = 0;
+
+ ((Gtk.ListItem)listitem).set_child(label);
+ ((Gtk.ListItem)listitem).activatable = false;
+
+ });
+ this.el.bind.connect( (listitem) => {
+
+ var lbl = (Gtk.Label) ((Gtk.ListItem)listitem).get_child();
+ var np = (JsRender.NodeProp)((Gtk.ListItem)listitem).get_item();
+
+ GLib.debug("set label to %s", np.ptype.to_name());
+ lbl.label = np.ptype.to_name();
+
+ });
+ }
+
+ // user defined functions
+ }
+
public class Xcls_PropertyExpression1139 : Object
{
public Gtk.PropertyExpression el;