mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
GtkApplicationWindow: Fix menubar example
This example was using invalid attribute syntax.
This commit is contained in:
parent
927c4abf23
commit
62f7395c77
@ -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>",
|
||||
|
Loading…
Reference in New Issue
Block a user