Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - File :: Recent menu with no open windows
File :: Recent menu with no open windows
 
   NeoOffice Forum Index -> NeoOffice Testing
View previous topic :: View next topic  
Author Message
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Fri Feb 15, 2008 7:38 am    Post subject:

Yes - I was using haxie as a generic term for anything that might in some way influence the menubar (I've had menubar apps before mow that have really futzed with other apps), as well as the more specific usage - in fact, NOMu makes no difference to this, I was just trying to be factually accurate and muddied things instead. Confused
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Wed Feb 20, 2008 12:01 am    Post subject:

OK I'll take a look at this and see if I can figure anything out. I normally am using 10.4. The Help menu in 10.5 is "special"...the OS now looks for menus with that name and adds in the extra search and navigation field. That may be what's causing the side-effect for the Help menu.

In the meantime, a workaround may be to create a new menu with a different name (Tools > Customize) and put the standard help items in that new menu. That should remove the special 10.5 behaviour triggered by the menu title.

ed
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Sun Mar 02, 2008 3:38 pm    Post subject:

pluby wrote:
pluby wrote:
rays wrote:
On the other hand, when I open the Preferences window, I do still have active menu items viewable in the drop down menus available in the Mac top menu bar. Amongst those is the Window>Close Window cmnd-w which is not greyed out. This is what led me to expect selecting that menu item or using cmnd-w at that stage would close the preferences window. (Which, of course, it doesn't.)


The behavior you describe has been in NeoOffice for quite a while now. The menus that you see when opening a non-native dialog (like Tools :: Options) are really the menus of the dialog's parent window, not the dialog window as OOo has no menus in any of its dialog windows.


I have uploaded a new test patch that fixes the long-standing problem that rays described. In the new test patch NeoOffice will disable all of the menus if a modal dialog (such as Tools :: Option) is displayed.


I have been wondering whether "will disable all of the menus" meant that no menus would appear in the menu bar, or that all menu items would be grayed-out.

I first though that the menus should disappear and almost posted something about it, but since all items were grayed-out for me under Tiger, I assumed this was the intended behavior.

However, I just booted under Panther to check whether bug 2945 was specific to that OS, and realized that the behavior of NeoOffice was different. Here's what I get with NeoOffice 2.2.2 Patch 11 Test 2:

1) under Mac OS X 10.3.9, when I open a modal dialog (NeoOffice > About NeoOffice, NeoOffice > Preferences… or Tools > Options…, Format > Page…), all menus other than the NeoOffice menu disappear from the menu bar;

2) under Mac OS X 10.4.11 PowerPC (and possibly under 10.5.2 Intel as well), when I open a modal dialog, all menus remain in the menu bar, but all menu items not in the NeoOffice menu are grayed-out;

Is this normal, and is the behavior I see under Tiger expected?
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Sun Mar 02, 2008 4:29 pm    Post subject:

Offhand, given the 10.3.9 results I think this might be a Java VM issue. My weird AWT delegate code, IIRC, recreates the menus on a per window basis so if they don't show up for a window it might be a VM difference based on window class.

I do have one testing machine left with 10.3 on it and can try to dive in further. My Quad can't boot 10.3 Sad

ed
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun Mar 02, 2008 7:27 pm    Post subject:

Samwise wrote:
1) under Mac OS X 10.3.9, when I open a modal dialog (NeoOffice > About NeoOffice, NeoOffice > Preferences… or Tools > Options…, Format > Page…), all menus other than the NeoOffice menu disappear from the menu bar;

2) under Mac OS X 10.4.11 PowerPC (and possibly under 10.5.2 Intel as well), when I open a modal dialog, all menus remain in the menu bar, but all menu items not in the NeoOffice menu are grayed-out;

Is this normal, and is the behavior I see under Tiger expected?


Yes, this is normal. Java on Panther completely hides all of the menus in the menubar when a dialog window is displayed whereas Java on Tiger and later will do any hiding. In both cases, a disable the menus when a dialog is displayed, but due to the differences in Apple's Java behavior, the menu items will always disappear on Panther.

Patrick
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Mon Mar 03, 2008 10:06 am    Post subject:

OK I see.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Mar 04, 2008 1:17 pm    Post subject:

