Mercurial > hg > xemacs-beta
annotate lisp/gtk.el @ 711:5be46355cc42
[xemacs-hg @ 2001-12-23 01:01:45 by wmperry]
2001-12-13 William M. Perry <wmperry@gnu.org>
* gtk-faces.el (gtk-init-device-faces): Better way of munging the
default faces from a style. Do not use 'device' as the locale
when setting it, or it makes it very difficult for a user to
override. Now munges highlight, zmacs-region, and toolbar from
the appropriate information in the default GtkStyle for the
device.
* gui.el (gui-button-face): Ditto.
* faces.el (text-cursor):
(highlight):
(zmacs-region):
(list-mode-item-selected):
(primary-selection):
(secondary-selection):
(isearch):
(isearch-secondary): Condense old window-system specific settings
into one specifier using the 'win default' tags.
* dialog-gtk.el (popup-builtin-question-dialog): Deal gracefully
with buttons of length 1, 2, and 3. Fixed yes-or-no-p lossage.
author | wmperry |
---|---|
date | Sun, 23 Dec 2001 01:01:46 +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))) |