Skip to content

Commit

Permalink
Remove use of deprecated onSwitchPage
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuuzetsu committed Oct 12, 2014
1 parent d2348ad commit 59fca4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yi/src/library/Yi/UI/Pango/Layouts.hs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ simpleNotebookSet sn ts = do

-- | The 'onSwitchPage' callback
simpleNotebookOnSwitchPage :: SimpleNotebook -> (Int -> IO ()) -> IO ()
simpleNotebookOnSwitchPage sn cb = void $ onSwitchPage (snMainWidget sn) cb
simpleNotebookOnSwitchPage sn = void . (snMainWidget sn `on` switchPage)


------------------- Utils
Expand Down

0 comments on commit 59fca4b

Please sign in to comment.