diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-26 07:34:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-26 07:34:12 (GMT) |
commit | 3efbb66596ac4683c9f362a19e3e6c4bf979d2b5 (patch) | |
tree | c6f3e3f08f9157a7ba87f0512375bb0ce1a543bf | |
parent | 3bf66eee9133ac628425b0b83043f65da1f6f8ac (diff) | |
download | tk-3efbb66596ac4683c9f362a19e3e6c4bf979d2b5.zip tk-3efbb66596ac4683c9f362a19e3e6c4bf979d2b5.tar.gz tk-3efbb66596ac4683c9f362a19e3e6c4bf979d2b5.tar.bz2 |
Remove use of/documentation regarding deprecated symbols/macro's, which moved to Tcl headers long ago.
-rw-r--r-- | doc/CrtCmHdlr.3 | 2 | ||||
-rw-r--r-- | doc/CrtGenHdlr.3 | 2 | ||||
-rw-r--r-- | doc/EventHndlr.3 | 2 | ||||
-rw-r--r-- | doc/MoveToplev.3 | 2 | ||||
-rw-r--r-- | doc/RestrictEv.3 | 6 | ||||
-rw-r--r-- | generic/tkGrab.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 4 | ||||
-rw-r--r-- | tests/bind.test | 4 |
8 files changed, 12 insertions, 12 deletions
diff --git a/doc/CrtCmHdlr.3 b/doc/CrtCmHdlr.3 index 54cee95..92d6865 100644 --- a/doc/CrtCmHdlr.3 +++ b/doc/CrtCmHdlr.3 @@ -33,7 +33,7 @@ drop applications. The callback to \fIproc\fR will be made by \fBTk_HandleEvent\fR; this mechanism only works in programs that dispatch events through \fBTk_HandleEvent\fR (or through other Tk procedures that -call \fBTk_HandleEvent\fR, such as \fBTk_DoOneEvent\fR or +call \fBTk_HandleEvent\fR, such as \fBTcl_DoOneEvent\fR or \fBTk_MainLoop\fR). .PP \fIProc\fR should have arguments and result that match the diff --git a/doc/CrtGenHdlr.3 b/doc/CrtGenHdlr.3 index 1e4f10c..bcf324e 100644 --- a/doc/CrtGenHdlr.3 +++ b/doc/CrtGenHdlr.3 @@ -39,7 +39,7 @@ use with Tk, and so on. The callback to \fIproc\fR will be made by \fBTk_HandleEvent\fR; this mechanism only works in programs that dispatch events through \fBTk_HandleEvent\fR (or through other Tk procedures that -call \fBTk_HandleEvent\fR, such as \fBTk_DoOneEvent\fR or +call \fBTk_HandleEvent\fR, such as \fBTcl_DoOneEvent\fR or \fBTk_MainLoop\fR). .PP \fIProc\fR should have arguments and result that match the diff --git a/doc/EventHndlr.3 b/doc/EventHndlr.3 index 80003d8..3a402e8 100644 --- a/doc/EventHndlr.3 +++ b/doc/EventHndlr.3 @@ -39,7 +39,7 @@ by \fImask\fR occurs in the window specified by \fItkwin\fR. The callback to \fIproc\fR will be made by \fBTk_HandleEvent\fR; this mechanism only works in programs that dispatch events through \fBTk_HandleEvent\fR (or through other Tk procedures that -call \fBTk_HandleEvent\fR, such as \fBTk_DoOneEvent\fR or +call \fBTk_HandleEvent\fR, such as \fBTcl_DoOneEvent\fR or \fBTk_MainLoop\fR). .PP \fIProc\fR should have arguments and result that match the diff --git a/doc/MoveToplev.3 b/doc/MoveToplev.3 index 18436a3..12f353b 100644 --- a/doc/MoveToplev.3 +++ b/doc/MoveToplev.3 @@ -47,7 +47,7 @@ menus that want to appear at a particular place on the screen. When \fBTk_MoveToplevelWindow\fR is called it does not immediately pass on the new desired location to the window manager; it defers this action until all other outstanding work has been completed, -using the \fBTk_DoWhenIdle\fR mechanism. +using the \fBTcl_DoWhenIdle\fR mechanism. .SH KEYWORDS position, top-level window, window manager diff --git a/doc/RestrictEv.3 b/doc/RestrictEv.3 index 0d17806..b5cc907 100644 --- a/doc/RestrictEv.3 +++ b/doc/RestrictEv.3 @@ -31,7 +31,7 @@ Pointer to place to save argument to previous restrict procedure. .PP This procedure is useful in certain situations where applications are only prepared to receive certain X events. After -\fBTk_RestrictEvents\fR is called, \fBTk_DoOneEvent\fR (and +\fBTk_RestrictEvents\fR is called, \fBTcl_DoOneEvent\fR (and hence \fBTk_MainLoop\fR) will filter X input events through \fIproc\fR. \fIProc\fR indicates whether a given event is to be processed immediately, deferred until some @@ -49,7 +49,7 @@ to \fBTk_RestrictEvents\fR; it may be used to provide \fIproc\fR with information it needs to filter events. The \fIeventPtr\fR points to an event under consideration. \fIProc\fR returns a restrict action (enumerated type \fBTk_RestrictAction\fR) that indicates what -\fBTk_DoOneEvent\fR should do with the event. If the return value is +\fBTcl_DoOneEvent\fR should do with the event. If the return value is \fBTK_PROCESS_EVENT\fR, then the event will be handled immediately. If the return value is \fBTK_DEFER_EVENT\fR, then the event will be left on the event queue for later processing. If the return value is @@ -75,6 +75,6 @@ solution in these situations is to call \fBXNextEvent\fR or \fBXWindowEvent\fR, but these procedures cannot be used because Tk keeps its own event queue that is separate from the X event queue. Instead, call \fBTk_RestrictEvents\fR to set up a filter, -then call \fBTk_DoOneEvent\fR to retrieve the desired event(s). +then call \fBTcl_DoOneEvent\fR to retrieve the desired event(s). .SH KEYWORDS delay, event, filter, restriction diff --git a/generic/tkGrab.c b/generic/tkGrab.c index 44a4f8c..04a1d84 100644 --- a/generic/tkGrab.c +++ b/generic/tkGrab.c @@ -1369,7 +1369,7 @@ QueueGrabWindowChange( static int GrabWinEventProc( Tcl_Event *evPtr, /* Event of type NewGrabWinEvent. */ - int flags) /* Flags argument to Tk_DoOneEvent: indicates + int flags) /* Flags argument to Tcl_DoOneEvent: indicates * what kinds of events are being processed * right now. */ { diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 75949ba..6d7649c 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -877,7 +877,7 @@ ConfigureRestrictProc( TkGenWMConfigureEvent(tkwin, Tk_X(tkwin), Tk_Y(tkwin), width, height, TK_SIZE_CHANGED | TK_MACOSX_HANDLE_EVENT_IMMEDIATELY); oldProc = Tk_RestrictEvents(ConfigureRestrictProc, NULL, &oldArg); - while (Tk_DoOneEvent(TK_X_EVENTS|TK_DONT_WAIT)) {} + while (Tcl_DoOneEvent(TCL_WINDOW_EVENTS|TCL_DONT_WAIT)) {} Tk_RestrictEvents(oldProc, oldArg, &oldArg); /* Now that Tk has configured all subwindows we can create the clip regions. */ @@ -889,7 +889,7 @@ ConfigureRestrictProc( HIRect bounds = NSRectToCGRect([self bounds]); HIShapeRef shape = HIShapeCreateWithRect(&bounds); [self generateExposeEvents: shape]; - while (Tk_DoOneEvent(TK_ALL_EVENTS|TK_DONT_WAIT)) {} + while (Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT)) {} [w enableFlushWindow]; [w flushWindowIfNeeded]; NSEnableScreenUpdates(); diff --git a/tests/bind.test b/tests/bind.test index 3abb615..96449d1 100644 --- a/tests/bind.test +++ b/tests/bind.test @@ -2682,7 +2682,7 @@ proc bgerror msg { global x errorInfo set x [list $msg $errorInfo] } -test bind-30.1 {Tk_BackgroundError procedure} { +test bind-30.1 {Tcl_BackgroundError procedure} { setup bind .b.f <Button> {error "This is a test"} set x none @@ -2694,7 +2694,7 @@ test bind-30.1 {Tk_BackgroundError procedure} { while executing "error "This is a test"" (command bound to event)}} -test bind-30.2 {Tk_BackgroundError procedure} { +test bind-30.2 {Tcl_BackgroundError procedure} { proc do {} { event gen .b.f <Button> event gen .b.f <ButtonRelease> |