Mercurial > hg > xemacs-beta
diff tests/gtk/xemacs-toolbar.el @ 462:0784d089fdc9 r21-2-46
Import from CVS: tag r21-2-46
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:44:37 +0200 |
parents | |
children | db7068430402 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/gtk/xemacs-toolbar.el Mon Aug 13 11:44:37 2007 +0200 @@ -0,0 +1,21 @@ +(defvar gtk-torture-test-toolbar-open-active-p t) + +(defvar gtk-torture-test-toolbar + '([toolbar-file-icon + (lambda () + (setq gtk-torture-test-toolbar-open-active-p (not gtk-torture-test-toolbar-open-active-p))) + gtk-torture-test-toolbar-open-active-p + "Dynamic enabled-p slot... broken in XEmacs 21.1.x"] + [:size 35 :style 3d] + [toolbar-folder-icon toolbar-dired t "Edit a directory"] + [:size 35 :style 2d] + [toolbar-news-icon toolbar-news t "Read news"] + nil + [toolbar-info-icon toolbar-info t "Info documentation"] + )) + +(defun gtk-torture-test-toolbar () + (interactive) + (switch-to-buffer (get-buffer-create "Toolbar testing")) + (set-specifier default-toolbar gtk-torture-test-toolbar (current-buffer)) + (set-specifier default-toolbar-visible-p t (current-buffer)))