History

20100310-1612

forsyth committed 16 years ago

Commit 97731151 parent 1bd87427 files · +29 −27Browse files

Unified · Split

7 files
  1. CHANGES +2 −0
  2. appl/lib/tabs.b +11 −11
  3. dis/lib/tabs.dis +0 −0
  4. include/tk.h +1 −1
  5. include/version.h +1 −1
  6. man/9/bind +12 −12
  7. man/9/variable +3 −3
CHANGES+2−0
@@ -1,3 +1,5 @@
1+20100310
2+ stop tabs(2) from issuing pointless tk cmd that produces diagnostics
13 20100305
24 add emu/Linux/audio-oss.c from saoret.one [issue 226]
35 20100226
appl/lib/tabs.b+11−11
@@ -138,23 +138,23 @@ tabsctl(t: ref Tk->Toplevel, · 137 unmodified lines
138138 (lab, widg) = tabs[id];
139139 tag := "tag" + string id;
140140 cmd(t, dot+" lower sel" + string id);
141− pos := cmd(t, dot+" coords " + tag);
142− if(len pos >= 1 && pos[0] != '!'){
143− (p, nil) := parsept(pos);
144− cmd(t, dot+" coords "+tag+" "+string(p.x+1)+
145− " "+string(p.y+1));
146− }
141+# pos := cmd(t, dot+" coords " + tag);
142+# if(len pos >= 1 && pos[0] != '!'){
143+# (p, nil) := parsept(pos);
144+# cmd(t, dot+" coords "+tag+" "+string(p.x+1)+
145+# " "+string(p.y+1));
146+# }
147147 if(id > 0)
148148 cmd(t, dot+" lower "+ tag + " tag"+string (id - 1));
149149 cmd(t, dot+" delete win" + string id);
150150 }
151151 id = nid;
152152 (lab, widg) = tabs[id];
153− pos := tk->cmd(t, dot+" coords tag" + string id);
154− if(len pos >= 1 && pos[0] != '!'){
155− (p, nil) := parsept(pos);
156− cmd(t, dot+" coords tag"+string id+" "+string(p.x-1)+" "+string(p.y-1));
157− }
153+# pos := tk->cmd(t, dot+" coords tag" + string id);
154+# if(len pos >= 1 && pos[0] != '!'){
155+# (p, nil) := parsept(pos);
156+# cmd(t, dot+" coords tag"+string id+" "+string(p.x-1)+" "+string(p.y-1));
157+# }
158158 cmd(t, dot+" raise tag"+string id);
159159 cmd(t, dot+" raise sel"+string id);
160160 cmd(t, dot+" create window "+string TABSBord+" "+
dis/lib/tabs.dis+0−0

Binary file not shown.

include/tk.h+1−1
@@ -216,7 +216,7 @@ struct TkVar · 215 unmodified lines
216216
217217 struct TkPanelimage
218218 {
219− void* image; /* really Draw_Image */
219+ void* image; /* Image paired with Draw_Image: see lookupimage in libinterp/draw.c */
220220 int ref;
221221 TkPanelimage* link;
222222 };
include/version.h+1−1
@@ -1 +1 @@
1−#define VERSION "Fourth Edition (20100307)"
1+#define VERSION "Fourth Edition (20100310)"
man/9/bind+12−12
@@ -5,7 +5,7 @@ bind \- Arrange for events to invoke Tk scripts · 4 unmodified lines
55 \f5bind\fI tag sequence script\fR
66 .sp
77 \f5bind\fI tag sequence \f5+\fIscript\fR
8−.SH INTRODUCTION
8+.SH DESCRIPTION
99 The \f5bind\fR command associates Tk scripts with window events.
1010 If all three arguments are specified, \f5bind\fR will
1111 arrange for \fIscript\fR (a Tk script) to be evaluated whenever
@@ -22,7 +22,7 @@ If \fIscript\fR is prefixed with a ``-'', then any existing binding for · 10 unmodified lines
2222 \fIsequence\fR, whose script is exactly the same as \fIscript\fR, is removed.
2323 The \fItag\fR argument gives the pathname of the window
2424 to which \fIsequence\fR is bound.
25−.SH "EVENT PATTERNS"
25+.SS Event Patterns
2626 The \fIsequence\fR argument specifies a sequence of one or more
2727 event patterns, with optional white space between the patterns. Each
2828 event pattern may
@@ -32,11 +32,11 @@ may not be a space character or the character \f5<\fR. This form of · 3 unmodified lines
3232 pattern matches a \f5KeyPress\fR event for the particular
3333 character. The second form of pattern is longer but more general.
3434 It has the following syntax:
35−.RS
35+.IP
3636 .EX
3737 \f5<\fIevent\f5-\fIevent\f5-\fR...\f5-\fIevent\f5>\fR
3838 .EE
39−.RE
39+.PP
4040 The following events are accepted:
4141 .TP
4242 .BR Key \ or\ Keypress
@@ -98,7 +98,14 @@ The event of the widget getting the keyboard focus. · 55 unmodified lines
9898 .TP
9999 .B FocusOut
100100 The event of the widget losing the keyboard focus.
101+.TP
102+.B Destroy
103+The event of the widget being destroyed.
104+See
105+.IR destroy (9)
106+for details of widget destruction.
101107 .RE
108+.PP
102109 The event sequence can contain any combination of the above
103110 events. They are treated independently, and if any of the
104111 events occur, the sequence matches. You cannot combine
@@ -106,14 +113,7 @@ key presses of more than one key. Events will not be combined · 1 unmodified line
106113 on delivery, except that
107114 .B Motion
108115 events may be combined with button presses (possibly doubled).
109−.TP
110−.B Destroy
111−The event of the widget being destroyed.
112−See
113−.IR destroy (9)
114−for details of widget destruction.
115−
116−.SH "BINDING SCRIPTS AND SUBSTITUTIONS"
116+.SS Binding Scripts and Substitutions
117117 The \fIscript\fR argument to \f5bind\fR is a Tk script,
118118 which will be executed whenever the given event sequence occurs.
119119 If \fIscript\fR contains
man/9/variable+3−3
@@ -20,6 +20,6 @@ The special variable · 19 unmodified lines
2020 holds the text of the last Tk error encountered.
2121 It resets when queried.
2222 .SH SEE ALSO
23−.IR checkbutton (9)
24−.IR choicebutton (9)
25−.IR radiobutton (9),
23+.IR checkbutton (9),
24+.IR choicebutton (9),
25+.IR radiobutton (9)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t