https://bugs.kde.org/show_bug.cgi?id=422969
Bug ID: 422969
Summary: Global menu: GTK3 apps has wrong menu item types
Product: plasmashell
Version: 5.19.0
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Global Menu
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: 1.0
SUMMARY
The "Global menu" widget sometimes shows wrong menu item types for menus
exported from GTK3 apps with appmenu-gtk-module.
STEPS TO REPRODUCE
1. Open a GTK3 app that has a menu (e.g. adriconf, a DRI configurator)
2. Navigate to "Application" -> "<driver name>" (should be the last item, e.g.
iris, i965)
3. Look at the submenu
OBSERVED RESULT
The submenu is a long list of "regular" items, with only one of them being
actionable.
EXPECTED RESULT
The submenu should be a list of radio options.
Switching to another window that has a menu (e.g. Telegram or Chromium) and
back might correct this.
SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
OS Type: 64-bit
ADDITIONAL INFORMATION
It seems that gmenu-dbusmenu-proxy is not doing the right thing:
% xprop | grep _KDE_NET_WM_APPMENU_OBJECT_PATH
_KDE_NET_WM_APPMENU_OBJECT_PATH(STRING) = "/MenuBar/15"
# Get the top level menu
~ % busctl --user call org.kde.plasma.gmenu_dbusmenu_proxy /MenuBar/15
com.canonical.dbusmenu GetLayout iias 0 1 0
u(ia{sv}av) 1 0 1 "children-display" s "submenu" 4 (ia{sv}av) 1 4 "enabled" b
true "label" s "" "type" s "separator" "visible" b true 0 (ia{sv}av) 2001 4
"children-display" s "submenu" "enabled" b true "label" s "File" "visible" b
true 0 (ia{sv}av) 2002 4 "children-display" s "submenu" "enabled" b true
"label" s "Application" "visible" b true 0 (ia{sv}av) 2003 5 "children-display"
s "submenu" "enabled" b true "icon-name" s "help-contents" "label" s "Help"
"visible" b true 0
# Get the "Application" menu
~ % busctl --user call org.kde.plasma.gmenu_dbusmenu_proxy /MenuBar/15
com.canonical.dbusmenu GetLayout iias 2002 1 0
u(ia{sv}av) 1 2000000 1 "children-display" s "submenu" 4 (ia{sv}av) 2000001 4
"enabled" b true "label" s "" "type" s "separator" "visible" b true 0
(ia{sv}av) 2001001 4 "enabled" b true "label" s "Add new" "shortcut" aas 1 2
"Control" "n" "visible" b true 0 (ia{sv}av) 2001002 4 "enabled" b true "label"
s "Remove current Application" "shortcut" aas 1 2 "Control" "d" "visible" b
true 0 (ia{sv}av) 2001003 4 "children-display" s "submenu" "enabled" b true
"label" s "iris" "visible" b true 0
# Get the submenu
~ % busctl --user call org.kde.plasma.gmenu_dbusmenu_proxy /MenuBar/15
com.canonical.dbusmenu GetLayout iias 2001003 1 0
u(ia{sv}av) 1 4000000 1 "children-display" s "submenu" 130 (ia{sv}av) 4000001 4
"enabled" b true "label" s "" "type" s "separator" "visible" b true 0
(ia{sv}av) 4001001 3 "enabled" b false "label" s "7 Days To Die (32-bit)"
"visible" b true 0 (ia{sv}av) 4001002 3 "enabled" b false "label" s "7 Days To
Die (64-bit)" "visible" b true 0 (ia{sv}av) 4001003 3 "enabled" b false "label"
s "Alien Isolation" "visible" b true 0 (ia{sv}av) 4001004 3 "enabled" b false
"label" s "American Truck Simulator" "visible" b true 0 (ia{sv}av) 4001005 3
"enabled" b false "label"...
Notice that the items in the submenu do not identify them as "radio".
--
You are receiving this mail because:
You are watching all bug changes.