Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2446)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2447)
@@ -1,13 +1,23 @@
                                                  -*-*- END OF LINE -*-*-
+  2003/10/31: Thomas Bretz
+
+   * mars.cc:
+     - change TGApllication back to TApplication (TGApplication doesn't
+       load the TVirtualPad plugin by default) DISPLAY must be set
+       manually if it is not set.
+
+
+
   2003/10/30: Antonio Stamerra
 
-  * manalysis/MMcTriggerLvl2.[h,cc]
-    - Added method CalcTriggerPattern to check which x-NN compact
-      pattern the event satisfies. The variable member fTriggerPattern 
-      contains the number x (x=3,4,5,6,7). 
-    - Inline function GetTriggerPattern added.
-
-  * manalysis/MMcTriggerLvl2Calc.cc
-    - Added call to the MMcTriggerLvl2::CalcTriggerPattern in Process().
+   * manalysis/MMcTriggerLvl2.[h,cc]
+     - Added method CalcTriggerPattern to check which x-NN compact
+       pattern the event satisfies. The variable member fTriggerPattern 
+       contains the number x (x=3,4,5,6,7). 
+     - Inline function GetTriggerPattern added.
+
+   * manalysis/MMcTriggerLvl2Calc.cc
+     - Added call to the MMcTriggerLvl2::CalcTriggerPattern in Process().
+
 
 
Index: trunk/MagicSoft/Mars/mars.cc
===================================================================
--- trunk/MagicSoft/Mars/mars.cc	(revision 2446)
+++ trunk/MagicSoft/Mars/mars.cc	(revision 2447)
@@ -1,4 +1,4 @@
 #include <TROOT.h>
-#include <TGApplication.h>
+#include <TApplication.h>
 
 #include "MAGIC.h"
@@ -59,7 +59,15 @@
     StartUpMessage();
 
-    TGApplication app("MarsApp", &argc, argv);
-    if (gROOT->IsBatch())
+    TApplication app("MarsApp", &argc, argv);
+    if (gROOT->IsBatch() || !gClient)
+    {
+        gLog << "Bombing... maybe your DISPLAY variable is not set correctly!" << endl;
+        return 1;
+    }
+    /*
+     TGApplication app("MarsApp", &argc, argv);
+     if (gROOT->IsBatch())
         gROOT->SetBatch(kFALSE);
+     */
 
     //
