Hi Axel,
I have improve my previous patch of Multiline modules.
In my new patch, i modified two new file:
gtk/Graphics/UI/Gtk/Signals.chs
gtk/Graphics/UI/Gtk.hs.pp
In Signals.chs i add new signal:
connect_BOXED_STRING__NONE ::
GObjectClass obj => SignalName ->
(Ptr a' -> IO a) ->
ConnectAfter -> obj ->
(a -> String -> IO ()) ->
IO (ConnectId obj)
connect_BOXED_STRING__NONE signal boxedPre1 after obj user =
connectGeneric signal after obj action
where action :: Ptr GObject -> Ptr () -> CString -> IO ()
action _ box1 str2 =
failOnGError $
peekUTFString str2 >>= \str2' ->
boxedPre1 (castPtr box1) >>= \box1' ->
user box1' str2'
In Gtk.hs.pp, in line 292, i add `setScrollAdjustments` in hiding list of
Graphics.UI.Gtk.Multiline.TextView:
import Graphics.UI.Gtk.Multiline.TextView hiding (afterSetScrollAdjustments,
onSetScrollAdjustments, afterCopyClipboard, onCopyClipboard,
afterCutClipboard, onCutClipboard, afterInsertAtCursor,
onInsertAtCursor, afterPasteClipboard, onPasteClipboard,
afterToggleOverwrite, onToggleOverwrite, setScrollAdjustments)
-- here
But those two files never exist in source code, looks generate by c2hs,
so what file i really need modified?
Thanks,
-- Andy
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel