GTK: rename setBindings to setCallbacks
This commit is contained in:
parent
826ec65a68
commit
8d9a6d7fb0
@ -146,9 +146,9 @@ data MyView = MkMyView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
-- |Set hotkeys.
|
-- |Set callbacks, on hotkeys, events and stuff.
|
||||||
setBindings :: MyGUI -> MyView -> IO ()
|
setCallbacks :: MyGUI -> MyView -> IO ()
|
||||||
setBindings mygui myview = do
|
setCallbacks mygui myview = do
|
||||||
_ <- rootWin mygui `on` keyPressEvent $ tryEvent $ do
|
_ <- rootWin mygui `on` keyPressEvent $ tryEvent $ do
|
||||||
[Control] <- eventModifier
|
[Control] <- eventModifier
|
||||||
"q" <- fmap glibToString eventKeyName
|
"q" <- fmap glibToString eventKeyName
|
||||||
@ -513,7 +513,7 @@ startMainWindow = do
|
|||||||
constructTreeView mygui myview
|
constructTreeView mygui myview
|
||||||
|
|
||||||
-- set the bindings
|
-- set the bindings
|
||||||
setBindings mygui myview
|
setCallbacks mygui myview
|
||||||
|
|
||||||
-- add the treeview to the scroll container
|
-- add the treeview to the scroll container
|
||||||
containerAdd scroll treeView
|
containerAdd scroll treeView
|
||||||
|
Loading…
Reference in New Issue
Block a user