Mercurial > hg > xemacs-beta
annotate tests/gtk/xemacs-toolbar.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 | 0784d089fdc9 |
children | db7068430402 |
rev | line source |
---|---|
462 | 1 (defvar gtk-torture-test-toolbar-open-active-p t) |
2 | |
3 (defvar gtk-torture-test-toolbar | |
4 '([toolbar-file-icon | |
5 (lambda () | |
6 (setq gtk-torture-test-toolbar-open-active-p (not gtk-torture-test-toolbar-open-active-p))) | |
7 gtk-torture-test-toolbar-open-active-p | |
8 "Dynamic enabled-p slot... broken in XEmacs 21.1.x"] | |
9 [:size 35 :style 3d] | |
10 [toolbar-folder-icon toolbar-dired t "Edit a directory"] | |
11 [:size 35 :style 2d] | |
12 [toolbar-news-icon toolbar-news t "Read news"] | |
13 nil | |
14 [toolbar-info-icon toolbar-info t "Info documentation"] | |
15 )) | |
16 | |
17 (defun gtk-torture-test-toolbar () | |
18 (interactive) | |
19 (switch-to-buffer (get-buffer-create "Toolbar testing")) | |
20 (set-specifier default-toolbar gtk-torture-test-toolbar (current-buffer)) | |
21 (set-specifier default-toolbar-visible-p t (current-buffer))) |