Index: trunk/FACT++/gui/FactGui.h
===================================================================
--- trunk/FACT++/gui/FactGui.h	(revision 18949)
+++ trunk/FACT++/gui/FactGui.h	(revision 18950)
@@ -945,5 +945,5 @@
 
     EVENT *fEventData;
-
+#ifdef HAVE_ROOT
     void DrawHorizontal(TH1 *hf, double xmax, TH1 &h, double scale)
     {
@@ -966,5 +966,5 @@
         }
     }
-
+#endif
     void DisplayEventData()
     {
@@ -2326,7 +2326,7 @@
 
     // ======================= Rate Scan ====================================
-
+#ifdef HAVE_ROOT
     TGraph fGraphRateScan[201];
-
+#endif
     void UpdateRateScan(uint32_t th, const float *rates)
     {
@@ -3201,7 +3201,7 @@
     }
 
+    void slot_RootEventProcessed(TObject *obj, unsigned int evt, TCanvas *canv)
+    {
 #ifdef HAVE_ROOT
-    void slot_RootEventProcessed(TObject *obj, unsigned int evt, TCanvas *canv)
-    {
         // kMousePressEvent       // TCanvas processed QEvent mousePressEvent
         // kMouseMoveEvent        // TCanvas processed QEvent mouseMoveEvent
@@ -3252,13 +3252,15 @@
         //gSystem->ProcessEvents();
         //QWhatsThis::display(tipText)
+#endif
     }
 
     void slot_RootUpdate()
     {
+#ifdef HAVE_ROOT
         gSystem->DispatchOneEvent(kFALSE);
         //gSystem->ProcessEvents();
         QTimer::singleShot(10, this, SLOT(slot_RootUpdate()));
-    }
 #endif
+    }
 
     void ChoosePatchThreshold(Camera &cam, int isw)
@@ -3535,4 +3537,5 @@
     }
 
+#ifdef HAVE_ROOT
     TGraph fGraphFtmTemp[4];
     TGraph fGraphFtmRate;
@@ -3540,5 +3543,4 @@
     TGraph fGraphBoardRate[40];
 
-#ifdef HAVE_ROOT
     TH1 *DrawTimeFrame(const char *ytitle)
     {
