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

index b8ebea7..2372a71 100644 (file)
@@ -98,7 +98,7 @@ public class JsRender.NodeToGtk : Object {
                var cls_methods = cls_gir.methods;
 
                
-               if  (this.node.props.has_key("* pack")) {
+               if  (this.node.props.has_key("* pack") &&parent.get_type().is_a((typeof(global::Gtk.Container)) {
                        var pack = this.node.props.get("* pack").split(",");