From: ben Date: Tue, 18 Mar 2003 23:41:14 +0000 (+0000) Subject: Tag the "Cancel" button appropriately, in case anyone's using a theme that X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/855d05c4d1072b1cf53ddaa7a3446f10516204ad?hp=23897ed0d4c468bc4d78721274de5d5634e57e85 Tag the "Cancel" button appropriately, in case anyone's using a theme that pays attention to it. git-svn-id: svn://svn.tartarus.org/sgt/putty@2965 cda61777-01e9-0310-a592-d414129be87e --- 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; }