From 471e00455878f78f371230b101c12552bc3411b7 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 18 Mar 2003 23:41:14 +0000 Subject: [PATCH] Tag the "Cancel" button appropriately, in case anyone's using a theme that pays attention to it. [originally from svn r2965] --- mac/macctrls.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mac/macctrls.c b/mac/macctrls.c index bc745140..40514ece 100644 --- a/mac/macctrls.c +++ b/mac/macctrls.c @@ -1,4 +1,4 @@ -/* $Id: macctrls.c,v 1.3 2003/03/18 19:06:51 simon Exp $ */ +/* $Id: macctrls.c,v 1.4 2003/03/18 23:41:14 ben Exp $ */ /* * Copyright (c) 2003 Ben Harris * All rights reserved. @@ -366,6 +366,13 @@ static void macctrl_button(struct macctrls *mcs, WindowPtr window, kControlPushButtonDefaultTag, sizeof(isdefault), &isdefault); } + if (mac_gestalts.apprvers >= 0x110) { + Boolean iscancel = ctrl->button.iscancel; + + SetControlData(mc->button.tbctrl, kControlEntireControl, + kControlPushButtonCancelTag, + sizeof(iscancel), &iscancel); + } add234(mcs->byctrl, mc); curstate->pos.v += 26; }