зеркало из https://github.com/mozilla/gecko-dev.git
get progress meter working
This commit is contained in:
Родитель
16febf486b
Коммит
df2d5ddb2c
|
@ -384,6 +384,7 @@ Rights Reserved.
|
|||
<spring flex="100%"/>
|
||||
<progressmeter id="statusbar-icon" mode="normal" value="0" onclick="dumpProgress()">
|
||||
<observes element="Messenger:LoadingProgress" attribute="mode"/>
|
||||
<observes element="Messenger:LoadingProgress" attribute="value"/>
|
||||
<observes element="Messenger:Throbber" attribute="busy" onchange="onProgress()"/>
|
||||
</progressmeter>
|
||||
<spring flex="100%"/>
|
||||
|
|
|
@ -166,7 +166,7 @@ nsMsgStatusFeedback::ShowProgress(PRInt32 percentage)
|
|||
nsString strPercentage;
|
||||
|
||||
strPercentage.Append(percentage, 10);
|
||||
setAttribute( mWebShell, "Messenger:LoadingProgress", "busy", strPercentage);
|
||||
setAttribute( mWebShell, "Messenger:LoadingProgress", "value", strPercentage);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче