X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tools%2Fbuild_gtk_tree.js;h=0d4a9aae16bcad5f61b62db911287e556fb3a0d1;hb=92cbbf43c68d801671a22b71aa81e4640023ef94;hp=2ee61c083c56693ec9fdb4d0c2568dce98f288dd;hpb=d5e461182dd0accccefa59bd6b257b8f17544492;p=app.Builder.js diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index 2ee61c083..0d4a9aae1 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -338,13 +338,19 @@ right: if (!canTop(par)) { continue; } - + var duped = true; for(var dupe in usage) { - if (usage[par].join(',') == usage[dupe].join(',')) { - usage_left[par] = dupe; + if (usage[par].join(',') == usage[dupe].join(',') && + typeof(nusage[par]) != 'undefined') { + duped = true; + if (usage_left[dupe] == 'undefined') { + usage_left[dupe] = []; + } + usage_left[dupe].pushUnique(par); + break; } } - if (typeof(usage_left[par])) { + if (typeof(usage_left[par]) != 'undefined') { continue; } nusage[par] = usage[par]; @@ -355,7 +361,13 @@ right: print(JSON.stringify(methods['Gtk.Switch'],null,4)); - + var str = ''; + for(var par in usage) { + str.push('left'); + str.push(' ' + par); + if (typeof(usage_left[par]) != 'undefined') { + + } //print(JSON.stringify(implementations ,null,4)); /*