<pre class="bz_comment_text" id="comment_text_1">this is the minimum function i have tested , it removes panels and create a new one adding systemtray.
<br>if you have already the systemtray on your old panels you get the crash if you have not you can't get the crash<br>it seems panels are removed but the systemtray is still alive ....<br><br><br><br> ////////function remove in case of error of first remove :S
function remove()
{
for (i in panelIds) {
panelById(panelIds[i]).remove()
}
}
//////////////////////////////////////////////////////////
/////function remove standard///////////////////////////////
function RemoveOldPanels()
{
for (i in panelIds) {
// panelById(panelIds[i]).remove()
p = panelById(panelIds[i]);
if (typeof p === "undefined") {
print("E: Couldn't find first panel");
remove() //load the remove function in case of problems
}
else {
panelById(panelIds[i]).remove()
}
}
}
RemoveOldPanels() //load the function
//////////////////////////////////////////////////////////
//start another function to create panels layout
function gnome2(){
var panel = new Panel
if (panelIds.length == 1) {
// panel.location = 'bottom'
panel.location = 'top'
}
panel.addWidget("systemtray")
}
gnome2()</pre><br><br><div class="gmail_quote">2011/10/28 Nowardev-Team <span dir="ltr"><<a href="mailto:nowardev@gmail.com">nowardev@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><pre><br></pre><pre><br></pre><br><div class="gmail_quote"><div class="im">2011/10/27 Aaron J. Seigo <span dir="ltr"><<a href="mailto:aseigo@kde.org" target="_blank">aseigo@kde.org</a>></span><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Thursday, October 27, 2011 20:15:04 Nowardev-Team wrote:<br>
</div><div class="im"><div>> it seems the length of the javascript is the key to get the crash if you<br>
> have already panels ...<br>
<br>
</div>this is they key point, and it is due to having a system tray around and then<br>
creating another one. :/<br>
<div><div></div><div><br></div></div></div></blockquote><div><br></div>mmm this provide to remove old panels .... so basically it should remove all panels and then.... create the new one...so it should not be a systemtray around <div>
<br></div><div><pre>function remove()
{
for (i in panelIds) {
panelById(panelIds[i]).remove()
}
}
//////////////////////////////////////////////////////////
/////function remove standard///////////////////////////////
function RemoveOldPanels()
{
for (i in panelIds) {
// panelById(panelIds[i]).remove()
p = panelById(panelIds[i]);
if (typeof p === "undefined") {
print("E: Couldn't find first panel");
remove() //load the remove function in case of problems
}
else {
panelById(panelIds[i]).remove()
}
}
}</pre></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div> </div></div></blockquote></div></div>
</blockquote></div><br>