diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-02 11:09:33 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-02 11:09:33 (GMT) |
commit | c7759d4c7d331a7db4a2b4d9cf0444cd9bcf1702 (patch) | |
tree | dcd1b9c79c617c0de3f19bd2da01bac269de5268 /win/tkWinWm.c | |
parent | f82df37a90029d95b86d6fad1d14ddb3323419dd (diff) | |
download | tk-c7759d4c7d331a7db4a2b4d9cf0444cd9bcf1702.zip tk-c7759d4c7d331a7db4a2b4d9cf0444cd9bcf1702.tar.gz tk-c7759d4c7d331a7db4a2b4d9cf0444cd9bcf1702.tar.bz2 |
change signature of all X11 functions to match those of CYGWIN
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 2097938..2ec1729 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -2347,7 +2347,7 @@ TkWmUnmapWindow(winPtr) *---------------------------------------------------------------------- */ -void +int TkpWmSetState(winPtr, state) TkWindow *winPtr; /* Toplevel window to operate on. */ int state; /* One of IconicState, ZoomState, NormalState, @@ -2358,7 +2358,7 @@ TkpWmSetState(winPtr, state) if (wmPtr->flags & WM_NEVER_MAPPED) { wmPtr->hints.initial_state = state; - return; + return 1; } wmPtr->flags |= WM_SYNC_PENDING; @@ -2374,6 +2374,7 @@ TkpWmSetState(winPtr, state) ShowWindow(wmPtr->wrapper, cmd); wmPtr->flags &= ~WM_SYNC_PENDING; + return 1; } /* @@ -3265,7 +3266,7 @@ WmCommandCmd(tkwin, winPtr, interp, objc, objv) wmPtr->cmdArgc = cmdArgc; wmPtr->cmdArgv = cmdArgv; if (!(wmPtr->flags & WM_NEVER_MAPPED)) { - XSetCommand(winPtr->display, winPtr->window, cmdArgv, cmdArgc); + XSetCommand(winPtr->display, winPtr->window, (char **)cmdArgv, cmdArgc); } return TCL_OK; } |