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)
Version:
(earliest affected)
24.2.0.0 alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Main-Menu a11y, Accessibility GTK3
  Show dependency treegraph
 
Reported: 2023-07-27 18:02 UTC by Gabor Kelemen (allotropia)
Modified: 2024-08-24 14:36 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

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: 24.2.0.0.alpha0+ (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.
Comment 2 BogdanB 2024-08-24 14:36:24 UTC
Also in
Version: 24.8.0.3 (X86_64) / LibreOffice Community
Build ID: 0bdf1299c94fe897b119f97f3c613e9dca6be583
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded