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 (
* "<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>",