X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=tests%2Fgtk%2Fxemacs-toolbar.el;fp=tests%2Fgtk%2Fxemacs-toolbar.el;h=eef5265d4cad8da642ca2615234f83fd15102444;hb=9a9fedfd2473568f4827f6295de7b03259b160e5;hp=0000000000000000000000000000000000000000;hpb=97badae7fa41c4bd3e92511ff7b16389e646e022;p=chise%2Fxemacs-chise.git- diff --git a/tests/gtk/xemacs-toolbar.el b/tests/gtk/xemacs-toolbar.el new file mode 100644 index 0000000..eef5265 --- /dev/null +++ b/tests/gtk/xemacs-toolbar.el @@ -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)))