Ticket #32: ThreadScope-explicit-cairo-imports.diff

File ThreadScope-explicit-cairo-imports.diff, 1.7 kB (added by Bob Ippolito, 8 months ago)

Fixes #32 by explicitly importing from Cairo

  • GUI/SaveAs.hs

    diff -rN -u old-ThreadScope/GUI/SaveAs.hs new-ThreadScope/GUI/SaveAs.hs
    old new  
    1010-- Imports for GTK 
    1111import Graphics.UI.Gtk 
    1212import Graphics.Rendering.Cairo 
     13  ( Render 
     14  , Operator(..) 
     15  , Format(..) 
     16  , rectangle 
     17  , getOperator 
     18  , setOperator 
     19  , fill 
     20  , translate 
     21  , liftIO 
     22  , withPDFSurface 
     23  , renderWith 
     24  , withImageSurface 
     25  , surfaceWriteToPNG 
     26  ) 
    1327 
    1428saveAs :: HECs -> ViewParameters -> Double -> DrawingArea 
    1529       -> (Int, Int, Render ()) 
  • GUI/Timeline/Render.hs

    diff -rN -u old-ThreadScope/GUI/Timeline/Render.hs new-ThreadScope/GUI/Timeline/Render.hs
    old new  
    2222 
    2323import Graphics.UI.Gtk 
    2424import Graphics.Rendering.Cairo 
     25  ( Render 
     26  , Content(..) 
     27  , Operator(..) 
     28  , Surface 
     29  , liftIO 
     30  , withTargetSurface 
     31  , createSimilarSurface 
     32  , renderWith 
     33  , surfaceFinish 
     34  , clip 
     35  , setSourceSurface 
     36  , setOperator 
     37  , paint 
     38  , setLineWidth 
     39  , moveTo 
     40  , lineTo 
     41  , stroke 
     42  , rectangle 
     43  , fill 
     44  , save 
     45  , scale 
     46  , translate 
     47  , restore 
     48  , setSourceRGBA 
     49  ) 
    2550 
    2651import Data.IORef 
    2752import Control.Monad 
  • GUI/Timeline.hs

    diff -rN -u old-ThreadScope/GUI/Timeline.hs new-ThreadScope/GUI/Timeline.hs
    old new  
    3434import Events.HECs 
    3535 
    3636import Graphics.UI.Gtk 
    37 import Graphics.Rendering.Cairo 
     37import Graphics.Rendering.Cairo ( liftIO ) 
    3838 
    3939import Data.IORef 
    4040import Control.Monad