From 6b498de1659247b04f7b5f097bbaf7b11bd5d8a2 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 15 Mar 2001 14:39:03 +0000 Subject: [PATCH] Handle the apple menu differently under Carbon. --- Mac/Lib/FrameWork.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py index 8a2ef17e960..4735fc42e6c 100644 --- a/Mac/Lib/FrameWork.py +++ b/Mac/Lib/FrameWork.py @@ -676,10 +676,14 @@ class AppleMenu(Menu): def __init__(self, bar, abouttext="About me...", aboutcallback=None): Menu.__init__(self, bar, "\024") - self.additem(abouttext, None, aboutcallback) - self.addseparator() if MacOS.runtimemodel == 'ppc': + self.additem(abouttext, None, aboutcallback) + self.addseparator() self.menu.AppendResMenu('DRVR') + else: + # Additem()'s tricks do not work for "apple" menu under Carbon + self.menu.InsertMenuItem(abouttext, 0) + self.items.append((abouttext, None, aboutcallback, None)) def dispatch(self, id, item, window, event): if item == 1: