summaryrefslogtreecommitdiffstats
path: root/generic/tkDecls.h
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-06-03 08:58:14 (GMT)
committerhobbs <hobbs>2000-06-03 08:58:14 (GMT)
commitabd4bf4681dc1af59b52aab2440fcda3ee06a6b3 (patch)
treed2aac881f8b1a76c3caac0cfa24863e99dc2569a /generic/tkDecls.h
parent26ff03f7b00c9c3188873b63186b0ebeffc0e2f4 (diff)
downloadtk-abd4bf4681dc1af59b52aab2440fcda3ee06a6b3.zip
tk-abd4bf4681dc1af59b52aab2440fcda3ee06a6b3.tar.gz
tk-abd4bf4681dc1af59b52aab2440fcda3ee06a6b3.tar.bz2
* generic/tk.h: added typdef for Tk_ClientMessageProc
* generic/tkStubInit.c: * generic/tkDecls.h: * generic/tk.decls: Added Tk_CreateClientMessageHandler and Tk_DeleteClientMessageHandler declarations. * generic/tkEvent.c (Tk_HandleEvent): Added Tk_CreateClientMessageHandler and Tk_DeleteClientMessageHandler to allow adding event handlers that invoke for ClientMessage events. This is necessary to support unix dnd protocols.
Diffstat (limited to 'generic/tkDecls.h')
-rw-r--r--generic/tkDecls.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/generic/tkDecls.h b/generic/tkDecls.h
index 6b6d241..edd169e 100644
--- a/generic/tkDecls.h
+++ b/generic/tkDecls.h
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkDecls.h,v 1.11 2000/04/25 01:03:06 hobbs Exp $
+ * RCS: @(#) $Id: tkDecls.h,v 1.12 2000/06/03 08:58:15 hobbs Exp $
*/
#ifndef _TKDECLS
@@ -820,6 +820,12 @@ EXTERN int Tk_PostscriptPhoto _ANSI_ARGS_((Tcl_Interp * interp,
Tk_PhotoImageBlock * blockPtr,
Tk_PostscriptInfo psInfo, int width,
int height));
+/* 239 */
+EXTERN void Tk_CreateClientMessageHandler _ANSI_ARGS_((
+ Tk_ClientMessageProc * proc));
+/* 240 */
+EXTERN void Tk_DeleteClientMessageHandler _ANSI_ARGS_((
+ Tk_ClientMessageProc * proc));
typedef struct TkStubHooks {
struct TkPlatStubs *tkPlatStubs;
@@ -1071,6 +1077,8 @@ typedef struct TkStubs {
int (*tk_PostscriptStipple) _ANSI_ARGS_((Tcl_Interp * interp, Tk_Window tkwin, Tk_PostscriptInfo psInfo, Pixmap bitmap)); /* 236 */
double (*tk_PostscriptY) _ANSI_ARGS_((double y, Tk_PostscriptInfo psInfo)); /* 237 */
int (*tk_PostscriptPhoto) _ANSI_ARGS_((Tcl_Interp * interp, Tk_PhotoImageBlock * blockPtr, Tk_PostscriptInfo psInfo, int width, int height)); /* 238 */
+ void (*tk_CreateClientMessageHandler) _ANSI_ARGS_((Tk_ClientMessageProc * proc)); /* 239 */
+ void (*tk_DeleteClientMessageHandler) _ANSI_ARGS_((Tk_ClientMessageProc * proc)); /* 240 */
} TkStubs;
#ifdef __cplusplus
@@ -2037,6 +2045,14 @@ extern TkStubs *tkStubsPtr;
#define Tk_PostscriptPhoto \
(tkStubsPtr->tk_PostscriptPhoto) /* 238 */
#endif
+#ifndef Tk_CreateClientMessageHandler
+#define Tk_CreateClientMessageHandler \
+ (tkStubsPtr->tk_CreateClientMessageHandler) /* 239 */
+#endif
+#ifndef Tk_DeleteClientMessageHandler
+#define Tk_DeleteClientMessageHandler \
+ (tkStubsPtr->tk_DeleteClientMessageHandler) /* 240 */
+#endif
#endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */