Bug 775041 - Make nsIWidget::IsEnabled return bool, r=roc, f=ms2ger

This commit is contained in:
Mark Capella
2012-07-23 01:19:08 -04:00
parent 536a51e537
commit 1bafbbea76
23 changed files with 51 additions and 65 deletions

View File

@@ -3869,13 +3869,12 @@ CheckForDisabledWindows()
windowList->GetNext(getter_AddRefs(supportsWindow));
nsCOMPtr<nsIBaseWindow> baseWin(do_QueryInterface(supportsWindow));
if (baseWin) {
bool aFlag;
nsCOMPtr<nsIWidget> widget;
baseWin->GetMainWidget(getter_AddRefs(widget));
if (widget && !widget->GetParent() &&
widget->IsVisible() &&
NS_SUCCEEDED(widget->IsEnabled(&aFlag)) && aFlag == false) {
nsIWidget * child = widget->GetFirstChild();
!widget->IsEnabled()) {
nsIWidget* child = widget->GetFirstChild();
bool enable = true;
while (child) {
nsWindowType aType;