File: about.ml

package info (click to toggle)
lablgtk2 2.18.13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,940 kB
  • sloc: ml: 41,454; ansic: 23,178; makefile: 685; sh: 75
file content (35 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(**************************************************************************)
(*    Lablgtk - Examples                                                  *)
(*                                                                        *)
(*    This code is in the public domain.                                  *)
(*    You may freely copy parts of it in your application.                *)
(*                                                                        *)
(**************************************************************************)

(* ocamlc -g -I ../src lablgtk.cma about.ml -o about *)

let show () =
  let dialog = 
    GWindow.about_dialog 
      ~name:"Name" 
      ~authors:["Me" ; 
                "Myself"; 
               ]
      ~copyright:"Copyright: copyleft"
      ~license:"Open"
      ~website:"http://www.world.com"
      ~website_label:"Questions and support"
      ~version:"0.0"
      ()
  in
  ignore (dialog#connect#response 
            ~callback:(fun _ -> dialog#show ()
                       ));

  ignore (dialog#run ())


let () = 
  GMain.Main.init ();
  show ()