Merge branch 'fix-gtk-application-menu-example' into 'master'

GtkApplicationWindow: Fix menubar example

See merge request GNOME/gtk!2528
This commit is contained in:
Matthias Clasen 2020-09-04 12:32:40 +00:00
commit 275302a9d5

View File

@ -86,9 +86,16 @@
* GtkBuilder *builder = gtk_builder_new_from_string (
* "<interface>"
* " <menu id='menubar'>"
* " <submenu label='_Edit'>"
* " <item label='_Copy' action='win.copy'/>"
* " <item label='_Paste' action='win.paste'/>"
* " <submenu>"
* " <attribute name='label' translatable='yes'>_Edit</attribute>"
* " <item>"
* " <attribute name='label' translatable='yes'>_Copy</attribute>"
* " <attribute name='action'>win.copy</attribute>"
* " </item>"
* " <item>"
* " <attribute name='label' translatable='yes'>_Paste</attribute>"
* " <attribute name='action'>win.paste</attribute>"
* " </item>"
* " </submenu>"
* " </menu>"
* "</interface>",