mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Make necko work with the viewer again
This commit is contained in:
parent
eda1a1125e
commit
85ec47cc23
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user