GtkApplicationWindow: Fix menubar example

This example was using invalid attribute syntax.
This commit is contained in:
Emmanuel Gil Peyrot 2020-09-04 13:49:28 +02:00
parent 927c4abf23
commit 62f7395c77

View File

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