зеркало из https://github.com/mozilla/pjs.git
remove GetBasURL call
This commit is contained in:
Родитель
956b64b46d
Коммит
e17242fed5
|
@ -25,7 +25,7 @@
|
|||
|
||||
class nsMotifViewer : public nsViewer {
|
||||
virtual void AddMenu(nsIWidget* aMainWindow);
|
||||
virtual char* GetBaseURL();
|
||||
//virtual char* GetBaseURL();
|
||||
};
|
||||
|
||||
//--------------------------------------------------------
|
||||
|
@ -68,6 +68,7 @@ void nsMotifViewer::AddMenu(nsIWidget* aMainWindow)
|
|||
CreateViewerMenus(XtParent((Widget)aMainWindow->GetNativeData(NS_NATIVE_WIDGET)), MenuProc);
|
||||
}
|
||||
|
||||
/*
|
||||
char* nsMotifViewer::GetBaseURL()
|
||||
{
|
||||
static char* protocol = "file:///";
|
||||
|
@ -92,5 +93,5 @@ char* nsMotifViewer::GetBaseURL()
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -908,6 +908,7 @@ nsEventStatus nsViewer::DispatchMenuItem(PRUint32 aId)
|
|||
nsEventStatus nsViewer::ProcessMenu(PRUint32 aId, WindowData* wd)
|
||||
{
|
||||
nsEventStatus result = nsEventStatus_eIgnore;
|
||||
printf("Id %d\n", aId);
|
||||
switch(aId) {
|
||||
case VIEWER_EXIT:
|
||||
ExitViewer();
|
||||
|
@ -918,7 +919,9 @@ nsEventStatus nsViewer::ProcessMenu(PRUint32 aId, WindowData* wd)
|
|||
return nsEventStatus_eConsumeNoDefault;
|
||||
|
||||
case VIEWER_FILE_OPEN:
|
||||
printf("Before OpenHTMLFile\n");
|
||||
OpenHTMLFile(wd);
|
||||
printf("After OpenHTMLFile\n");
|
||||
break;
|
||||
|
||||
case VIEWER_EDIT_CUT:
|
||||
|
|
Загрузка…
Ссылка в новой задаче