forked from AuroraMiddleware/gtk
Some more menu-related docs
This commit is contained in:
parent
aeb550ffd7
commit
06a75b7e1f
@ -61,6 +61,12 @@
|
||||
* While GtkApplication works fine with plain #GtkWindows, it is recommended
|
||||
* to use it together with #GtkApplicationWindow.
|
||||
*
|
||||
* To set an app menu on a GtkApplication, use g_application_set_app_menu().
|
||||
* The #GMenuModel that this function expects is usually constructed using
|
||||
* #GtkBuilder, as seen in the following example. To set a menubar that will
|
||||
* be automatically picked up by #GApplicationWindows, use
|
||||
* g_application_set_menubar().
|
||||
*
|
||||
* <example id="gtkapplication"><title>A simple application</title>
|
||||
* <programlisting>
|
||||
* <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" href="../../../../examples/bloatpad.c">
|
||||
|
@ -240,6 +240,14 @@
|
||||
* <link linkend="GtkTextTagTable-BUILDER-UI">GtkTextTagTable</link>.
|
||||
* </para>
|
||||
* </refsect2>
|
||||
* <refsect2 id="BUILDER-UI">
|
||||
* <title>Embedding other XML</title>
|
||||
* <para>
|
||||
* Apart from the language for UI descriptions that has been explained
|
||||
* in the previous section, GtkBuilder can also parse XML fragments
|
||||
* of <link linkend="gio-GMenu-Markup">GMenu markup</link>. The resulting
|
||||
* #GMenu object and its named submenus are available via
|
||||
* gtk_builder_get_object() like other constructed objects.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
Loading…
Reference in New Issue
Block a user