MenuBar/ContextMenu: hide the entries interface

This can only be used internally by the style to implement the actual
ContextMenu

Only the declarative `MenuItem` interface is exposed.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Olivier Goffart 2025-01-25 11:06:31 +01:00 committed by GitHub
parent ed179cd5b1
commit 98e8386aee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 156 additions and 55 deletions

View file

@ -7,6 +7,19 @@ export component A {
// ^error{'show' is not a callback in ContextMenu}
debug("hello");
}
MenuItem {
}
property <int> entries: 45;
// ^error{Cannot re-define internal property 'entries'}
property <int> sub-menu: 45;
// ^error{Cannot re-define internal property 'sub-menu'}
property <string> activated: "me";
// ^error{Cannot re-define internal property 'activated'}
property <string> xyz: "me";
}
}