From 9a2a2ecd796aca8f0dda894db7fbae64b6da104f Mon Sep 17 00:00:00 2001 From: "reed@reedloden.com" Date: Wed, 14 Nov 2007 22:50:40 -0800 Subject: [PATCH] Bug 402839 - "Modal dialogs should use Linux's native icons" (part A) [p=ventnor.bugzilla@yahoo.com.au (Michael Ventnor) r+sr=biesi a1.9=schrep] --- embedding/components/windowwatcher/src/nsPromptService.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/embedding/components/windowwatcher/src/nsPromptService.cpp b/embedding/components/windowwatcher/src/nsPromptService.cpp index fca90445dec..d747362eb4a 100644 --- a/embedding/components/windowwatcher/src/nsPromptService.cpp +++ b/embedding/components/windowwatcher/src/nsPromptService.cpp @@ -58,6 +58,8 @@ static const char kSelectPromptURL[] = "chrome://global/content/selectDialog.xul static const char kQuestionIconClass[] = "question-icon"; static const char kAlertIconClass[] = "alert-icon"; static const char kWarningIconClass[] = "message-icon"; +// We include question-icon for backwards compatibility +static const char kAuthenticationIconClass[] = "authentication-icon question-icon"; #define kCommonDialogsProperties "chrome://global/locale/commonDialogs.properties" @@ -585,7 +587,7 @@ nsPromptService::PromptUsernameAndPassword(nsIDOMWindow *parent, block->SetString(eDialogTitle, dialogTitle); - NS_ConvertASCIItoUTF16 styleClass(kQuestionIconClass); + NS_ConvertASCIItoUTF16 styleClass(kAuthenticationIconClass); block->SetString(eIconClass, styleClass.get()); block->SetInt( eNumberEditfields, 2 ); if (*username) @@ -665,7 +667,7 @@ NS_IMETHODIMP nsPromptService::PromptPassword(nsIDOMWindow *parent, block->SetString(eDialogTitle, dialogTitle); nsString url; - NS_ConvertASCIItoUTF16 styleClass(kQuestionIconClass); + NS_ConvertASCIItoUTF16 styleClass(kAuthenticationIconClass); block->SetString(eIconClass, styleClass.get()); block->SetInt(eNumberEditfields, 1); block->SetInt(eEditField1Password, 1);