projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
318da5c
)
JsRender/NodeToGtk.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 15 Sep 2014 10:14:54 +0000
(18:14 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 15 Sep 2014 10:14:54 +0000
(18:14 +0800)
JsRender/NodeToGtk.vala
patch
|
blob
|
history
diff --git
a/JsRender/NodeToGtk.vala
b/JsRender/NodeToGtk.vala
index
0683aca
..
ca90616
100644
(file)
--- a/
JsRender/NodeToGtk.vala
+++ b/
JsRender/NodeToGtk.vala
@@
-173,10
+173,15
@@
public class JsRender.NodeToGtk : Object {
}
// let's test just setting expand to false...
- var cls_methods = parent_gir == null ? null : parent_gir.methods;
-
- this.node.props.has_key("* pack")
- &&
+ var cls_methods = parent_gir.methods;
+ if (cls_methods == null) {
+ return;
+ }
+
+ if (!this.node.props.has_key("* pack")) {
+ return;
+ }
+
cls_methods != null
&&
parent.get_type().is_a(typeof(global::Gtk.Container))) {