comparison lisp/gui.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 d7a9135ec789
children 79940b592197
comparison
equal deleted inserted replaced
710:a00780ef853d 711:5be46355cc42
87 87
88 (make-face 'gui-button-face "Face used for gui buttons") 88 (make-face 'gui-button-face "Face used for gui buttons")
89 (if (not (face-differs-from-default-p 'gui-button-face)) 89 (if (not (face-differs-from-default-p 'gui-button-face))
90 (progn 90 (progn
91 (set-face-reverse-p 'gui-button-face t) 91 (set-face-reverse-p 'gui-button-face t)
92 (set-face-background 'gui-button-face '(((x color) . "grey75") 92 (set-face-background 'gui-button-face '(((win color) . "grey75")))
93 ((mswindows color) . "grey75"))) 93 (set-face-foreground 'gui-button-face '(((win color) . "black")))))
94 (set-face-foreground 'gui-button-face '(((x color) . "black")
95 ((mswindows color) . "black")))))
96 94
97 95
98 (defun gui-button-action (instance action user-data) 96 (defun gui-button-action (instance action user-data)
99 (let ((domain (image-instance-domain instance))) 97 (let ((domain (image-instance-domain instance)))
100 (with-current-buffer (if (windowp domain) 98 (with-current-buffer (if (windowp domain)