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