502
|
1 (globally-declare-fboundp
|
4103
|
2 '(gtk-import-function-internal
|
|
3 gtk-call-function
|
|
4 gtk-type-name
|
|
5 gtk-import-function))
|
502
|
6
|
|
7 (globally-declare-boundp
|
|
8 '(gtk-enumeration-info))
|
|
9
|
462
|
10 (gtk-import-function nil "gdk_flush")
|
|
11
|
|
12 (defun gtk-describe-enumerations ()
|
|
13 "Show a list of all GtkEnum or GtkFlags objects available from lisp."
|
|
14 (interactive)
|
|
15 (set-buffer (get-buffer-create "*GTK Enumerations*"))
|
|
16 (erase-buffer)
|
|
17 (let ((separator (make-string (- (window-width) 3) ?-)))
|
|
18 (maphash (lambda (key val)
|
|
19 (insert
|
|
20 separator "\n"
|
|
21 (if (stringp key)
|
|
22 key
|
|
23 (gtk-type-name key)) "\n")
|
|
24 (mapc (lambda (cell)
|
|
25 (insert (format "\t%40s == %d\n" (car cell) (cdr cell)))) val))
|
|
26 gtk-enumeration-info))
|
|
27 (goto-char (point-min))
|
|
28 (display-buffer (current-buffer)))
|