Mercurial > hg > xemacs-beta
annotate lisp/gtk.el @ 1833:eed841acc858
[xemacs-hg @ 2003-12-19 14:28:45 by youngs]
2003-12-15 Steve Youngs <sryoungs@bigpond.net.au>
* wid-edit.el (lazy): New.
(widget-child-value-get): New.
(widget-child-value-inline): New.
(widget-child-validate): New.
(widget-type-value-create): New.
(widget-type-default-get): New.
(widget-type-match): New.
This adds a "lazy" widget to allow the definition of recursive
datatypes for customize. The composite widgets expand their
subtypes immediately, which cause obvious problems for recursive
datatypes. The "lazy" will only expand them when needed, hense
the name.
From Per Abrahamsen <abraham@dina.kvl.dk>
2003-12-15 Steve Youngs <sryoungs@bigpond.net.au>
* lispref/customize.texi (Defining New Types): New node.
From Per Abrahamsen <abraham@dina.kvl.dk>
| author | youngs |
|---|---|
| date | Fri, 19 Dec 2003 14:29:07 +0000 |
| parents | 7039e6323819 |
| children | b4f4e0cc90f1 |
| rev | line source |
|---|---|
| 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))) |
