diff options
author | wolfsuit <wolfsuit> | 2005-03-23 22:15:25 (GMT) |
---|---|---|
committer | wolfsuit <wolfsuit> | 2005-03-23 22:15:25 (GMT) |
commit | 05963ced8e8d4dec5a58d5dfa865c1878806fa16 (patch) | |
tree | f825e5c72887f0789a4990c6d2eb207dc3069915 /generic | |
parent | 40916d5667e543846e310bb8b2eef387093d5a7b (diff) | |
download | tk-05963ced8e8d4dec5a58d5dfa865c1878806fa16.zip tk-05963ced8e8d4dec5a58d5dfa865c1878806fa16.tar.gz tk-05963ced8e8d4dec5a58d5dfa865c1878806fa16.tar.bz2 |
2005-03-23 Jim Ingham <jingham@apple.com>
This is cleanup thanks to Neil Madden <nem@cs.nott.ac.uk>.
* macosx/tkMacOSXWm.c (TkMacOSXWinStyle) New function.
(TkUnsupported1ObjCmd): New function, replaces the un-objectified
version of the command.
* generic/tkInt.h: Swap TkUnsupported1Cmd for TkUnsupported1ObjCmd.
* generic/tkWindow.c (): Ditto.
This adds a "-notify" flag to "wm attributes" that will bounce the
dock icon on Mac OS X. This is from Revar Desmera <revarbat@gmail.com>
* macosx/tkMacOSXWm.c (WmAttrGetNotifyStatus, WmAttrSetNotifyStatus):
New functions.
(WmAttributesCmd): Add the -notify.
* doc/wm.n: Document -notify.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkInt.h | 7 | ||||
-rw-r--r-- | generic/tkWindow.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h index 314a934..7653d2c 100644 --- a/generic/tkInt.h +++ b/generic/tkInt.h @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: $Id: tkInt.h,v 1.65 2005/01/11 10:35:27 dkf Exp $ + * RCS: $Id: tkInt.h,v 1.66 2005/03/23 22:17:00 wolfsuit Exp $ */ #ifndef _TKINT @@ -1190,8 +1190,9 @@ EXTERN int TkParsePadAmount _ANSI_ARGS_((Tcl_Interp *interp, /* * Unsupported commands. */ -EXTERN int TkUnsupported1Cmd _ANSI_ARGS_((ClientData clientData, - Tcl_Interp *interp, int argc, CONST char **argv)); +EXTERN int TkUnsupported1ObjCmd _ANSI_ARGS_((ClientData clientData, + Tcl_Interp *interp, int objc, Tcl_Obj * CONST + objv[])); # undef TCL_STORAGE_CLASS # define TCL_STORAGE_CLASS DLLIMPORT diff --git a/generic/tkWindow.c b/generic/tkWindow.c index d392241..0d34290 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWindow.c,v 1.66 2005/01/07 11:14:39 dkf Exp $ + * RCS: @(#) $Id: tkWindow.c,v 1.67 2005/03/23 22:17:26 wolfsuit Exp $ */ #include "tkPort.h" @@ -177,7 +177,7 @@ static TkCmd commands[] = { #if defined(MAC_OSX_TK) {"::tk::unsupported::MacWindowStyle", - TkUnsupported1Cmd, NULL, 1, 1}, + NULL, TkUnsupported1ObjCmd, 1, 1}, #endif {(char *) NULL, (int (*) _ANSI_ARGS_((ClientData, Tcl_Interp *, int, CONST char **))) NULL, NULL, 0} }; |