projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f781b71
)
src/Palete/ValaSource.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 4 Mar 2015 07:59:33 +0000
(15:59 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 4 Mar 2015 07:59:33 +0000
(15:59 +0800)
src/Palete/ValaSource.vala
patch
|
blob
|
history
diff --git
a/src/Palete/ValaSource.vala
b/src/Palete/ValaSource.vala
index
89d14a0
..
cabaa51
100644
(file)
--- a/
src/Palete/ValaSource.vala
+++ b/
src/Palete/ValaSource.vala
@@
-71,8
+71,16
@@
namespace Palete {
string ptype,
string val)
{
string ptype,
string val)
{
-
+ Gee.HashMap<int,string> ret = new Gee.HashMap<int,string> ();
var hash = ptype == "listener" ? node.listeners : node.props;
var hash = ptype == "listener" ? node.listeners : node.props;
+
+ // untill we get a smarter renderer..
+ // we have some scenarios where changing the value does not work
+ if (prop == "* xns" || prop == "xtype") {
+ return ret;
+ }
+
+
var old = hash.get(prop);
var newval = "/*--VALACHECK-START--*/ " + val ;
var old = hash.get(prop);
var newval = "/*--VALACHECK-START--*/ " + val ;
@@
-88,7
+96,7
@@
namespace Palete {
this.checkString(tmpstring);
hash.set(prop, old);
// modify report
this.checkString(tmpstring);
hash.set(prop, old);
// modify report
- Gee.HashMap<int,string> ret = new Gee.HashMap<int,string> ();
+
var iter = this.report.line_errors.map_iterator();
while (iter.next()) {
// print("%d : %s\n",iter.get_key() - offset, iter.get_value());
var iter = this.report.line_errors.map_iterator();
while (iter.next()) {
// print("%d : %s\n",iter.get_key() - offset, iter.get_value());