"notify[\"selected\"]" : [
"() => {",
"\tif (this.el.selected == Gtk.INVALID_LIST_POSITION) {",
- "\t\tif (_this.iconsel.el.selected == Gtk.INVALID_LIST_POSITION) {",
- "\t\t\t_this.btn_delfile.el.hide();",
- "\t\t}",
+ "\t\t",
"\t\treturn;",
"\t}",
"\t",
"\tvar tr = (Gtk.TreeListRow)_this.treeselmodel.el.selected_item;",
"\tGLib.debug(\"SELECTED = %s\", tr.item.get_type().name());",
"\tvar f = (JsRender.JsRender) tr.item;",
- "\tif (f.xtype == \"Dir\") {",
- "\t\t_this.btn_delfile.el.hide();\t",
- "\t} else {",
- "\t\t_this.btn_delfile.el.show();",
- "\t}",
- "",
- "\t_this.iconsel.el.selected = Gtk.INVALID_LIST_POSITION;",
- "",
+ "\t ",
+ " ",
"",
"}",
" ",
//listeners
this.el.notify["selected"].connect( () => {
if (this.el.selected == Gtk.INVALID_LIST_POSITION) {
- if (_this.iconsel.el.selected == Gtk.INVALID_LIST_POSITION) {
- _this.btn_delfile.el.hide();
- }
+
return;
}
var tr = (Gtk.TreeListRow)_this.treeselmodel.el.selected_item;
GLib.debug("SELECTED = %s", tr.item.get_type().name());
var f = (JsRender.JsRender) tr.item;
- if (f.xtype == "Dir") {
- _this.btn_delfile.el.hide();
- } else {
- _this.btn_delfile.el.show();
- }
-
- _this.iconsel.el.selected = Gtk.INVALID_LIST_POSITION;
-
+
+
});
}