annotate tests/glyph-test.el @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents aabb7f5b1c81
children 2f8bb876ab1d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
1 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
2 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
3 (setq im (make-glyph [xpm :file "xemacs-icon.xpm"])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
4
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
5 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
6 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
7 (make-glyph [string :data "xemacs"]))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
8
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
9 (defun foo ()
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
10 (interactive)
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
11 (setq ok-select (not ok-select)))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
12
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
13 (defun fee () (interactive) (message "hello"))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
14
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
15 ;; button in a group
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
16 (setq ok-select nil)
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
17 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
18 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
19 (setq radio-button1
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
20 (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
21 [button :descriptor ["ok " (setq ok-select t)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
22 :style radio :selected ok-select]])))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
23 ;; button in a group
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
24 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
25 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
26 (setq radio-button2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
27 (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
28 [button :descriptor ["ok" (setq ok-select nil) :style radio
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
29 :selected (not ok-select)]])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
30 ;; toggle button
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
31 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
32 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
33 (setq tbutton
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
34 (make-glyph [button :descriptor ["ok" (setq ok-select nil)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
35 :style toggle
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
36 :selected (not ok-select)]])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
37 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
38 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
39 (setq toggle-button
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
40 (make-glyph [button :descriptor ["ok" :style toggle
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
41 :callback
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
42 (setq ok-select (not ok-select))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
43 :selected ok-select]])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
44
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
45 ;; normal pushbutton
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
46 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
47 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
48 (setq push-button
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
49 (make-glyph [button :width 10 :height 2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
50 :face modeline-mousable
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
51 :descriptor "ok" :callback foo
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
52 :selected t])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
53 ;; tree view
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
54 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
55 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
56 (setq tree (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
57 [tree-view :width 10
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
58 :descriptor "My Tree"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
59 :properties (:items (["One" foo]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
60 (["Two" foo]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
61 ["Four" foo]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
62 "Six")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
63 "Three"))])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
64
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
65 ;; tab control
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
66 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
67 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
68 (setq tab (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
69 [tab-control :descriptor "My Tab"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
70 :face highlight
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
71 :orientation right
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
72 :properties (:items (["One" foo]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
73 ["Two" fee]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
74 ["Three" foo]))])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
75
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
76 ;; progress gauge
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
77 (set-extent-begin-glyph
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
78 (make-extent (point) (point))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
79 (setq pgauge (make-glyph
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
80 [progress-gauge :width 10 :height 2
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
81 :descriptor "ok"])))
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
82 ;; progress the progress ...
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
83 (let ((x 0))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
84 (while (<= x 100)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
85 (set-image-instance-property (glyph-image-instance pgauge) :percent x)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
86 (setq x (+ x 5))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
87 (sit-for 0.1)))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
88
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
89 ;; progress gauge in the modeline
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
90 (setq global-mode-string
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
91 (cons (make-extent nil nil)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
92 (setq pg (make-glyph
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
93 [progress-gauge :width 5 :pixel-height 16
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
94 :descriptor "ok"]))))
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
95 ;; progress the progress ...
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
96 (let ((x 0))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
97 (while (<= x 100)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
98 (set-image-instance-property (glyph-image-instance pg) :percent x)
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
99 (setq x (+ x 5))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
100 (sit-for 0.1)))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
101
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
102 (set-extent-begin-glyph
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
103 (make-extent (point) (point))
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
104 (make-glyph
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
105 [button :face modeline-mousable
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
106 :descriptor "ok" :callback foo
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
107 :image [xpm :file "../etc/xemacs-icon.xpm"]]))
388
aabb7f5b1c81 Import from CVS: tag r21-2-9
cvs
parents: 384
diff changeset
108
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
109 ;; normal pushbutton
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
110 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
111 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
112 (setq pbutton
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
113 (make-glyph [button :descriptor ["A Big Button" foo ]])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
114
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
115 ;; edit box
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
116 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
117 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
118 (setq edit-field (make-glyph [edit-field :pixel-width 50 :pixel-height 30
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
119 :face bold-italic
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
120 :descriptor ["Hello"]])))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
121 ;; combo box
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
122 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
123 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
124 (setq combo-box (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
125 [combo-box :width 10 :descriptor ["Hello"]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
126 :properties (:items ("One" "Two" "Three"))])))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
127
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
128 ;; label
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
129 (set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
130 (make-extent (point) (point))
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
131 (setq label (make-glyph [label :pixel-width 150 :descriptor "Hello"])))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
132
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
133 ;; string
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
134 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
135 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
136 (setq str (make-glyph [string :data "Hello There"])))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
137
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
138 ;; scrollbar
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
139 ;(set-extent-begin-glyph
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
140 ; (make-extent (point) (point))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
141 ; (make-glyph [scrollbar :width 50 :height 20 :descriptor ["Hello"]]))
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
142
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
143 ;; generic subwindow
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
144 (setq sw (make-glyph [subwindow :pixel-width 50 :pixel-height 70]))
384
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
145 (set-extent-begin-glyph (make-extent (point) (point)) sw)
bbff43aa5eb7 Import from CVS: tag r21-2-7
cvs
parents:
diff changeset
146
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
147 ;; layout
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
148 (setq layout
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
149 (make-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
150 [layout :pixel-width 200 :pixel-height 250
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
151 :orientation vertical
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
152 :justify left
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
153 :border [string :data "Hello There Mrs"]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
154 :items ([layout :orientation horizontal
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
155 :items (radio-button1 radio-button2)]
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
156 edit-field toggle-button label str)]))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
157 (set-glyph-face layout 'gui-element)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
158 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
159 (make-extent (point) (point)) layout)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
160
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
161 (setq test-toggle-widget nil)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
162
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
163 (defun test-toggle (widget)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
164 (set-extent-begin-glyph
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
165 (make-extent (point) (point))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
166 (make-glyph (vector 'button
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
167 :descriptor "ok"
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
168 :style 'toggle
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
169 :selected `(funcall test-toggle-value
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
170 ,widget)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
171 :callback `(funcall test-toggle-action
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
172 ,widget)))))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
173
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
174 (defun test-toggle-action (widget &optional event)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
175 (if widget
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
176 (message "Widget is t")
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
177 (message "Widget is nil")))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
178
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
179 (defun test-toggle-value (widget)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
180 (setq widget (not widget))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 388
diff changeset
181 (not widget))