Bug 156498 - GTK3 Menus should be disabled when they have no enabled submenus
Summary: GTK3 Menus should be disabled when they have no enabled submenus
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
(earliest affected) alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
Depends on:
Blocks: Main-Menu a11y, Accessibility GTK3
  Show dependency treegraph
Reported: 2023-07-27 18:02 UTC by Gabor Kelemen (allotropia)
Modified: 2023-09-07 15:38 UTC (History)
0 users

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2023-07-27 18:02:42 UTC
This is split off from bug 104382 only for GTK3

With the patch https://gerrit.libreoffice.org/c/core/+/154938 applied, the submenus with only disabled menus are not disabled themselves when using GTK3 backend.
The patch works with gen/qt5/win backends, but not with GTK3.

Steps to Reproduce:
1.Open an empty document in Writer with GTK3 backend
2.Select Table menu
3.You can see Table -> Insert, Table -> Delete menus are enabled, but they have no availabla submenus, so no reason to be enabled.

Version: (X86_64) / LibreOffice Community
Build ID: 851f0dc7cd85eb146b205027cadc8decce0e5bed
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: hu-HU (hu_HU.UTF-8); UI: hu-HU
Calc: threaded
Comment 1 Caolán McNamara 2023-07-28 11:00:29 UTC
It might be that vcl/unx/gtk3/gtksalmenu.cxx is the right place to try and implement that.