"gen_extended" : false,
"items" : [
{
- "# JsRender.NodeProp? prop" : "",
+ "# Gtk.PositionType position" : "Gtk.PositionType.RIGHT",
+ "# JsRender.Node node" : "",
+ "# JsRender.NodeProp? original_prop" : "null",
+ "# JsRender.NodeProp? prop" : "null",
+ "# Xcls_MainWindow mainwindow" : "null",
+ "# string key_type" : "",
+ "# string old_keyname" : "",
"$ xns" : "Gtk",
"* ctor" : "new Gtk.Popover()",
"@ void success" : "(Project.Project pr, JsRender.JsRender file)",
- "Gtk.PositionType position" : "Gtk.PositionType.RIGHT",
- "JsRender.Node node" : "",
- "Xcls_MainWindow mainwindow" : "null",
"bool autohide" : true,
"bool done" : false,
"bool is_new" : false,
"\t_this.prop = null; // skip checks..",
"\t_this.is_new = false;",
"\t_this.el.hide();",
- " ",
+ " \t_this.mainwindow.windowstate.left_props.changed();",
"\t_this.mainwindow.windowstate.left_props.view.editProp(prop);",
"",
"\t",
"\t\treturn;",
"",
"\t}",
+ "\tif (this.original_prop != null && !this.prop.equals(this.original_prop)) {",
+ "\t\t// this is convoluted..",
+ "\t\t_this.mainwindow.windowstate.left_props.changed(); ",
+ "\t}",
+ "\t",
"\t",
"}"
]
},
- "string key_type" : "",
- "string old_keyname" : "",
"xtype" : "Popover",
"| void show" : [
"(",
"\t ) ",
"{",
"\t",
- " ",
+ " this.original_prop = prop.dupe();",
"\tthis.is_new = is_new; ",
"\tvar pref = is_new ? \"Add \" : \"Modify \";",
"\tif (prop.ptype == JsRender.NodePropType.LISTENER) {",