FYI. I have posted the following new test patch. As a result of bug 2922, I changed the menu behavior so that when a dialog or palette window has focus, the menubar is hidden instead of disabled. This approach, which is the approach that Java does by default on 10.3.x, is a lot simpler to implement and, hopefully, will be more robust on different versions of Mac OS X:

PowerPC:
http://jane.neooffice.org/test/NeoOffice-2.2.2-Patch-11-Test-4-PowerPC.dmg

Intel:
http://jane.neooffice.org/test/NeoOffice-2.2.2-Patch-11-Test-4-Intel.dmg

Patrick
Back to top
Samwise
Captain Naiobi


Joined: Apr 25, 2006
Posts: 2315
Location: Montpellier, France

PostPosted: Tue Mar 04, 2008 2:25 pm    Post subject:

Nice Wink
Back to top
Eponymous
Blue Pill


Joined: Aug 31, 2007
Posts: 4

PostPosted: Sun Apr 27, 2008 12:12 pm    Post subject:

pluby wrote:
FYI. I have posted the following new test patch. As a result of bug 2922, I changed the menu behavior so that when a dialog or palette window has focus, the menubar is hidden instead of disabled. This approach, which is the approach that Java does by default on 10.3.x, is a lot simpler to implement and, hopefully, will be more robust on different versions of Mac OS X
Yes, nicer would be if Apple would fix their java implementation so that the standard OS X behavior would work here.

The standard is for the menues to remain active, with any commands that make sense to work for the last active document window, as can easily be seen in TextEdit with the font palette open.

For example, command-W closes the palette window, but pretty much all the other commands act on the document window.
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sun Apr 27, 2008 12:27 pm    Post subject:

Eponymous wrote:
Yes, nicer would be if Apple would fix their java implementation so that the standard OS X behavior would work here.

The standard is for the menues to remain active, with any commands that make sense to work for the last active document window, as can easily be seen in TextEdit with the font palette open.

For example, command-W closes the palette window, but pretty much all the other commands act on the document window.


Fix Java is only one of the issues here. The bigger issue is the fundamental design of NeoOffice's underlying OpenOffice.org code. OpenOffice.org was designed as a Windows application and the Windows model of each window has its own menu is firmly embedded into the OpenOffice.org code.

We are very familiar with Apple's Human Interface Guidelines so the issue is not ignorance of Apple's HIG, the issue is that it takes a great deal of developer time and funding to bend and twist the OpenOffice.org code into those guidelines. This is the primary reason that after 6 years, NeoOffice still has many significant deviations from Apple's HIG.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Mar 21, 2009 10:05 am    Post subject:

I had to refactor the fix for the menu bugs that rays and yoxi reported earlier in this thread in order to fix a deadlocking bug reported in bug 3425.

Since there is a risk that my fix for bug 3425 will cause rays' or yoxi's bugs to reoccur, can you install the following test patch and tell us if rays' and yoxi's bugs are still fixed for you? Note that there are test patches for both NeoOffice 2.2.5 and 3.0 Early Access 2 so download the patch that matches the NeoOffice version that you are currently running:

Intel:
http://joe.neooffice.org/test/NeoOffice-2.2.5-Patch-7-Test-8-Intel.dmg
http://joe.neooffice.org/test/NeoOffice-3.0_Early_Access_2-Patch-1-Test-13-Intel.dmg

PowerPC:
http://joe.neooffice.org/test/NeoOffice-2.2.5-Patch-7-Test-8-PowerPC.dmg
http://joe.neooffice.org/test/NeoOffice-3.0_Early_Access_2-Patch-1-Test-13-PowerPC.dmg

Patrick
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Sat Mar 21, 2009 11:50 pm    Post subject:

No problem so far in v3 Intel after applying this patch.

- padmavyuha
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Tue Apr 07, 2009 9:45 pm    Post subject:

Another deadlock was found that is related to bug 3425. Ithink that I fixed this latest deadlocking bug, but I had to make some less than trivial changes to NeoOffice's native menu code.

Since there is a risk that my fix for bug 3425 will cause rays' or yoxi's bugs to reoccur, can you install the latest test patch and tell us if rays' and yoxi's bugs are still fixed for you? I have posted links to both NeoOffice 2.2.5 and NeoOffice 3.0 test patches in my last post in bug 3425.

Patrick
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Testing All times are GMT - 7 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.