forked from AuroraMiddleware/gtk
Add some menu markup documentation
This commit is contained in:
parent
7c1717886a
commit
4c1a45f9ab
@ -103,6 +103,22 @@
|
||||
* ]]>
|
||||
* </programlisting>
|
||||
* </example>
|
||||
*
|
||||
* The XML format understood by #GtkBuilder for #GMenuModel consists
|
||||
* of a toplevel <tag class="starttag">menu</tag> element, which contains
|
||||
* one or more <tag class="starttag">item</tag> elements. Each
|
||||
* <tag class="starttag">item</tag> element contains
|
||||
* <tag class="starttag">attribute</tag> and <tag class="starttag">link</tag>
|
||||
* elements with a mandatory name attribute.
|
||||
* <tag class="starttag">link</tag> elements have the same content
|
||||
* model as <tag class="starttag">menu</tag>.
|
||||
*
|
||||
* Attribute values can be translated using gettext, like other #GtkBuilder
|
||||
* content. <tag class="starttag">attribute</tag> elements can be marked for
|
||||
* translation with a <literal>translatable="yes"</literal> attribute.
|
||||
* It is also possible to specify message context and translator comments,
|
||||
* using the context and comments attributes. To make use of this, the
|
||||
* #GtkBuilder must have been given the gettext domain to use.
|
||||
*/
|
||||
|
||||
typedef GSimpleActionGroupClass GtkApplicationWindowActionsClass;
|
||||
|
Loading…
Reference in New Issue
Block a user