On Oct 3, 2009, at 21:36, Andy Stewart wrote:

> 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'

Signals.chs is indeed generated. You just add the type  
NONE:BOXED,STRING to tools/callbackGen/marshall.list

> 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


Gtk.hs.pp does exist. Are you sure you didn't edit Gtk.hs?
BTW if you add a new signal and some other widget has the same signal  
name, then we should find a new name for the signal. The goal is that  
you can import Graphics.UI.Gtk and have all the names of Gtk2Hs in  
scope. Thus, if setScrollAdjustments is a signal in any other widget,  
you should rename it to setTextViewScrollAdjustments .

Cheers,
Axel.


------------------------------------------------------------------------------
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
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to