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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user