Re: How to use GSourceView.source_view_signals
"Angela Zhu" <[email protected]>
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
Sorry for the confusions I made, I have resolved my problem. Thanks, Angela On Fri, Feb 22, 2008 at 11:59 AM, Angela Zhu <[email protected]> wrote: > 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 > > -- Regards, Angela Zhu ------------------------------------------ Dept. of CS, Rice University http://www.cs.rice.edu/~yz2/ ------------------------------------------ _______________________________________________ Lablgtk mailing list [email protected] http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk