This fixes a NSApplication.m:3995:      NSLog(@"Bogus attempt to set
main window");
from gorm when double clicking a pop-up button then trying to edit the
pop-up menu item by clicking on it,
not sure why it wants to be the main window, but it does..
it still seems to suffer from unmapping/remapping all windows causing a flicker,
but at least now it sometimes works.
Index: Palettes/0Menus/GormMenuEditor.m
===================================================================
--- Palettes/0Menus/GormMenuEditor.m	(revision 33793)
+++ Palettes/0Menus/GormMenuEditor.m	(working copy)
@@ -126,7 +126,7 @@
   NSPoint	loc = [theEvent locationInWindow];
   NSView	*hit = [super hitTest: loc];
   
-  [[self window] becomeMainWindow];
+  [[self window] makeMainWindow];
   [[self window] makeFirstResponder: self];
 
   if (hit == rep)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33793)
+++ ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2011-08-28  Matt Rice  <[email protected]>
+
+	* Palettes/0Menu/GormMenuEditor.m: Change becomeMainWindow call
+	to makeMainWindow.
+
 2011-05-17 20:43-EDT Gregory John Casamento <[email protected]>
 
 	* GormCore/GormStandaloneViewEditor.h: 
_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to