*)
open Printf
+open Virt_ctrl_gettext.Gettext
let () =
(* Build the main window and wire up the buttons to the callback functions *)
Vc_mainwindow.make
- ~open_connection:Vc_connections.open_connection
~start_domain:Vc_domain_ops.start_domain
~pause_domain:Vc_domain_ops.pause_domain
~resume_domain:Vc_domain_ops.resume_domain
- ~shutdown_domain:Vc_domain_ops.shutdown_domain;
+ ~shutdown_domain:Vc_domain_ops.shutdown_domain
+ ~open_domain_details:Vc_domain_ops.open_domain_details;
(* Enter the Gtk main loop. *)
- GMain.main ()
+ GMain.main ();
+
+ (* Useful to catch memory bugs in the ocaml libvirt bindings. *)
+ Gc.compact ()