diff Mac/Python/macglue.c @ 16647:728c11562187 legacy-trunk

More changes to attempt to get the menubar back on exit. Without success:-(
author Jack Jansen <jack.jansen@cwi.nl>
date Sat, 17 Feb 2001 22:02:07 +0000
parents 9ce9e0342cc1
children a9485d404f05
line wrap: on
line diff
--- a/Mac/Python/macglue.c	Sat Feb 17 22:00:43 2001 +0000
+++ b/Mac/Python/macglue.c	Sat Feb 17 22:02:07 2001 +0000
@@ -162,7 +162,7 @@
 /*
 ** Sioux menu bar, saved early so we can restore it
 */
-static Handle sioux_mbar;
+static MenuBarHandle sioux_mbar;
 
 /*
 ** Some stuff for our GetDirectory and PromptGetFile routines
@@ -784,11 +784,19 @@
 void
 PyMac_RestoreMenuBar()
 {
+#if 0
+	/* This doesn't seem to work anymore? Or only for Carbon? */
+	MenuBarHandle curmenubar;
+	
+	curmenubar = GetMenuBar();
 	if ( sioux_mbar ) {
 		SetMenuBar(sioux_mbar);
 		DrawMenuBar();
-	} else
+	} else {
 		PyMac_InitMenuBar();
+		DrawMenuBar();
+	}
+#endif
 }