Make necko work with the viewer again

This commit is contained in:
kipp%netscape.com 1999-10-14 14:43:59 +00:00
parent eda1a1125e
commit 85ec47cc23

View File

@ -23,6 +23,7 @@
#include "nsGtkMenu.h"
#include "nsIServiceManager.h"
#include "nsIImageManager.h"
#include "nsIThread.h"
#include "plevent.h"
#include "prinit.h"
#include "prlog.h"
@ -176,6 +177,9 @@ int main(int argc, char **argv)
// code linked into the viewer.
putenv("MOZ_TOOLKIT=gtk");
rv = nsIThread::SetMainThread();
NS_ABORT_IF_FALSE(NS_SUCCEEDED(rv), "couldn't set main thread");
gTheApp = new nsNativeViewerApp();
gTheApp->Initialize(argc, argv);
gTheApp->Run();