зеркало из https://github.com/mozilla/gecko-dev.git
compiles now.
This commit is contained in:
Родитель
c3b738f872
Коммит
b92483c12d
|
@ -29,17 +29,17 @@ void RunPump(void* arg)
|
|||
// constructor
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
int nsToolkitErrorHandler (Display * mydisplay, XErrorEvent * myerr)
|
||||
{
|
||||
char msg[80] ;
|
||||
//int nsToolkitErrorHandler (Display * mydisplay, XErrorEvent * myerr)
|
||||
//{
|
||||
// char msg[80] ;
|
||||
|
||||
XGetErrorText (mydisplay, myerr->error_code, msg, 80) ;
|
||||
fprintf (stderr, "-------------------------------------\n");
|
||||
fprintf (stderr, "Error code %s\n", msg) ;
|
||||
fprintf (stderr, "-------------------------------------\n");
|
||||
// XGetErrorText (mydisplay, myerr->error_code, msg, 80) ;
|
||||
// fprintf (stderr, "-------------------------------------\n");
|
||||
// fprintf (stderr, "Error code %s\n", msg) ;
|
||||
// fprintf (stderr, "-------------------------------------\n");
|
||||
//exit() ;
|
||||
return 0;
|
||||
}
|
||||
// return 0;
|
||||
//}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
@ -50,7 +50,7 @@ int nsToolkitErrorHandler (Display * mydisplay, XErrorEvent * myerr)
|
|||
nsToolkit::nsToolkit()
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
XSetErrorHandler(nsToolkitErrorHandler);
|
||||
/* XSetErrorHandler(nsToolkitErrorHandler); */
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
@ -87,7 +87,7 @@ void nsToolkit::SetSharedGC(GdkGC aGC)
|
|||
mSharedGC = aGC;
|
||||
}
|
||||
|
||||
GC nsToolkit::GetSharedGC()
|
||||
GdkGC nsToolkit::GetSharedGC()
|
||||
{
|
||||
return (mSharedGC);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче