{"commit":"c55aa9198088198e83060276114fcb8087872734","old_file":"src\/Graphics\/UI\/FLTK\/LowLevel\/X.chs","new_file":"src\/Graphics\/UI\/FLTK\/LowLevel\/X.chs","old_contents":"{-# LANGUAGE CPP, FlexibleContexts #-}\n\nmodule Graphics.UI.FLTK.LowLevel.X (flcOpenDisplay, flcXid, openCallback) where\nimport Graphics.UI.FLTK.LowLevel.Fl_Types\nimport Graphics.UI.FLTK.LowLevel.Hierarchy\nimport Graphics.UI.FLTK.LowLevel.Dispatch\nimport Graphics.UI.FLTK.LowLevel.Utils\nimport Foreign.Ptr\nimport qualified Data.Text as T\n#include \"Fl_C.h\"\n#include \"xC.h\"\n\n{# fun flc_open_display as flcOpenDisplay {} -> `()' #}\n\n{# fun flc_xid as flcXid' {`Ptr ()'} -> `Ptr ()' #}\nflcXid :: (Parent a WindowBase) => Ref a -> IO (Maybe WindowHandle)\nflcXid win =\n withRef\n win\n (\n \\winPtr -> do\n res <- flcXid' winPtr\n if (res == nullPtr)\n then return Nothing\n else return (Just (WindowHandle res))\n )\n\n{# fun flc_open_callback as openCallback' { id `FunPtr OpenCallbackPrim' } -> `()' #}\n\nopenCallback :: Maybe OpenCallback -> IO ()\nopenCallback Nothing = openCallback' nullFunPtr\nopenCallback (Just cb) = do\n ptr <- mkOpenCallbackPtr $ \\cstr -> do\n txt <- cStringToText cstr\n cb txt\n openCallback' ptr\n","new_contents":"{-# LANGUAGE CPP, FlexibleContexts #-}\n\nmodule Graphics.UI.FLTK.LowLevel.X (flcOpenDisplay, flcXid, openCallback) where\nimport Graphics.UI.FLTK.LowLevel.Fl_Types\nimport Graphics.UI.FLTK.LowLevel.Hierarchy\nimport Graphics.UI.FLTK.LowLevel.Dispatch\nimport Graphics.UI.FLTK.LowLevel.Utils\nimport Foreign.Ptr\n#include \"Fl_C.h\"\n#include \"xC.h\"\n\n{# fun flc_open_display as flcOpenDisplay {} -> `()' #}\n\n{# fun flc_xid as flcXid' {`Ptr ()'} -> `Ptr ()' #}\nflcXid :: (Parent a WindowBase) => Ref a -> IO (Maybe WindowHandle)\nflcXid win =\n withRef\n win\n (\n \\winPtr -> do\n res <- flcXid' winPtr\n if (res == nullPtr)\n then return Nothing\n else return (Just (WindowHandle res))\n )\n\n{# fun flc_open_callback as openCallback' { id `FunPtr OpenCallbackPrim' } -> `()' #}\n\nopenCallback :: Maybe OpenCallback -> IO (Maybe (FunPtr OpenCallbackPrim))\nopenCallback Nothing = openCallback' nullFunPtr >> return Nothing\nopenCallback (Just cb) = do\n ptr <- mkOpenCallbackPtr $ \\cstr -> do\n txt <- cStringToText cstr\n cb txt\n openCallback' ptr\n return (Just ptr)\n","subject":"Return the open callback function pointer so it can be freed on the Haskell side.","message":"Return the open callback function pointer so it can be freed on the Haskell side.\n","lang":"C2hs Haskell","license":"mit","repos":"deech\/fltkhs,deech\/fltkhs,deech\/fltkhs"} {"commit":"028e3f540662412ae92ad5f6b4a9f20a8b3ce290","old_file":"Graphics\/UI\/Gtk\/WebKit\/DOM\/StorageInfo.chs","new_file":"Graphics\/UI\/Gtk\/WebKit\/DOM\/StorageInfo.chs","old_contents":"module Graphics.UI.Gtk.WebKit.DOM.StorageInfo\n (cTEMPORARY, cPERSISTENT, StorageInfo, StorageInfoClass,\n castToStorageInfo, gTypeStorageInfo, toStorageInfo)\n where\nimport System.Glib.FFI\nimport System.Glib.UTFString\nimport Control.Applicative\n{#import Graphics.UI.Gtk.WebKit.Types#}\nimport System.Glib.GError\nimport Graphics.UI.Gtk.WebKit.DOM.EventM\ncTEMPORARY = 0\ncPERSISTENT = 1\n","new_contents":"module Graphics.UI.Gtk.WebKit.DOM.StorageInfo\n (\n#if WEBKIT_CHECK_VERSION(1,10,0)\n cTEMPORARY, cPERSISTENT, StorageInfo, StorageInfoClass,\n castToStorageInfo, gTypeStorageInfo, toStorageInfo\n#endif\n ) where\nimport System.Glib.FFI\nimport System.Glib.UTFString\nimport Control.Applicative\n{#import Graphics.UI.Gtk.WebKit.Types#}\nimport System.Glib.GError\nimport Graphics.UI.Gtk.WebKit.DOM.EventM\ncTEMPORARY = 0\ncPERSISTENT = 1\n","subject":"Fix for older versions of webkit","message":"Fix for older versions of webkit\n","lang":"C2hs Haskell","license":"lgpl-2.1","repos":"gtk2hs\/webkit,gtk2hs\/webkit,gtk2hs\/webkit"}