| Age | Commit message (Collapse) | Author | Files | Lines |
|
Both meson and autotools were stripping g_return_if_fail calls in the
preprocessor. This meant that when mozo hit a NULL tree root during menu
reload, the guard in matemenu_tree_item_ref did nothing and it crashed
instead of returning gracefully.
We change the guards to direct NULL checks and enable debug mode as the
default to fix this.
Fixes mate-desktop/mozo#90
|
|
PR #120 fixed the autotools build to conditionally include GioUnix-2.0
in GIR scanning when gio-unix-2.0 >= 2.80 is present, but the meson
build was not updated. Apply the equivalent fix.
|
|
|
|
Those directories have been deprecated for over a decade and GIO's
GDesktopAppInfo API already ignores them ...
It's time to let go, simply ignore any <LegacyKDEDirs> and <LegacyDir>
elements in menus.
Backported from https://gitlab.gnome.org/GNOME/gnome-menus/-/commit/13c6790a
Fixes #108
|
|
This is required since Gio 2.80, see [^1]. We however make the
dependency on 2.80 conditional to support older systems as well, as
they don't require the modification to work.
Fixes #119 and mate-desktop/mozo#92.
[^1]: https://gitlab.gnome.org/GNOME/gnome-menus/-/commit/fe1eca74e1b6d75941d56088ea2aeca97b639926
|
|
The emit_changed_signal callback was attempting to run on a
submenu that had already been destroyed by its parent menu.
Closes #116
|
|
After switching to meson, calling the `g-ir-scanner` command with the
`--warn-all` parameter in the generated `build.ninja` file will display these warnings:
```
Warning: MateMenu: symbol="DesktopEntryType": unknown namespace for identifier "DesktopEntryType"
Warning: MateMenu: symbol='desktop_entry_new': Unknown namespace for symbol 'desktop_entry_new'
Warning: MateMenu: symbol='EntryDirectory': Unknown namespace for identifier 'EntryDirectory'
```
The reason for these warnings is that we use `MateMenu` as `identifier_prefix`
and `matemenu` as `symbol_prefix`, but the symbols that report warnings do not
start with these prefixes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Currently gir generated files are installed in INTROSPECTION_GIRDIR and
INSTROSPECTION_TYPELIBDIR.
|
|
Assume everywhere that the realpath() implementation has the
POSIX.1-2008 behaviour, i.e. allowing NULL as second parameter and thus
returning a newly allocated buffer; it is not just a GNU extension,
and supported already by modern libc's on other OSes.
menu_canonicalize_file_name() is always called with FALSE as second
parameter, so it is replaced directly by realpath(); this allows the
complete removal of canonicalize.{c,h}.
This is a forward-port of the same changes done in gnome-menus, see:
https://gitlab.gnome.org/GNOME/gnome-menus/merge_requests/4
|
|
|
|
|
|
|
|
in ~/.config/menus if not exists
|
|
Closes https://github.com/mate-desktop/mate-menus/pull/27
|
|
Closes https://github.com/mate-desktop/mate-menus/issues/20
|
|
|
|
|
|
|
|
|