diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-09 21:30:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-05-09 21:30:17 (GMT) |
commit | 2ef1eadbc983ba136d631cf4ac449b130d4af086 (patch) | |
tree | 910f808d33b01cb133375f4d3021107f0fc845dc /win/tkWinWm.c | |
parent | 53373c6c9768f992a833a1bbf8072d067b7fbeb7 (diff) | |
parent | b8eda54106d7b5b5ce5320ba63f125eb390cdb40 (diff) | |
download | tk-2ef1eadbc983ba136d631cf4ac449b130d4af086.zip tk-2ef1eadbc983ba136d631cf4ac449b130d4af086.tar.gz tk-2ef1eadbc983ba136d631cf4ac449b130d4af086.tar.bz2 |
Change TkpWmSetState signature to match UNIX, needed for Cygwin
Don't check for cygwin in win32 static build
Some more useful #defines for Cygwin
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 2aa251c..1dd2bcd 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -2436,7 +2436,7 @@ TkWmUnmapWindow( *---------------------------------------------------------------------- */ -void +int TkpWmSetState( TkWindow *winPtr, /* Toplevel window to operate on. */ int state) /* One of IconicState, ZoomState, NormalState, @@ -2447,7 +2447,7 @@ TkpWmSetState( if (wmPtr->flags & WM_NEVER_MAPPED) { wmPtr->hints.initial_state = state; - return; + goto setStateEnd; } wmPtr->flags |= WM_SYNC_PENDING; @@ -2460,11 +2460,13 @@ TkpWmSetState( } else if (state == ZoomState) { cmd = SW_SHOWMAXIMIZED; } else { - return; + goto setStateEnd; } ShowWindow(wmPtr->wrapper, cmd); wmPtr->flags &= ~WM_SYNC_PENDING; +setStateEnd: + return 1; } /* |