For my application, I'm implementing context menus. So I was following the example described here:
Chapter 3.16: https://www.hollywood-mal.com/docs/html ... Menus.html
Code: Select all
<menu title="Context menu" id="ctxtmenu">
<item>Cut</item>
<item>Copy</item>
<item>Paste</item>
</menu>
<window>
...
<texteditor contextmenu="ctxtmenu"/>
...
</window>
Only a day later I realized my very silly mistake: The notifications (without stating notify="selected") work as soon as the menuitems have IDs, which of course makes totally sense.
Still, it might save some time to others (as it would have for me) to change the example above to the following:
Code: Select all
<menu title="Context menu" id="ctxtmenu">
<item id="mni_cut">Cut</item>
<item id="mni_copy">Copy</item>
<item id="mni_paste">Paste</item>
</menu>
<window>
...
<texteditor contextmenu="ctxtmenu"/>
...
</window>
The same example can also be found here:
Chapter 30.1: https://www.hollywood-mal.com/docs/html ... /Menu.html
Cheers,
Michael