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
|
@ -139,6 +139,11 @@ class XmlOutput(OutputFormat):
|
|||
self._emit_expression(value.expression, xml)
|
||||
xml.end_tag()
|
||||
|
||||
elif isinstance(value, Menu):
|
||||
xml.start_tag("property", **props)
|
||||
self._emit_menu(value, xml)
|
||||
xml.end_tag()
|
||||
|
||||
elif isinstance(value, ObjectValue):
|
||||
xml.start_tag("property", **props)
|
||||
self._emit_object(value.object, xml)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue