JsRender/NodeToGtk.vala
authorAlan Knowles <alan@roojs.com>
Mon, 15 Sep 2014 08:44:55 +0000 (16:44 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 15 Sep 2014 08:44:55 +0000 (16:44 +0800)
JsRender/NodeToGtk.vala

index ac4cd11..36e90be 100644 (file)
@@ -123,13 +123,25 @@ public class JsRender.NodeToGtk : Object {
                } else  if (!parent.get_type().is_a(typeof(global::Gtk.Buildable))) {
                        print("skipping pack parent:%s is not a buildable..\n", parent.get_type().name());
                        do_pack = false;
+               }
+
+               // at present we are setting the packing / fill / expand as
+               // arguments to pack_start etc...
+               
+               // let's test just setting expand to false...
+               
+               if  (this.node.props.has_key("* pack")) {
+                       var pack = this.node.props.get_value("* pack")
+
+
+                       
                }
                
                if (do_pack) {
                        ((global::Gtk.Buildable)parent).add_child(gtkbuilder, ret, null);
                }
                    
-
+               
                 
                if (this.node.items.size < 1) {
                        return ret;