"closed" : [
"() => {",
" ",
- " if (_this.is_new) {",
- " \t this.el.set_modal(true);",
- "\tthis.el.set_relative_to(this.pointing_to);",
- " \t this.el.show_all();",
- " \t return;",
- " \t",
- " }",
- " if (_this.prop == null) {",
- " \treturn;",
- " \t}",
- " ",
- " var newtext = \"\";",
- " Gtk.TreeIter citer;",
- " GLib.Value gval;",
- " this.kflag.el.get_active_iter(out citer);",
- " this.dbmodel.el.get_value(citer, 0, out gval);",
- " ",
- " ",
- " _this.prop.name = this.kname.el.get_text().strip(); ",
- " _this.prop.rtype = this.ktype.el.get_text().strip(); ",
- " _this.prop.ptype = (JsRender.NodePropType) gval;",
- " ",
- " ",
+ "\tif (_this.is_new) {",
+ "\t\tthis.el.set_modal(true);",
+ "\t\tthis.el.set_relative_to(this.pointing_to);",
+ "\t\tthis.el.show_all();",
+ "\t\treturn;",
+ "",
+ "\t}",
+ "\tif (_this.prop == null) {",
+ "\t\treturn;",
+ "\t}",
+ "",
+ "\tvar newtext = \"\";",
+ "\tGtk.TreeIter citer;",
+ "\tGLib.Value gval;",
+ "\tthis.kflag.el.get_active_iter(out citer);",
+ "\tthis.dbmodel.el.get_value(citer, 0, out gval);",
+ "",
+ "",
+ "\t_this.prop.name = this.kname.el.get_text().strip(); ",
+ "\t_this.prop.rtype = this.ktype.el.get_text().strip(); ",
+ "\t_this.prop.ptype = (JsRender.NodePropType) gval;",
+ "",
+ "",
"\t_this.mainwindow.windowstate.left_props.reload();",
- " ",
- " ",
+ "",
+ "",
" ",
"} "
]
//listeners
this.el.closed.connect( () => {
- if (_this.is_new) {
- this.el.set_modal(true);
- this.el.set_relative_to(this.pointing_to);
- this.el.show_all();
- return;
-
- }
- if (_this.prop == null) {
- return;
- }
-
- var newtext = "";
- Gtk.TreeIter citer;
- GLib.Value gval;
- this.kflag.el.get_active_iter(out citer);
- this.dbmodel.el.get_value(citer, 0, out gval);
-
-
- _this.prop.name = this.kname.el.get_text().strip();
- _this.prop.rtype = this.ktype.el.get_text().strip();
- _this.prop.ptype = (JsRender.NodePropType) gval;
-
-
+ if (_this.is_new) {
+ this.el.set_modal(true);
+ this.el.set_relative_to(this.pointing_to);
+ this.el.show_all();
+ return;
+
+ }
+ if (_this.prop == null) {
+ return;
+ }
+
+ var newtext = "";
+ Gtk.TreeIter citer;
+ GLib.Value gval;
+ this.kflag.el.get_active_iter(out citer);
+ this.dbmodel.el.get_value(citer, 0, out gval);
+
+
+ _this.prop.name = this.kname.el.get_text().strip();
+ _this.prop.rtype = this.ktype.el.get_text().strip();
+ _this.prop.ptype = (JsRender.NodePropType) gval;
+
+
_this.mainwindow.windowstate.left_props.reload();
-
-
+
+
});
}