looks like bug?
When i call SetAttribute("disabled", "true"); for toolbarbutton text
label - is grey,
but image disappear and not set to .css:

.b_tbs_button_001971[disabled="true"]{
list-style-image:url("chrome://path/content/appr.gif")
!important;
}

xul:
.
.
.

<toolbox id="navigator-toolbox">
<toolbar toolbarname="TB" id="ID-toolbar"
context="toolbar-context-menu">
<hbox flex='1' pack='start'>
<toolbarbutton id="tbs_button_013465" label="Domain"
command="DomainQuery" disabled="false" class="b_tbs_button_001971"/>
</hbox>
.
.
.
</toolbar>
</toolbox>


i tested it from JS and from base thread - all works file.
It is not work if i do it from thread, created like this:
PR_CreateThread( PR_USER_THREAD, FuncForSetAttr, this,
PR_PRIORITY_NORMAL, PR_LOCAL_THREAD, PR_UNJOINABLE_THREAD, 0);

In FuncForSetAttr will be called SetAttribute("disabled", "true");.
As i say, if i do it from one thread or from test JS script(not from
new thread!) - all works fine.
In case of new thread - imgae is not set, but text label is dimmed.
And one more aspect: if i set mouse pointer on toolbar button - all
works fine from NEW(not base) thread.

Thanks beforehand!

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to