3 (defcfun gtk-init-check :boolean
5 (argv (:pointer (:pointer :string))))
8 (gtk-init-check (foreign-alloc :int :initial-element 0)
9 (foreign-alloc :string :initial-contents '("/usr/bin/sbcl")))
10 #+nil(with-foreign-objects ((argc :int)
11 (argv '(:pointer :string) 1))
12 (setf (mem-ref argc :int) 0
13 (mem-ref argv '(:pointer :string)) (foreign-alloc :string :count 1
14 :initial-element "/usr/bin/sbcl"))
16 (unless (gtk-init-check argc argv)
17 (error "Cannot initialize Gtk+"))
18 (foreign-free (mem-ref argv '(:pointer :string))))))
22 (defcfun gtk-test-register-all-types :void)
24 (gtk-test-register-all-types)
26 (defcfun gtk-events-pending :boolean)
28 (defcfun gtk-main :void)
30 (defcfun gtk-main-level :uint)
32 (defcfun gtk-main-quit :void)
34 (defcfun gtk-main-iteration :boolean)
36 (defcfun gtk-main-iteration-do :boolean
39 (defcfun gtk-grab-add :void
42 (defcfun gtk-grab-get-current g-object)
44 (defcfun gtk-grab-remove :void