src/Builder4/EditProject.vala
"| string getValue" : [
"() {",
"\tvar m = (Gtk.StringList) this.el.model;",
- "\treturn this.el.selected == Gtk.INVALID_LIST_POSITION ?",
+ "\tvar str = this.el.selected == Gtk.INVALID_LIST_POSITION ?",
"\t\t\t \"\" : m.get_string(this.el.selected);",
+ "\t\t\t ",
+ " \tvar ar = str.split(\" \");",
+ " \treturn ar[0];",
"\t",
"}"
],
// user defined functions
public string getValue () {
var m = (Gtk.StringList) this.el.model;
- return this.el.selected == Gtk.INVALID_LIST_POSITION ?
+ var str = this.el.selected == Gtk.INVALID_LIST_POSITION ?
"" : m.get_string(this.el.selected);
+
+ var ar = str.split(" ");
+ return ar[0];
}
public void setValue (string val) {