summaryrefslogtreecommitdiffstats
path: root/lib/Phi/Bindings
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-07-19 14:50:04 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-07-19 14:50:04 +0200
commit227cf56f443d1ce45fce2e13a4daf442a29bc862 (patch)
tree0d53ff45098d54e49099aa45afc992ffc4c0fd63 /lib/Phi/Bindings
parentbc9f8e1fbc7e117ec5368d2d74742cdb2c5f22f7 (diff)
downloadphi-227cf56f443d1ce45fce2e13a4daf442a29bc862.tar
phi-227cf56f443d1ce45fce2e13a4daf442a29bc862.zip
Add native error handler for systray
Diffstat (limited to 'lib/Phi/Bindings')
-rw-r--r--lib/Phi/Bindings/SystrayErrorHandler.hsc17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Phi/Bindings/SystrayErrorHandler.hsc b/lib/Phi/Bindings/SystrayErrorHandler.hsc
new file mode 100644
index 0000000..73fedbb
--- /dev/null
+++ b/lib/Phi/Bindings/SystrayErrorHandler.hsc
@@ -0,0 +1,17 @@
+{-# LANGUAGE ForeignFunctionInterface #-}
+
+module Phi.Bindings.SystrayErrorHandler ( setSystrayErrorHandler
+ , getLastErrorWindow
+ ) where
+
+#include <SystrayErrorHandler.h>
+
+
+import Graphics.X11.Xlib
+
+
+foreign import ccall unsafe "SystrayErrorHandler.h setSystrayErrorHandler"
+ setSystrayErrorHandler :: IO ()
+
+foreign import ccall unsafe "SystrayErrorHandler.h getLastErrorWindow"
+ getLastErrorWindow :: IO Window