keera-hails-reactive-gtk-0.0.3.5: src/Graphics/UI/Gtk/Reactive/ToolButton.hs
{-# LANGUAGE MultiParamTypeClasses #-}
-- | Publishes the main elements of a menuitem
module Graphics.UI.Gtk.Reactive.ToolButton where
import Control.Monad
import Graphics.UI.Gtk
import Data.ReactiveValue
toolButtonActivateField :: ToolButton -> ReactiveFieldActivatable IO
toolButtonActivateField b = mkActivatable op
where op f = void (b `onToolButtonClicked` f)
instance ReactiveValueActivatable IO ToolButton where
defaultActivation = toolButtonActivateField