mirror of
https://github.com/labwc/labwc.git
synced 2026-02-09 10:07:31 -05:00
menu: support pipemenu with the toplevel <menu> element
For example:
<?xml version="1.0"?>
<openbox_menu>
<menu id="root-menu" label="" execute="obmenu-generator"/>
</openbox_menu>
Fixes: #2238
Co-Authored-By: @Consolatis
This commit is contained in:
parent
a93eb84335
commit
956b271f9b
3 changed files with 90 additions and 15 deletions
|
|
@ -112,6 +112,16 @@ ID attributes are unique. Duplicates are ignored.
|
|||
When writing pipe menu scripts, make sure to escape XML special characters such
|
||||
as "&" ("&"), "<" ("<"), and ">" (">").
|
||||
|
||||
A pipemenu can also be used to define the toplevel *<menu>* element. In this
|
||||
case the entire menu.xml file would be reduced to something like this (replacing
|
||||
obmenu-generator with the menu generator of your choice):
|
||||
|
||||
```
|
||||
<?xml version="1.0"?>
|
||||
<openbox_menu>
|
||||
<menu id="root-menu" label="" execute="obmenu-generator"/>
|
||||
</openbox_menu>
|
||||
```
|
||||
|
||||
# LOCALISATION
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue