Mercurial > hg > xemacs-beta
annotate tests/gtk/xemacs-toolbar.el @ 4353:4143b78d0df0
Merge an old patch of Ben's, involving font instantiation and charsets.
2007-12-23 Aidan Kehoe <kehoea@parhasard.net>
* objects-tty.c (tty_find_charset_font):
* objects-msw.c (mswindows_font_spec_matches_charset_stage_2):
* objects-msw.c (mswindows_font_spec_matches_charset_stage_1):
* objects-xlike-inc.c (x_font_spec_matches_charset):
* objects-xlike-inc.c (gtk_font_spec_matches_charset):
If the charset is not specified when calling the
font_spec_matches_charset device method, its value is Qnil, not
Qunbound. See
http://mid.gmane.org/E1EfbmW-00029r-5G@iwi191.iwi.uni-sb.de and
Ben Wing's patch of
http://mid.gmane.org/439FA06B.3090007@xemacs.org.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 23 Dec 2007 15:29:17 +0100 |
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))) |