]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/lablgtk/lablgtk_20000829-0.1.0/gMain.ml
Initial revision
[helm.git] / helm / DEVEL / lablgtk / lablgtk_20000829-0.1.0 / gMain.ml
diff --git a/helm/DEVEL/lablgtk/lablgtk_20000829-0.1.0/gMain.ml b/helm/DEVEL/lablgtk/lablgtk_20000829-0.1.0/gMain.ml
new file mode 100644 (file)
index 0000000..811f490
--- /dev/null
@@ -0,0 +1,26 @@
+(* $Id$ *)
+
+open Gtk
+open GtkMain
+open GObj
+
+module Main : sig
+  val init : unit -> string (* returns the locale name *)
+  val main : unit -> unit
+  val quit : unit -> unit
+  val version : int * int * int
+  val flush : unit -> unit
+end = Main
+
+module Grab = struct
+  open Grab
+  let add (w : #widget) = add w#as_widget
+  let remove (w : #widget) = remove w#as_widget
+  let get_current () = new widget (get_current ())
+end
+
+module Timeout : sig
+  type id
+  val add : ms:int -> callback:(unit -> bool) -> id
+  val remove : id -> unit
+end = Timeout