mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
Allow inline menus
Newer versions of GTK allow menus to be specified inline in properties.
This commit is contained in:
parent
4d42bd68c1
commit
71dcc02198
10 changed files with 34 additions and 9 deletions
5
tests/samples/inline_menu.blp
Normal file
5
tests/samples/inline_menu.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
MenuButton {
|
||||
menu-model: menu primary_menu {};
|
||||
}
|
14
tests/samples/inline_menu.ui
Normal file
14
tests/samples/inline_menu.ui
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
DO NOT EDIT!
|
||||
This file was @generated by blueprint-compiler. Instead, edit the
|
||||
corresponding .blp file and regenerate this file with blueprint-compiler.
|
||||
-->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkMenuButton">
|
||||
<property name="menu-model">
|
||||
<menu id="primary_menu"></menu>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
3
tests/samples/menu_no_id.blp
Normal file
3
tests/samples/menu_no_id.blp
Normal file
|
@ -0,0 +1,3 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
menu {}
|
10
tests/samples/menu_no_id.ui
Normal file
10
tests/samples/menu_no_id.ui
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
DO NOT EDIT!
|
||||
This file was @generated by blueprint-compiler. Instead, edit the
|
||||
corresponding .blp file and regenerate this file with blueprint-compiler.
|
||||
-->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<menu></menu>
|
||||
</interface>
|
Loading…
Add table
Add a link
Reference in a new issue