summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordas <das>2003-09-25 05:37:48 (GMT)
committerdas <das>2003-09-25 05:37:48 (GMT)
commit9a0aa47ac345a885549c42ece41c68c066c15d58 (patch)
treefe1f38675ef73180e8511ef9e452533ff2ddb556 /macosx
parentb789bd9bde8fcc02d873ec79094b914aa2627fbc (diff)
downloadtk-9a0aa47ac345a885549c42ece41c68c066c15d58.zip
tk-9a0aa47ac345a885549c42ece41c68c066c15d58.tar.gz
tk-9a0aa47ac345a885549c42ece41c68c066c15d58.tar.bz2
* library/demos/widget: don't create iconwindow on aqua, but add
about menu like on classic. * macosx/Makefile: pass MAKEOVERRIDES to pxbuild. * macosx/tkMacOSXButton.c: added -compound support for bevel buttons.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Makefile4
-rw-r--r--macosx/tkMacOSXButton.c22
2 files changed, 23 insertions, 3 deletions
diff --git a/macosx/Makefile b/macosx/Makefile
index bb5adf6..e4f029a 100644
--- a/macosx/Makefile
+++ b/macosx/Makefile
@@ -3,7 +3,7 @@
# Simple makefile for building on Mac OS X with the
# Project Builder command line tool 'pbxbuild'
#
-# RCS: @(#) $Id: Makefile,v 1.7.2.2 2003/07/18 01:06:33 das Exp $
+# RCS: @(#) $Id: Makefile,v 1.7.2.3 2003/09/25 05:37:48 das Exp $
#
################################################################################
@@ -25,7 +25,7 @@ PBXBUILD = /usr/bin/pbxbuild
BUILD = ${PBXBUILD} SYMROOT="${SYMROOT}" -target "${TARGET}" \
TCL_FRAMEWORK_DIR="${TCL_FRAMEWORK_DIR}" \
- TCLSH_DIR="${TCLSH_DIR}"
+ TCLSH_DIR="${TCLSH_DIR}" ${MAKEOVERRIDES}
DEVBUILD = ${BUILD} -buildstyle "${DEVBUILDSTYLE}"
DEPBUILD = ${BUILD} -buildstyle "${DEPBUILDSTYLE}"
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index 2366e01..749b4ef 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXButton.c,v 1.2.2.2 2003/04/30 16:19:07 hobbs Exp $
+ * RCS: @(#) $Id: tkMacOSXButton.c,v 1.2.2.3 2003/09/25 05:37:48 das Exp $
*/
#include "tkButton.h"
@@ -1171,6 +1171,26 @@ SetupBevelButton(
"SetControlData BevelButtonGraphicAlign failed, %d\n", err );
}
+ if (butPtr->compound != COMPOUND_NONE) {
+ ControlButtonTextPlacement thePlacement = \
+ kControlBevelButtonPlaceNormally;
+ if (butPtr->compound == COMPOUND_TOP) {
+ thePlacement = kControlBevelButtonPlaceBelowGraphic;
+ } else if (butPtr->compound == COMPOUND_BOTTOM) {
+ thePlacement = kControlBevelButtonPlaceAboveGraphic;
+ } else if (butPtr->compound == COMPOUND_LEFT) {
+ thePlacement = kControlBevelButtonPlaceToRightOfGraphic;
+ } else if (butPtr->compound == COMPOUND_RIGHT) {
+ thePlacement = kControlBevelButtonPlaceToLeftOfGraphic;
+ }
+ if ((err=SetControlData(controlHandle, kControlButtonPart,
+ kControlBevelButtonTextPlaceTag,
+ sizeof(ControlButtonTextPlacement),
+ (char *) &thePlacement)) != noErr ) {
+ fprintf(stderr,
+ "SetControlData BevelButtonTextPlace failed, %d\n", err );
+ }
+ }
}
/*