From a92e35fbe77373d9d7fb69ed2f19ac0dc7315307 Mon Sep 17 00:00:00 2001 From: spider Date: Wed, 20 May 1998 21:01:38 +0000 Subject: [PATCH] Misc Unix stuff git-svn-id: svn://10.0.0.236/trunk@2049 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/shell/src/nsShellInstance.cpp | 2 +- mozilla/shell/src/unix/main.cpp | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/mozilla/shell/src/nsShellInstance.cpp b/mozilla/shell/src/nsShellInstance.cpp index e72f0d476fc..f89428d2ecb 100644 --- a/mozilla/shell/src/nsShellInstance.cpp +++ b/mozilla/shell/src/nsShellInstance.cpp @@ -193,7 +193,7 @@ nsIWidget * nsShellInstance::CreateApplicationWindow(const nsRect &aRect, mApplicationWindow->Create((nsIWidget*)NULL, aRect, aHandleEventFunction, - nsnull, nsnull, GetNativeInstance()); + nsnull, nsnull, (nsWidgetInitData *) GetNativeInstance()); return (mApplicationWindow); } diff --git a/mozilla/shell/src/unix/main.cpp b/mozilla/shell/src/unix/main.cpp index 03c924760a7..04947bfcddd 100644 --- a/mozilla/shell/src/unix/main.cpp +++ b/mozilla/shell/src/unix/main.cpp @@ -19,8 +19,13 @@ #include "nsRepository.h" #include "nsShellInstance.h" #include "nsApplicationManager.h" +#include "nsGfxCIID.h" -#include +#include "Xm/Xm.h" +#include "Xm/MainW.h" +#include "Xm/Frame.h" +#include "Xm/XmStrDefs.h" +#include "Xm/DrawingA.h" #define SHELL_DLL "libshell.so" @@ -43,6 +48,8 @@ void main(int argc, char **argv) topLevel = XtVaAppInitialize(&app_context, "Shell", NULL, 0, &argc, argv, NULL, NULL); + + // Let get a ShellInstance for this Application instance NSRepository::RegisterFactory(kCShellInstanceIID, SHELL_DLL, PR_FALSE, PR_FALSE);