projects
/
roobuilder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f863155
)
src/JsRender/Gtk.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 2 Feb 2024 08:10:33 +0000
(16:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 2 Feb 2024 08:10:33 +0000
(16:10 +0800)
src/JsRender/Gtk.vala
patch
|
blob
|
history
diff --git
a/src/JsRender/Gtk.vala
b/src/JsRender/Gtk.vala
index
1114fc5
..
4d79836
100644
(file)
--- a/
src/JsRender/Gtk.vala
+++ b/
src/JsRender/Gtk.vala
@@
-147,6
+147,18
@@
namespace JsRender {
this.updateUndo();
}
+
+ public loadTree(Json.Object obj, bjs_version = 2)
+ {
+ Node.uid_count = 0;
+ this.tree = new Node();
+ this.tree.loadFromJson(tree_base,bjs_version);
+ this.tree.version_changed.connect(() => {
+ this.updateUndo();
+ });
+
+ }
+