summaryrefslogtreecommitdiffstats
path: root/generic/tkTextTag.c
diff options
context:
space:
mode:
authorgcramer <remarcg@gmx.net>2019-01-13 12:09:49 (GMT)
committergcramer <remarcg@gmx.net>2019-01-13 12:09:49 (GMT)
commit2718866eb8a01a831ecff6ebdb94ceab6a836066 (patch)
tree0b9de2b09a11d5ead5d8df778c01b2723fe943ee /generic/tkTextTag.c
parentf094a8c8a291d30c8013117f93b1a90b664986bd (diff)
downloadtk-2718866eb8a01a831ecff6ebdb94ceab6a836066.zip
tk-2718866eb8a01a831ecff6ebdb94ceab6a836066.tar.gz
tk-2718866eb8a01a831ecff6ebdb94ceab6a836066.tar.bz2
Reverting change of return type of function Tk_CreateBinding: 'unsigned long' -> 'Mask'. X11 headers are not using type 'Mask', so I will not use either.
Diffstat (limited to 'generic/tkTextTag.c')
-rw-r--r--generic/tkTextTag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextTag.c b/generic/tkTextTag.c
index 40ea7ab..56e6c71 100644
--- a/generic/tkTextTag.c
+++ b/generic/tkTextTag.c
@@ -273,7 +273,7 @@ TkTextTagCmd(
if (objc == 6) {
int append = 0;
- Mask mask;
+ unsigned long mask;
const char *fifth = Tcl_GetString(objv[5]);
if (fifth[0] == 0) {
@@ -292,7 +292,7 @@ TkTextTagCmd(
if (mask == 0) {
return TCL_ERROR;
}
- if (mask & (Mask) ~(ButtonMotionMask|Button1MotionMask
+ if (mask & (unsigned long) ~(ButtonMotionMask|Button1MotionMask
|Button2MotionMask|Button3MotionMask|Button4MotionMask
|Button5MotionMask|ButtonPressMask|ButtonReleaseMask
|EnterWindowMask|LeaveWindowMask|KeyPressMask
@@ -1460,7 +1460,7 @@ TkTextBindProc(
if (eventPtr->type == ButtonPress) {
textPtr->flags |= BUTTON_DOWN;
} else if (eventPtr->type == ButtonRelease) {
- Mask mask;
+ unsigned long mask;
switch (eventPtr->xbutton.button) {
case Button1: