lablgtk

Function applied to too many arguments in lablgtk

可紊 提交于 2019-12-11 09:39:48
问题 I need some help understanding why the following code will not compile. I am attempting to place a GSourceView2 inside a vertical box in lablgtk. I've adapted the code from this Ocaml article open GMain open GdkKeysyms let locale = GtkMain.Main.init () let main () = let window = GWindow.window ~width:320 ~height:240 ~title:"Simple lablgtk program" () in let vbox = GPack.vbox ~packing:window#add () in window#connect#destroy ~callback:Main.quit; (* Sourceview *) let _ = new GSourceView2.source