[Libreoffice] [PATCH] Introduce HideDisabledMenuItems style setting

Christoph Noack christoph at dogmatux.com
Wed Apr 27 13:11:02 PDT 2011

Hi Christian!

Sorry, it seems that I'm still a bit confused about that issue ...

Am Mittwoch, den 27.04.2011, 11:13 +0000 schrieb Christian Dywan:
> Am 27.04.2011 13:01:36 schrieb Christoph Noack:
> > Just a small question ... do I get it right that the disabled menu items 
> > get hidden instead of being "grayed out"? Real interest: could you 
> > please explain what the rationale for the change is? As far as I know, 
> > there is currently no platform guideline that requires that (or even 
> > allows that) - but I might be wrong. 
> Yes, disabled becomes hidden effectively. That is *current* behaviour
> on all systems as far as I can tell, so I'm not introducing anything
> new, to make that clear.

Okay, then we really talk about those items in the application menu -
now being hidden instead of "grayed out" temporarily (during runtime).

> I explicitly want to change this for GTK+ because it is wrong
> behaviour.
> As far as I know, OS X and KDE are the only platforms doing this (I'll
> ignore Maemo). I don't know the exact guideline, I didn't find clear
> documentation 

Mac OS X Human Interface Guidelines
        Naming Menu Items: "When a menu item is unavailable—because it
        doesn’t apply to the selected object or to the selected object
        in its current state, or because nothing is selected, for
        example—the item should appear dimmed (gray) in the menu ..."

KDE User Interface Guidelines
        "Menu items should not be added or removed during runtime.
        Disable or enable them instead."

GNOME Human Interface Guidelines Command Items Guidelines: "Do not remove command items
        from the menu when they are unavailable, make them insensitive

Microsoft User Experience Interaction Guidelines
        "Disable menu items that don't apply to the current context,
        instead of removing them. Doing so makes menu bar contents
        stable and easier to find."

Is that the information you searched for?

> about it but for example the web page context menu on OS X does it and
> editor popups I saw in KDE.

In this case, context menus are a different matter - they hide elements
instead of removing them (or positively: only show what's available).

But we have other issues within our context menus that need to be fixed
(since 15 years or so *g*).

> That said, Lubos or anyone else, please correct me if my observation
> is wrong, I'll adapt the patch accordingly.



LibreOffice Design Team. Make it just work, and look great, too!

More information about the LibreOffice mailing list