hbro-contrib 0.9.0.0 → 0.9.1.0
raw patch · 2 files changed
+23/−22 lines, 2 filesdep ~gtkdep ~hbroPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: gtk, hbro
API changes (from Hackage documentation)
Files
- examples/hbro.hs +20/−19
- hbro-contrib.cabal +3/−3
examples/hbro.hs view
@@ -3,12 +3,13 @@ -- {{{ Imports import qualified Hbro.Bookmarks as Bookmarks+import Hbro.Boot import Hbro.Clipboard import Hbro.Config import Hbro.Core import qualified Hbro.Download as Download import Hbro.Gui-import Hbro.Hbro+--import Hbro.Hbro import qualified Hbro.History as History import Hbro.Keys import Hbro.Misc@@ -55,7 +56,7 @@ -- Main function, expected to call launchHbro. main :: IO ()-main = launchHbro myConfig+main = hbro myConfig -- {{{ Configuration structures -- Any field you don't override will @@ -75,7 +76,7 @@ mDownload = myDownloadHook, -- mFormResubmitted = myFormResubmitted, -- mFormSubmitted = myFormSubmitted,- mKeyPressed = manageSequentialKeys (defaultKeyHandler myKeys) >=> void . (printInLabel "keys"),+ mKeyPressed = emacsKeyHandler myKeys ["M-x"] >=> void . (printInLabel "keys"), -- mLinkClicked = myLinkClicked, mLoadFinished = myLoadFinished, -- mMIMEDisposition = myMIMEDisposition,@@ -191,23 +192,23 @@ -- {{{ Setup myStartUp :: K () myStartUp = do- -- Scroll position in status bar- setupScrollWidget =<< getObject castToLabel "scroll"+-- Scroll position in status bar+ setupScrollWidget =<< getObject castToLabel "scroll"++-- Zoom level in status bar+ setupZoomWidget =<< getObject castToLabel "zoom"+ +-- Load progress in status bar+ setupProgressWidget =<< getObject castToLabel "progress" - -- Zoom level in status bar- setupZoomWidget =<< getObject castToLabel "zoom"- - -- Load progress in status bar- setupProgressWidget =<< getObject castToLabel "progress"- - -- Current URI in status bar- setupURIWidget defaultURIColors defaultSecureURIColors =<< getObject castToLabel "uri"+-- Current URI in status bar+ setupURIWidget defaultURIColors defaultSecureURIColors =<< getObject castToLabel "uri"+ +-- Session manager+ --setupSession browser - -- Session manager- --setupSession browser- - -- Favicon- --_ <- on webView iconLoaded $ \uri -> do something+-- Favicon+ --_ <- on webView iconLoaded $ \uri -> do something - return ()+ return () -- }}}
hbro-contrib.cabal view
@@ -1,5 +1,5 @@ Name: hbro-contrib-Version: 0.9.0.0+Version: 0.9.1.0 Synopsis: Third-party extensions to hbro. -- Description: Homepage: https://github.com/k0ral/hbro-contrib/@@ -26,8 +26,8 @@ directory, filepath, glib,- gtk,- hbro >= 0.9.0.0,+ gtk >= 0.12.3,+ hbro >= 0.9.1.0, network, old-locale, pango,