! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Using <OnlyUnallocated> breaks applications menu
Status:
RESOLVED: FIXED

Comments

Description Jani Välimaa 2015-04-07 12:22:24 CEST
Since xfce4-popup-applicationsmenu was ported to new GarconGtkMenu [1], using <OnlyUnallocated> in menu file some categories aren't shown.

If <OnlyUnallocated> is used and all items are allocated to some sub-menu then the main category isn't shown at all. There's also a report about the issue in Launchpad [2].

Right click menu in desktop doesn't suffer this issue as IIUC it isn't ported to GargonGtkMenu.

[1] http://git.xfce.org/xfce/xfce4-panel/commit/?id=eb2098a7d18df0a2ecd995f781cc7c861337e1f6
[2] https://launchpad.net/bugs/1311981
Comment 1 Jani Välimaa 2015-04-07 12:25:51 CEST
Created attachment 6170 
Screenshot of nonworking menu

Here's the screenshot about nonworking menu. I'm sorry about all text being in Finnish, but "Pelit" (games) and "Tiede" (sciences) categories are missing.
Comment 2 Jani Välimaa 2015-04-07 12:28:01 CEST
Created attachment 6171 
Screenshot of working menu

Here's the screenshot of the working right click menu in desktop. You can see "Pelit" (games) and "Tiede" (sciences) categories.
Comment 3 Jani Välimaa 2015-04-07 12:33:53 CEST
Created attachment 6172 
Used menu file

And here's the menu file.
Comment 4 Jani Välimaa 2015-04-07 19:53:41 CEST
Created attachment 6173 
Fix for bug 11801

Seems the problem lies in garcon-gtk and there's an easy fix for it. See the attached patch for latest gargon git.

Tested it quickly and it seems to be working, at least for me.
Comment 5 Thaddaeus Tintenfisch editbugs 2015-04-07 21:45:38 CEST
*** Bug 9825 has been marked as a duplicate of this bug. ***
Comment 6 ewens 2015-10-21 20:37:21 CEST
I've made source and .deb packages containing the fix. The packages are compatible with Ubuntu 14.04 "trusty" and are at http://uberstudent.net/pool/main/g/garcon/
Comment 7 Eric Koegel editbugs 2016-06-03 08:03:00 CEST
Thanks, pushed to master in:
commit 6ce5f2f7d6e98493deb8153ea28f37d4489c5e21
Author: Jani Välimaa <wally@mageia.org>
Date:   Tue Apr 7 20:24:55 2015 +0300

    Fix missing menus when all items are in submenus (bug 11801)
    
    Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
http://git.xfce.org/xfce/garcon/commit/?id=6ce5f2f7d6e98493deb8153ea28f37d4489c5e21

Bug #11801

Reported by:
Jani Välimaa
Reported on: 2015-04-07
Last modified on: 2016-06-03
Duplicates (1):
  • 9825 [garcon] doesn't work properly

People

Assignee:
Jannis Pohlmann
CC List:
3 users

Version

Version:
unspecified

Attachments

Screenshot of nonworking menu (33.15 KB, image/png)
2015-04-07 12:25 CEST , Jani Välimaa
no flags
Screenshot of working menu (362.48 KB, image/png)
2015-04-07 12:28 CEST , Jani Välimaa
no flags
Used menu file (33.81 KB, text/plain)
2015-04-07 12:33 CEST , Jani Välimaa
no flags
Fix for bug 11801 (870 bytes, patch)
2015-04-07 19:53 CEST , Jani Välimaa
no flags

Additional information