enabling dynamic menus on GTK

git-svn-id: svn://10.0.0.236/trunk@28981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
saari%netscape.com
1999-04-23 23:06:52 +00:00
parent fa64202bcd
commit 9df8934bbd

View File

@@ -1132,10 +1132,10 @@ nsWebShellWindow::OnEndDocumentLoad(nsIURL* aURL, PRInt32 aStatus)
nsCOMPtr<nsIDOMDocument> menubarDOMDoc(GetNamedDOMDoc(nsAutoString("this"))); // XXX "this" is a small kludge for code reused
if (menubarDOMDoc)
{
#ifdef XP_PC
DynamicLoadMenus(menubarDOMDoc, mWindow);
#else
#ifdef XP_MAC
LoadMenus(menubarDOMDoc, mWindow);
#else
DynamicLoadMenus(menubarDOMDoc, mWindow);
#endif
}
@@ -1357,10 +1357,10 @@ NS_IMETHODIMP nsWebShellWindow::OnConnectionsComplete()
///////////////////////////////
nsCOMPtr<nsIDOMDocument> menubarDOMDoc(GetNamedDOMDoc(nsAutoString("this"))); // XXX "this" is a small kludge for code reused
if (menubarDOMDoc) {
#ifdef XP_PC
DynamicLoadMenus(menubarDOMDoc, mWindow);
#else
#ifdef XP_MAC
LoadMenus(menubarDOMDoc, mWindow);
#else
DynamicLoadMenus(menubarDOMDoc, mWindow);
#endif
}