+
+ public void afterChildren()
+ {
+ // things like GtkNotebook - we have to pack children after they have been created..
+ var cls = this.node.fqn().replace(".", "");
+
+ if (cls == "GtkNotebook") {
+ this.afterChildrenGtkNotebook();
+ }
+
+
+
+ }
+
+ public void afterChildrenGtkNotebook()
+ {
+ // we have a number of children..
+ // some are labels - this might need to be more complex...
+ // perhaps labels should be a special property labels[] of the notebook..
+ var labels = new Gee.ArrayList<NodeToGtk>();
+ var bodies = new Gee.ArrayList<NodeToGtk>();
+ for (var i = 0; i < this.children.size; i++) {
+ var cn = this.children.get(i).node.fqn().replace(".", "");
+ if (cn != "GtkLabel") {
+ bodies.add(this.children.get(i));
+ continue;
+ }
+ labels.add(this.children.get(i));
+ }
+ for (var i = 0; i < bodies.size; i++) {
+ var lbl = (i > (labels.size -1)) ? null : labels.get(i);
+
+ ((global::Gtk.Notebook)this.wrapped_object).append_page(
+ (global::Gtk.Notebook) bodies.get(i).wrapped_object,
+ lbl != null ? (global::Gtk.Notebook) lbl.wrapped_object : null
+ );
+
+
+ }
+
+
+ }
+
+