Add an example for handling app menu fallback

The example shows how to use a menu button instead of the default
menubar when the shell doesn't show the app menu.
This commit is contained in:
Matthias Clasen
2012-07-22 21:01:15 -04:00
parent 9613cf68bd
commit ae81246512
3 changed files with 223 additions and 1 deletions

View File

@ -107,6 +107,14 @@
* </programlisting>
* </example>
*
* <example><title>Handling fallback yourself</title>
* <programlisting>
* <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../examples/sunny.c">
* <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
* </xi:include>
* </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