@@ -20,6 +20,7 @@ import Events.HECs
2020import GUI.Types
2121import GUI.ViewerColours
2222import GUI.Timeline.CairoDrawing
23+ import Debug.Trace
2324
2425import Graphics.UI.Gtk hiding (rectangle )
2526import Graphics.Rendering.Cairo
@@ -321,10 +322,11 @@ scrollView surface old new hecs = do
321322-- and not only the newly exposed area. This is comparatively very cheap.
322323updateXScaleArea :: TimelineState -> Timestamp -> IO ()
323324updateXScaleArea TimelineState {.. } lastTx = do
325+ traceM " updateXScaleArea"
324326 -- TODO: get rid of this Just
325327 Just win <- widgetGetWindow timelineXScaleArea
326328 Rectangle _ _ width _ <- widgetGetAllocation timelineDrawingArea
327- Rectangle _ _ xScaleAreaHeight _ <- widgetGetAllocation timelineXScaleArea
329+ Rectangle _ _ _ xScaleAreaHeight <- widgetGetAllocation timelineXScaleArea
328330 scaleValue <- readIORef scaleIORef
329331 -- Snap the view to whole pixels, to avoid blurring.
330332 hadjValue0 <- adjustmentGetValue timelineAdj
@@ -342,6 +344,7 @@ renderYScaleArea :: ViewParameters -> HECs -> DrawingArea -> Render ()
342344renderYScaleArea ViewParameters {maxSpkValue, labelsMode, viewTraces,
343345 histogramHeight, minterval}
344346 hecs yScaleArea = do
347+ traceM " updateXScaleArea"
345348 let maxP = maxSparkPool hecs
346349 maxH = fromIntegral $ maxYHistogram hecs
347350 Rectangle _ _ xoffset _ <- liftIO $ widgetGetAllocation yScaleArea
0 commit comments