Re: How to use GSourceView.source_view_signals

"Angela Zhu" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
Hi,

Can anyone help me with how to use gSourceView.source_view_signal

According to
http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk/html/GSourceView.source_view_signals.html

If I want to use the undo method, what should I have in the following
~callback function?

------------------------------------------

let sview = GSourceView.source_view () in
 ...
 and edit_entries1 =
       [...;
        `I ("Copy",
           (fun () ->
              program1#buffer#copy_clipboard GMain.clipboard););
        `I ("Undo",
           (fun () ->
              ignore(sview#connect#undo ~callback:(fun () -> ()))))]
        (* NOW IT DOES NOTHING, what should I change here? *)
------------------------------------------


Thanks,
Angela

_______________________________________________
Lablgtk mailing list
[email protected]
http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.