Skip to content

Commit

Permalink
Force types for DBus.signal
Browse files Browse the repository at this point in the history
Fixes alexkay#10.
  • Loading branch information
nylen committed Sep 6, 2014
1 parent 677b5c2 commit 8a80ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmonad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ getWellKnownName dbus = do
D.requestName dbus (D.busName_ "org.xmonad.Log")
[D.nameAllowReplacement, D.nameReplaceExisting, D.nameDoNotQueue]
return ()

dbusOutput :: D.Client -> String -> IO ()
dbusOutput dbus str = do
let signal = (D.signal "/org/xmonad/Log" "org.xmonad.Log" "Update") {
let signal = (D.signal (D.objectPath_ "/org/xmonad/Log") (D.interfaceName_ "org.xmonad.Log") (D.memberName_ "Update")) {
D.signalBody = [D.toVariant ("<b>" ++ (UTF8.decodeString str) ++ "</b>")]
}
D.emit dbus signal
Expand Down

0 comments on commit 8a80ee9

Please sign in to comment.