maintainer-feedback requested: [Bug 295821] x11/mate-menus: Edit Menus not working

[email protected] Wed, 03 Jun 2026 17:04:16 +0000
Newsgroups gmane.os.freebsd.devel.gnome
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-gnome (Nobody)
<[email protected]> for maintainer-feedback:
Bug 295821: x11/mate-menus: Edit Menus not working
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295821



--- Description ---
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_interfa=
ce:
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 4=
01,
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 2=
57,
in loadItems
    for item, show in self.editor.getItems(menu):
  File "/usr/local/lib/python3.11/site-packages/Mozo/MenuEditor.py", line 3=
00,
in getItems
    yield (item, self.__isVisible(item))
		 ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/Mozo/MenuEditor.py", line 5=
80,
in __isVisible
    app_info =3D 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 worki=
ng
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 t=
he
moment I have no time to test it:
https://github.com/mate-desktop/mate-menus/pull/120/commits/9c503ce6263f2c0=
b0af
8e23db8f95064f8ac393c