Bug 295821 - x11/mate-menus: Edit Menus not working (with fixes)
Summary: x11/mate-menus: Edit Menus not working (with fixes)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-03 17:04 UTC by Ale
Modified: 2026-06-08 10:30 UTC (History)
1 user (show)

See Also:
ericbsd: maintainer-feedback+


Attachments
patch from https://gitlab.gnome.org/GNOME/gnome-menus/-/commit/fe1eca74e1b6d75941d56088ea2aeca97b639926 (2.06 KB, patch)
2026-06-03 17:04 UTC, Ale
no flags Details | Diff
Switch to GitHub release and upgrade to 1.28.1 (1.49 KB, patch)
2026-06-05 13:40 UTC, Ale
no flags Details | Diff
Switch to GitHub release and upgrade to 1.28.1 - PORTSCOUT fixed (1.48 KB, patch)
2026-06-05 13:50 UTC, Ale
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ale 2026-06-03 17:04:16 UTC
Created attachment 271450 [details]
patch from https://gitlab.gnome.org/GNOME/gnome-menus/-/commit/fe1eca74e1b6d75941d56088ea2aeca97b639926

Trying to edit the Mate menu, I got the following error:
ERROR:../pygobject/gi/pygi-cache.c:274:_arg_cache_new_for_interface: code should not be reached
Bail out! ERROR:../pygobject/gi/pygi-cache.c:274:_arg_cache_new_for_interface: code should not be reached

So I tried to rebuild the following ports:
- devel/pygobject-common
- devel/py-pygobject
- x11/mate-menus
but the error changed to the following:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/Mozo/MainWindow.py", line 401, in on_menu_tree_cursor_changed
    self.loadItems(self.menu_store[menu_path][2], menu_path)
  File "/usr/local/lib/python3.11/site-packages/Mozo/MainWindow.py", line 257, in loadItems
    for item, show in self.editor.getItems(menu):
  File "/usr/local/lib/python3.11/site-packages/Mozo/MenuEditor.py", line 300, in getItems
    yield (item, self.__isVisible(item))
                 ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/Mozo/MenuEditor.py", line 580, in __isVisible
    app_info = item.get_app_info()
               ^^^^^^^^^^^^^^^^^
AttributeError: 'TreeEntry' object has no attribute 'get_app_info'

Doing some search about the error I've found the following:
https://github.com/mate-desktop/mozo/issues/97
https://github.com/mate-desktop/mate-menus/pull/120
(and some other pages linked from the above)

After rebuilding x11/mate-menus with the attached patch Edit Menus is working again.
The patch is created from what has been done for gnome-menus (upstream) and then used for mate-menus in Fedora and Arch.
Later I've found what looks like an upstream patch for mate-menus, but at the moment I have no time to test it:
https://github.com/mate-desktop/mate-menus/pull/120/commits/9c503ce6263f2c0b0af8e23db8f95064f8ac393c
Comment 1 Ale 2026-06-05 13:40:39 UTC
Created attachment 271521 [details]
Switch to GitHub release and upgrade to 1.28.1

I can confirm that the problem is fixed with the commit in the last link of comment #1, which is included in mate-menus-1.28.1.
So here's a patch to switch to GitHub release and upgrade to 1.28.1.
Comment 2 Ale 2026-06-05 13:50:22 UTC
Created attachment 271522 [details]
Switch to GitHub release and upgrade to 1.28.1 - PORTSCOUT fixed

A new patch to fix PORTSCOUT line which I copied from mate-control-center but I forgot to edit.
BTW, wouldn't it be possible to use ${GH_PROJECT} ?
PORTSCOUT=	site:https://github.com/mate-desktop/${GH_PROJECT}/releases/ limitw:1,eve
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-06-08 10:07:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b1bbbac3f48a78125439d49cc7ea4e1ef7fabe0b

commit b1bbbac3f48a78125439d49cc7ea4e1ef7fabe0b
Author:     Eric Turgeon <ericbsd@FreeBSD.org>
AuthorDate: 2026-06-08 09:54:20 +0000
Commit:     Eric Turgeon <ericbsd@FreeBSD.org>
CommitDate: 2026-06-08 10:05:29 +0000

    x11/mate-menus: update to 1.28.1

    PR:             295821

    Reported by:    Ale

 x11/mate-menus/Makefile | 11 ++++++-----
 x11/mate-menus/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 8 deletions(-)